vim-dirvish icon indicating copy to clipboard operation
vim-dirvish copied to clipboard

Marks are very buggy in dirvish buffers

Open ViciousBadger opened this issue 4 years ago • 1 comments

They seem to move around on their own. That being said, I'm not sure a plugin like this should be working with marks in the first place - but it would be very nice to be able to mark files, directories etc as a kind of vim-style bookmark system.

Steps to reproduce:

  • Open dirvish
  • Place a mark on some file, eg. by typing mM
  • Browse around for a bit and head back to the directory where your mark is at
  • The mark is now somewhere else, usually on the first line of the directory listing

ViciousBadger avatar Aug 29 '21 11:08 ViciousBadger

yeah, global marks kinda work but have the issue (at least) you mentioned. Would love it if they were more stable, but only willing to do this if there's a way to preserve them in bulk. Having tons of code trying to save/restore every mark is not an option.

In particular there's probably way to make this not horrible if 'hidden' is set or with shada/viminfo.

Ideas

  1. avoid rewriting the buffer if the directory contents didn't change.
  2. ...

justinmk avatar Aug 29 '21 11:08 justinmk