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

Document all "when clauses" for the extension #5273

Closed
macintacos opened this issue Sep 28, 2020 · 1 comment · Fixed by #6945
Closed

Document all "when clauses" for the extension #5273

macintacos opened this issue Sep 28, 2020 · 1 comment · Fixed by #6945

Comments

@macintacos
Copy link

It took a while to figure out that I had to use vim.mode == 'VisualLine' instead of vim.mode == 'Visual Line' or vim.mode == 'Visual-Line' etc. because I couldn't find them in the README. Can we have all of the various "modes" documented in the README? Thanks!

@stevenguh
Copy link
Contributor

I agree, it does require some source code digging. I think here are all the modes.

Vim/src/mode/mode.ts

Lines 8 to 20 in 91ca71f

Normal,
Insert,
Visual,
VisualBlock,
VisualLine,
SearchInProgressMode,
CommandlineInProgress,
Replace,
EasyMotionMode,
EasyMotionInputMode,
SurroundInputMode,
OperatorPendingMode, // Pseudo-Mode, used only when remapping. DON'T SET TO THIS MODE
Disabled,

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

Successfully merging a pull request may close this issue.

3 participants