fzf-marks icon indicating copy to clipboard operation
fzf-marks copied to clipboard

fzf-marks complains if FZF_MARKS_FILE points at a readonly file

Open peterhoeg opened this issue 3 years ago • 2 comments

If for whatever reason that file is readonly, fzf-marks will throw a warning about not being able to do inplace editing. It still works as normal though.

peterhoeg avatar Mar 22 '21 23:03 peterhoeg

This is because the directories are sorted from the most recently to the least recently visited, in order to make it easier to jump to recently used marks. We could add an option to enable/disable this behaviour explicitly, which could default to 'disable' if the file is readonly and 'enable' otherwise. What do you think?

urbainvaes avatar May 05 '21 17:05 urbainvaes

That's definitely an option.

Ideally the list of directories is separate from the ordering so that the it can be kept readonly while the dynamic ordering data is stored in a rw location.

peterhoeg avatar May 25 '21 14:05 peterhoeg