tmux-sidebar icon indicating copy to clipboard operation
tmux-sidebar copied to clipboard

Using NNN instead of tree | Files not opening

Open ThaDaVos opened this issue 3 years ago • 6 comments

I tried using NNN as replacement but because of the same reason as here: https://github.com/tmux-plugins/tmux-sidebar/issues/19 I cannot, so I follow the fix mention there to add the following line: set -g @sidebar-key-t 'nnn,left,60,focus'

Now I can open NNN using the C-b + t shortcut, but when it's open, I cannot open any file - even though if I open it seperately it works fine

ThaDaVos avatar Jul 14 '20 15:07 ThaDaVos

And I figured out why..

If I set set -g @sidebar-tree-command 'printenv | sort' I noticed the env's to get NNN working are missing... Am I correct in thinking that the plugin opens a different/specific shell?

ThaDaVos avatar Jul 14 '20 15:07 ThaDaVos

@ThaDaVos did you ever get this working? I would like to do something like this myself as tree is pretty limited

kurktchiev avatar Dec 04 '20 14:12 kurktchiev

Not really - it half works and half doesn't - I am not even using it anymore so yeah

ThaDaVos avatar Dec 04 '20 16:12 ThaDaVos

did you by chance find any other way to integrate nnn as a file manager within tmux i am rolling down this path atm trying to get going with this.

kurktchiev avatar Dec 04 '20 16:12 kurktchiev

Sadly not, except calling it straight up manually -> I still have the sidebar stuff configured but barely use it

ThaDaVos avatar Dec 07 '20 09:12 ThaDaVos

for what its worth i found https://github.com/addisonlynch/tmux-sidebar-plus which mostly works and extends this plugin to behave a bit better. It seems to have been abandoned so I am looking to fix some bugs and we will see how it goes

kurktchiev avatar Dec 10 '20 08:12 kurktchiev