tuanbass / doom-nvim

A Neovim configuration for the advanced martian hacker
GNU General Public License v2.0
0 stars 0 forks source link

[FEATURE REQUEST] Avoid accidental open file in special window #3

Closed tuanbass closed 1 year ago

tuanbass commented 1 year ago

Some time we focus in "side" window like Tree, Terminal and we open a file. The file will be openned in side windows, and Tree/Terminal are hide . We should prevent this : Either give user a chance to select which one will be opened Either prevent from open the file and prompt user to focus in the main window

Some disccussion/approaches: https://www.reddit.com/r/vim/comments/7y3q6d/prevent_file_from_being_opened_inside_nerdtrees/ http://vimcasts.org/blog/2013/01/oil-and-vinegar-split-windows-and-project-drawer/

tuanbass commented 1 year ago

resolved in commit 4fc78d16c88c706f8cd75a551b54e099e041a286 It's not a clean fix, but at least it works perfectly