You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open a new file in a new tab by t, the NERDTree will open a tab, but leave the former tab with the name NRED_tree_tab_1, whose name is meaningless and sometimes inconvenient. I have to go back to the former tab and use CTRL+w+l command to change the cursor to the file.
Taking the picture below as an example, the cursor is now on the file a.cpp, and I want to open b.h in a new tab.
When I move the cursor to the left column and open the file b.h in a new tab by t, the result is as follow:
The name of the first tab (a.cpp) is now NRED_tree_tab_1. The issue is the same as issue #774 and I don't think changing the name by hand is a good idea.
I come up with an idea: when a new tab is opened by t, the cursor in the old tab should jump back to the location in the former file, not staying in the NERDTree anymore. Then the name of the old tab will become the name of the file.
Taking the picture upper as an example, after I open b.h by t in the tab containing a.cpp, the cursor in the first tab should jump back to the file a.cpp automatically, not staying in the NERDTree column. The name of the first tab will change back to a.cpp.
I think this is a natural way to fix the name issue. But I don't know how to implement the idea in NERDTree effectively, can you help me?
The text was updated successfully, but these errors were encountered:
Description
When I open a new file in a new tab by
t
, theNERDTree
will open a tab, but leave the former tab with the nameNRED_tree_tab_1
, whose name is meaningless and sometimes inconvenient. I have to go back to the former tab and useCTRL+w+l
command to change the cursor to the file.Taking the picture below as an example, the cursor is now on the file
a.cpp
, and I want to openb.h
in a new tab.When I move the cursor to the left column and open the file
b.h
in a new tab byt
, the result is as follow:The name of the first tab (
a.cpp
) is nowNRED_tree_tab_1
. The issue is the same as issue #774 and I don't think changing the name by hand is a good idea.I come up with an idea: when a new tab is opened by
t
, the cursor in the old tab should jump back to the location in the former file, not staying in theNERDTree
anymore. Then the name of the old tab will become the name of the file.Taking the picture upper as an example, after I open
b.h
byt
in the tab containinga.cpp
, the cursor in the first tab should jump back to the filea.cpp
automatically, not staying in theNERDTree
column. The name of the first tab will change back toa.cpp
.I think this is a natural way to fix the name issue. But I don't know how to implement the idea in
NERDTree
effectively, can you help me?The text was updated successfully, but these errors were encountered: