Closed lcrockett closed 2 years ago
Make rnvimr become a file explorer let g:rnvimr_enable_ex = 1
and then e your_directory
will toggle rnvimr under your_directory
.
Thanks for that, I did try that option and it works. However, i'm already using nvim-tree.lua
which disables + hijacks netrw. In addition to that using rnvimr_enable_ex
will change the current working directory within Neovim which have all sorts of implications for plugins used. For example, folke/todo-comments.nvim
relies on the appropriate working directory set to show todo's.
Your answer is much appreciated but it won't solve the original feature request while ensuring other plugins / functionality are not impacted. I'm happy to try and poke around if you can point me to the appropriate place.
addition to that using rnvimr_enable_ex will change the current working directory within Neovim which have all sorts of implications for plugins used.
Actually, rnvimr didn't change any current working directory, please check out your other plugins.
It's not necessarily rnvimr
that changes the current working directory. It's the use of the e <directory>
approach that changes it.
Is call rnvimr#open('you_path')
the feature you want?
Fantastic, that works as intended, cheers ! -> (call rnvimr#open($HOME . '/.local/share/notes')
Is your feature request related to a problem? Please describe. It is not related to a problem.
Describe the solution you'd like It would be a great enhancement if it would be possible to specify a directory to open with Ranger. For instance with
RnvimrToggle ~/directory/name/bla
, or with a different (new) command if it is not feasible to expand theRnvimrToggle
command.Describe alternatives you've considered Bookmarks within Ranger can be used to use keybindings navigating to specific directories, however this increases the amount of keystrokes necessary.
Additional context Cheers on the great plugin