vim: Add global marks (#25702)
Closes https://github.com/zed-industries/zed/issues/13111 Release Notes: - vim: Added global marks `'[A-Z]` - vim: Added persistence for global (and local) marks. When re-opening the same workspace your previous marks will be available. --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
148131786f
commit
265caed15e
18 changed files with 982 additions and 281 deletions
|
@ -326,6 +326,13 @@ impl Bind for Arc<Path> {
|
|||
self.as_ref().bind(statement, start_index)
|
||||
}
|
||||
}
|
||||
impl Column for Arc<Path> {
|
||||
fn column(statement: &mut Statement, start_index: i32) -> Result<(Self, i32)> {
|
||||
let blob = statement.column_blob(start_index)?;
|
||||
|
||||
PathBuf::try_from_bytes(blob).map(|path| (Arc::from(path.as_path()), start_index + 1))
|
||||
}
|
||||
}
|
||||
|
||||
impl StaticColumnCount for PathBuf {}
|
||||
impl Bind for PathBuf {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue