chadtree icon indicating copy to clipboard operation
chadtree copied to clipboard

user request: ability to choose which window to open in

Open ms-jpq opened this issue 5 years ago • 13 comments

maybe i can show a 🗺 of the window with each one labeled, and users can pick from there

ms-jpq avatar Aug 04 '20 09:08 ms-jpq

Related: it'd be nice if files are opened in 'previous window' (the window selected by wincmd p) instead the first main window. Right now for example, if I Ctrl-W S to split, jump to the window below, then to CHADTree, next open a file, the file is always opened in the window above.

Frederick888 avatar Aug 11 '20 07:08 Frederick888

It would be nice if there was a way to open files in other panes than just the first one.

coc-explorer uses the labeled pane selection system. i used it for about a week and I'm still not sure if it's better than the 'previous window' behavior that NERDTree uses. but I used NERDTree for years so I may have just been trained into a bad workflow.

lynndylanhurley avatar Aug 13 '20 13:08 lynndylanhurley

Related: it'd be nice if files are opened in 'previous window' (the window selected by wincmd p) instead the first main window. Right now for example, if I Ctrl-W S to split, jump to the window below, then to CHADTree, next open a file, the file is always opened in the window above.

seconded on this suggestion, I am really enjoying CHADtree but this feels necessary!

uzkbwza avatar Aug 18 '20 22:08 uzkbwza

Oh yeah, opening in the last opened window would be great! This is the only reason, why I still use the non-chady NERDTree.

But it doesn't seem to be related to this issue. Should I maybe open a new issue?

jounathaen avatar Sep 10 '20 14:09 jounathaen

Good call @jounathaen - probably should be a separate issue.

lynndylanhurley avatar Sep 22 '20 14:09 lynndylanhurley

now that i have the ability to draw floating windows, i can totally draw a minimap of your current window layout.

will do this one for sure because it will be cool

ms-jpq avatar Jan 21 '21 17:01 ms-jpq

Can't wait! Thx @ms-jpq !!

lynndylanhurley avatar Jan 21 '21 18:01 lynndylanhurley

Not sure if I'm not hijacking this thread, but how about allowing opening the file tree in a floating window? I don't need to keep my file explorer open when I code and I got used to working with fzf like this.

janbuchar avatar Jan 29 '21 09:01 janbuchar

i have some higher priority things to do on chadtree, like performance and stuff.

so things like that will come in when those are done, but i dont see why not.

the code base of chadtree is really nice, and i can support it fairly easily

ms-jpq avatar Jan 29 '21 09:01 ms-jpq

There's an open PR for something like this on nvim-tree.lua: https://github.com/kyazdani42/nvim-tree.lua/pull/340

The implementation is pretty clean. Might be a good source of inspiration if anyone has time.

lynndylanhurley avatar May 16 '21 00:05 lynndylanhurley

hummm thats is really cool, I think Ill do it like that

ms-jpq avatar May 16 '21 16:05 ms-jpq

thank you for show me the link!

ms-jpq avatar May 16 '21 16:05 ms-jpq

Not sure if this is helpful, but I just came across this: https://github.com/s1n7ax/nvim-window-picker

Looks like someone extracted the window selection functionality from nvim_tree.lua. Wondering if this can be leveraged somehow.

lynndylanhurley avatar Sep 11 '22 21:09 lynndylanhurley