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
This is both a request/issue/discussion. I reimplemented :e option a while back to support both the tab completion and opening file on remote. I learned that a few days ago that vscode-remote support windows machine as remote, and the assumption I made here
Since I just worked on a feature on another extension that touches on path manipulation, I learned more about how to handle different edge cases and I am thinking to refactor the work I did here to support some new features for :e:
Support :e and auto completion with *nix remoting into Windows
Change the base directory of the :e for relative path to the workspace folder of the active editor (to be more like vim) than just the folder containing the active editor
Local cases:
A folder /home/steven/Vim is opened in vscode, and the active editor is src/statusBar.ts. :e ./ should autocomplete contents in the directory of /home/steven/Vim instead of /home/steven/Vim/src.
A folder /home/steven/Vim is opened in vscode, and the active editor is an untitled document. :e ./ should autocomplete contents the directory of /home/steven/Vim/ instead of /home/steven/Vim/src/
A folder /home/steven/Vim is opened in vscode, and the active editor is file outside of the workspace like /home/steven/.bashrc. :e ./ should autocomplete contents the directory of /home/steven/ instead of /home/steven/Vim -OR- No folder is opened, and the active editor is /home/steven/Vim/src/statusBar.ts, :e ./ should complete the contents in the directory of /home/steven/Vim/src/
No folder is opened, and the active editor is an untitled, only absolute path can be autocompleted
Remote cases are the same as the local case except:
No folder is opened, and the active editor is an untitled, it can also autocomplete local absolute path.
Remove auto extension completion when execute :e command (vim doesn't do that. I don't know why it was there in the first place - Maybe it was there because there wasn't any autocompletion)
This feature only auto completes using the active buffer's extension. For example: if I opened src/statusBar.ts and entered :e textEditor, vscode vim will tried to open src/textEditor.ts
AFAIK, this doesn't exist in regular vim, and doesn't make much sense now that we have auto completion.
I started part of the work, and just want to make sure those features/fixes make sense before I get to far.
This is both a request/issue/discussion. I reimplemented
:e
option a while back to support both the tab completion and opening file on remote. I learned that a few days ago that vscode-remote support windows machine as remote, and the assumption I made hereVim/src/util/path.ts
Lines 115 to 116 in e7c5c70
is no longer valid.
Since I just worked on a feature on another extension that touches on path manipulation, I learned more about how to handle different edge cases and I am thinking to refactor the work I did here to support some new features for
:e
:Support
:e
and auto completion with *nix remoting into WindowsChange the base directory of the
:e
for relative path to the workspace folder of the active editor (to be more like vim) than just the folder containing the active editorLocal cases:
/home/steven/Vim
is opened in vscode, and the active editor issrc/statusBar.ts
.:e ./
should autocomplete contents in the directory of/home/steven/Vim
instead of/home/steven/Vim/src
./home/steven/Vim
is opened in vscode, and the active editor is an untitled document.:e ./
should autocomplete contents the directory of/home/steven/Vim/
instead of/home/steven/Vim/src/
A folder
/home/steven/Vim
is opened in vscode, and the active editor is file outside of the workspace like/home/steven/.bashrc
.:e ./
should autocomplete contents the directory of/home/steven/
instead of/home/steven/Vim
-OR- No folder is opened, and the active editor is/home/steven/Vim/src/statusBar.ts
,:e ./
should complete the contents in the directory of/home/steven/Vim/src/
Remote cases are the same as the local case except:
Remove auto extension completion when execute
:e
command (vim doesn't do that. I don't know why it was there in the first place - Maybe it was there because there wasn't any autocompletion)src/statusBar.ts
and entered:e textEditor
, vscode vim will tried to opensrc/textEditor.ts
I started part of the work, and just want to make sure those features/fixes make sense before I get to far.
Other related issues:
#4859
The text was updated successfully, but these errors were encountered: