Skip to content
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

Keybindings for TAB broken #274

Closed
ralexstokes opened this issue Sep 11, 2023 · 21 comments
Closed

Keybindings for TAB broken #274

ralexstokes opened this issue Sep 11, 2023 · 21 comments

Comments

@ralexstokes
Copy link

The keybinding for TAB recently broke for me, I'm assuming due to some underlying change in VSCode (or possibly the Vim extension?).

After a little debugging, I found changing the editor focus scoping fixes the issue:

Change: edit keybinding to use editorTextFocus in lieu of editorFocus.

After the change my keybindings.json looks like:

// other settings elided...
{
    "key": "tab",
    "command": "extension.vim_tab",
    "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert' && editorLangId != 'magit'"
  },
  {
    "key": "tab",
    "command": "-extension.vim_tab",
    "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'"
  },

I'm opening this issue in case anyone else has the problem and is looking for a solution.

@m3dwards
Copy link

I had the same. Many thanks!

@lucasnad27
Copy link

lucasnad27 commented Sep 11, 2023

Just to confirm, another report here. I thought I was going crazy trying to diff an unstaged file with TAB 😂

Thank you for the temp fix @ralexstokes !! Worked like a charm.

@robertfw
Copy link

robertfw commented Sep 11, 2023

Just ran into this as well. Thanks for the fix!

@alexrenz
Copy link

oh my god, you are a life saver! thank you so much ❤️

@davezuch
Copy link

Just ran into this too, thanks for the solution!

@nimbletactician
Copy link

nimbletactician commented Sep 13, 2023

I am running into this too. Do all of you have vim bindings? I do not have vim bindings.And the above fix does not work for me @ralexstokes

@kahole
Copy link
Owner

kahole commented Sep 13, 2023

What version of vscode are yall running?

@derkling
Copy link

I'm running 1.78.0 and had the same issue.

Fixed by the change proposed by @ralexstokes, thanks!

@m3dwards
Copy link

@nimbletactician I'm running vim bindings and have VSpaceCode installed.

@m3dwards
Copy link

What version of vscode are yall running?

1.81.1

@nimbletactician
Copy link

@kahole Version: 1.82.1

@nimbletactician
Copy link

@derkling : Would you happen to have vim bindings too?

@nimbletactician
Copy link

Thanks for responding @maxwedwards. I have tried a bunch of settings but still no luck. I do use IntelliJ Keybindings; not sure if that has a bearing.

@ralexstokes
Copy link
Author

have VSpaceCode installed.

I'm running this as well, and on 1.82.1 vscode version

@nimbletactician
Copy link

Curious about what possible setting needs to be changed for someone like myself running neither of the bindings.

To be precise: The tab folding feature on the Unstaged Changes line is working i.e. when I hit tab on the Unstaged Changes line, it does show/hide the underlying file. However, when I hit the tab on the file line to see the diff, it does not work.

Unstaged changes (3)
modified test/automation/utils.go

@ralexstokes @kahole @maxwedwards

@m3dwards
Copy link

I don't know @nimbletactician

I would start by looking at what TAB is currently bound to in your keybindings.

@jlevers
Copy link

jlevers commented Sep 22, 2023

@nimbletactician I'm running into this issue too. Can't find any obviously overlapping keybindings. I'll update here if I find a solution.

@shapel
Copy link

shapel commented Oct 25, 2023

Thank you, @ralexstokes, so much! ❤️

@jordangarrison
Copy link

Thank you @ralexstokes, this is great

@kahole
Copy link
Owner

kahole commented Jan 8, 2024

#287

@kahole kahole closed this as completed Jan 8, 2024
@kahole
Copy link
Owner

kahole commented Jan 8, 2024

Separate issue for tab folding problems beyond vim keybindings: #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests