weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.15k stars 45 forks source link

Does coc-explorer support "directory bookmark" like NERDTree does? #228

Open yanlinsun opened 4 years ago

yanlinsun commented 4 years ago

I prefer to bookmark my frequent access directories when I use nerdtree. coc-explorer is great and I intend to switch to it completely. However, I search a lot but not found any information about the "directory bookmark" feature.

It is similar to set some directories as favorite. Like:

And if I hit 'o' on any of the entries, the root folder automatically jumps to it.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

weirongxu commented 4 years ago

Not supported yet, might need coc-bookmark to support this first.

I inform the @voldikss to see if the author intends to support this

voldikss commented 4 years ago

/assign @voldikss I will implement this when I have free time.

yanlinsun commented 4 years ago

@voldikss @weirongxu Thank you for accepting this enhancement. I would like to implement this feature if you don't mind.

Before that, I have a second opinion on which project this feature belongs to. I think it should go to coc-explorer rather than coc-bookmark.

  1. The name "directory bookmark" is only explanatory. It does not imply that it is one of the coc-bookmark features.
  2. It is about files and directories, which is different from the definition of a bookmark.
  3. Consider similar file manager products, like NERDTree, Finder, File Explorer, they all support this feature; no need an external plugin to enable it.
  4. When creating such "bookmark", the user will perform the action in the coc-explorer buffer not a buffer of a concrete file.
weirongxu commented 4 years ago

@yanlinsun I agree with your idea that the directories bookmarks should be deeply associated with the explorer. And we should have some actions built-in the explorer. Dependent on bookmarks is not the best implementation

voldikss commented 4 years ago

I also agree with @yanlinsun 's view. 👍

yanlinsun commented 4 years ago

Great. @weirongxu I am happy to help to implement it if you already started. In the meantime, I will folk and start from there.

weirongxu commented 4 years ago

Great. @weirongxu I am happy to help to implement it if you already started. In the meantime, I will folk and start from there.

I have to do something else. And I haven't time to add any new features recently, because I planned to refactor the floating window.