-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
j doesn't go to next "virtual" line like down-arrow does #21
Comments
VSCode doesn't give an API to access visual line as far as I know. |
Is there no way to simulate down-arrow? |
Good idea! BTW, I think it should be |
Where did you find those functions? I'd like to help you with this project, but VSCode documentation is sort of sparse. I looked into TextDocument last night and a few other basic classes. I was considering switching back to Emacs but I would really like to make this work. Do you have an IRC channel we can talk in? Or email? |
There is a |
You can send me email but I'd rather you discuss here so everyone can see and search. |
Alright, I'll keep our discussions here. Is there a reason why you've created your own handlers and use .translate(), rather than use the movement commands already provided? You would avoid having to fight the editor. On my fork I'm modifying it to use the editor commands rather than the low-level .translate() you've created. |
VSCode's built-in commands only provides "actions" which is impossible to reuse in Vim's system. |
This is what |
Since |
The keybindings below seem to work for amVim normal mode for moving among displayed lines in word wrapping mode (similar behavior to Ref: My pull request to VSCodeVim VSCodeVim/Vim#3623 {
"key": "up",
"command": "cursorUp",
"when": "editorTextFocus && amVim.mode == 'NORMAL' && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
"key": "down",
"command": "cursorDown",
"when": "editorTextFocus && amVim.mode == 'NORMAL' && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
"key": "k",
"command": "cursorUp",
"when": "editorTextFocus && amVim.mode == 'NORMAL' && !inDebugRepl &&!suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
"key": "j",
"command": "cursorDown",
"when": "editorTextFocus && amVim.mode == 'NORMAL' && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
} |
The work to support these motions using standard vim keys is being done in #116, and will be available in the next release. |
The text was updated successfully, but these errors were encountered: