nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

Jumping to commonly used folders

Open matu3ba opened this issue 4 years ago • 3 comments

  1. I have a project with an annoyingly long tree for files due to cmake invoking an external project with nested files. I would like to mark certain folders for fast jumping, for which I currently use shell aliases and new neovim instances.

What would you suggest to use for that? How should this be implemented in nvim-tree.lua and where would you suggest I start?

  1. How should be interaction with nvim-tree be designed, ie when I want to create commands/shortcuts, like for jumping to the git root folder?

matu3ba avatar Jan 26 '21 17:01 matu3ba

Hi, in the populate.lua file, you could tag nodes for jumping. Or create a jumplist of node references with a cursor. Then you could bind keybindings on au Filetype but this is a little clunky and should be addressed in a refactoring (basically, mappings are done the reversed way, and don't allow to easily modify keymaps).

kyazdani42 avatar Feb 02 '21 17:02 kyazdani42

See WIP #612

alex-courtis avatar Apr 03 '22 03:04 alex-courtis

The PR should be rewritten, it has too many conflicts now. I think the API could be a bit better too

kyazdani42 avatar Apr 03 '22 12:04 kyazdani42

Bookmarks feature has been implemented.

See :help nvim-tree-bookmarks

alex-courtis avatar Oct 15 '22 04:10 alex-courtis