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-21 21:46:04 -07:00 committed by GitHub
parent 4c86cda909
commit d82b547596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 381 additions and 9 deletions

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)