vim: View Marks (#26885)

Closes #26884

Release Notes:

- vim: Added `:marks` which brings up list of current marks
- confirming on selected mark in the view jumps to that mark

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
AidanV
2025-03-22 04:46:04 +00:00
committed by GitHub
co-authored by Conrad Irwin
parent 4c86cda909
commit d82b547596
4 changed files with 381 additions and 9 deletions
+4 -1
View File
@@ -183,10 +183,13 @@ impl Vim {
&mut self,
text: Arc<str>,
line: bool,
should_pop_operator: bool,
window: &mut Window,
cx: &mut Context<Self>,
) {
self.pop_operator(window, cx);
if should_pop_operator {
self.pop_operator(window, cx);
}
let mark = self
.update_editor(window, cx, |vim, editor, window, cx| {
vim.get_mark(&text, editor, window, cx)