- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Repeated commands that insert white space at from of line doesn't work #612
Comments
As a note, running This is probably VS trying to automatically adjust the whitespace something. |
Even easier than that, I think. :) I'm pretty sure this is because never The trick is that you only want to register the tab key when the On Mon, Aug 15, 2016 at 5:07 PM, Hunt Graham [email protected]
Grant |
Aww, so the \t chars aren't being recorded at all! That explains why Didn't consider the autocomplete thing either... I assume the "keybindings" section of package.json is where there the binding should go? |
Yep, that's correct. :) |
my 2 cents: I tried to see if I can handle the Hijacking |
Unluckily, the fix I added breaks tab completion. I'll need to think about this issue some more. |
This issue is such a pain. VSCode has overloaded tab to do so many things, and the conditions in the keybindings.json file are very complex. Here's a sample: You have this:
for regular tab,
for "emmet" tab completion. Note that this also inserts a tab if it can't find an emmet thing to complete. And finally:
I'm not sure how to handle all of these from within vscodevim. In addition, I'm not sure how to handle it so we play nice with other extensions / future overloading of the tab key. |
For others that find this issue as I did, hoping that it would be an easy fix (which it appears it's not). Use spaces at the start of the line instead. This work-around does not work with files that have to have a tab at the start of a line to process properly (I'm looking at you Makefile). |
Using spaces is not quite as good, as if you want to align things on a tab boundary, you don't know how many spaces are required
To
There's no way to align these with a macro using spaces, as far as I know. Hence the desire for tab support. Comes up fairly often in my work, would be really nice |
Run:
I\t\t<esc>...
It successfully inserts tabs in the first part (the
I\t\t<esc>
block), but repeating the command with...
does not successfully append 2 tabs to the front of the line.The text was updated successfully, but these errors were encountered: