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

enable keychords of 3 or more steps - BRIEF Keymap usecase. #143432

Closed
AaronNGray opened this issue Feb 19, 2022 · 3 comments
Closed

enable keychords of 3 or more steps - BRIEF Keymap usecase. #143432

AaronNGray opened this issue Feb 19, 2022 · 3 comments
Labels
feature-request Request for new features or functionality keybindings VS Code keybinding issues

Comments

@AaronNGray
Copy link

This is an extension of the issue enable keychords of 3 or more steps #6966 for the usecase of a BRIEF (Basic Reconfiguable In teractive Editting Facility) Editor Key Emulation.

For this there is a need to be able to execute Chord keystroke commands immediately at each step if so desired.

with the Home and END keys, first HOME to goto the beginning of the line, HOME HOME to the top of the current window, then HOME HOME HOME to goto the top of the document. END behaves simularly, end of line, bottom of window, and end of document.

For this I am proposing the following simple flag immediate: true, this executes each command immediately and still continues to for a chord where valid.

keymap example :-

    {
        "key": "home",
        "command": "extension.brief.cursorBeginningOfLine",
        "immediate": true,
        "when": "editorTextFocus"
    },
    {
        "key": "home home",
        "command": "extension.brief.cursorTopOfViewport",
        "immediate": true,
        "when": "editorTextFocus"
    },
    {
        "key": "home home home",
        "command": "extension.brief.cursorBeginningOfDocument",
        "immediate": true,
        "when": "editorTextFocus"
    },
    {
        "key": "end",
        "command": "extension.brief.cursorEndOfLine",
        "immediate": true,
        "when": "editorTextFocus"
    },
    {
        "key": "end end",
        "command": "extension.brief.cursorBottomOfViewport",
        "immediate": true,
        "when": "editorTextFocus"
    },
    {
        "key": "end end end",
        "command": "extension.brief.cursorEndOfDocument",
        "immediate": true,
        "when": "editorTextFocus"
    }
@alexdima alexdima added feature-request Request for new features or functionality keybindings VS Code keybinding issues labels Feb 21, 2022
@alexdima alexdima removed their assignment Mar 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality keybindings VS Code keybinding issues
Projects
None yet
Development

No branches or pull requests

3 participants
@AaronNGray @alexdima and others