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

REPL window use it own set of paredit hotkeys and these are not configurable #260

Closed
CheatEx opened this issue Jul 19, 2019 · 2 comments
Closed

Comments

@CheatEx
Copy link

@CheatEx CheatEx commented Jul 19, 2019

Generally the hotkeys I configure for editor's paredit don't work in REPL or work in strange and unpredictable fashion.

Some examples:

  1. paredit.spliceSexp* don't work at all.
  2. paredit.wrapAroundParens does |[1 2 3] becomes ([1 2 3|()])
  3. Delete keys don't work, see #255
@PEZ

This comment has been minimized.

Copy link
Collaborator

@PEZ PEZ commented Jul 19, 2019

Thanks for reporting!

Can you tell me more about your setup? Both 1 and 2 work when I try them.

@CheatEx

This comment has been minimized.

Copy link
Author

@CheatEx CheatEx commented Jul 19, 2019

Here is system info from the about dialog

Version: 1.36.1
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:55:08.091Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.18.0-25-generic

My keyboard settings (sorry, can't find find a way to insert a collapseable block)

[
    {
        "key": "ctrl+shift+`",
        "command": "workbench.action.quickOpenTerm"
    },
    {
        "key": "ctrl+shift+alt+9",
        "command": "-paredit.wrapAroundParens",
        "when": "editorTextFocus && !editorReadOnly && editorLangId =~ /clojure|scheme|lisp/ && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+[",
        "command": "-paredit.wrapAroundSquare",
        "when": "editorTextFocus && !editorReadOnly && editorLangId =~ /clojure|scheme|lisp/ && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+shift+alt+[",
        "command": "-paredit.wrapAroundCurly",
        "when": "editorTextFocus && !editorReadOnly && editorLangId =~ /clojure|scheme|lisp/ && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+v ctrl+alt+p",
        "command": "-calva.evaluateCurrentTopLevelFormPrettyPrint"
    },
    {
        "key": "ctrl+alt+v p",
        "command": "-calva.evaluateSelectionPrettyPrint"
    },
    {
        "key": "f5",
        "command": "editor.action.revealDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "f12",
        "command": "-editor.action.revealDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "ctrl+f5",
        "command": "editor.action.peekDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
    },
    {
        "key": "ctrl+shift+f10",
        "command": "-editor.action.peekDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
    },
    {
        "key": "ctrl+shift+f5",
        "command": "editor.action.revealDefinitionAside",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "ctrl+k f12",
        "command": "-editor.action.revealDefinitionAside",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "ctrl+shift+backspace",
        "command": "paredit.spliceSexpKillBackward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+up",
        "command": "-paredit.spliceSexpKillBackward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+shift+delete",
        "command": "paredit.spliceSexpKillForward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+down",
        "command": "-paredit.spliceSexpKillForward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+left",
        "command": "paredit.backwardSexp",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+left",
        "command": "-paredit.backwardSexp",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+right",
        "command": "paredit.forwardSexp",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+right",
        "command": "-paredit.forwardSexp",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+shift+right",
        "command": "-paredit.barfSexpBackward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+left",
        "command": "-paredit.barfSexpForward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+shift+left",
        "command": "-paredit.slurpSexpBackward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+right",
        "command": "-paredit.slurpSexpForward",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+v j",
        "command": "calva.jackIn"
    },
    {
        "key": "ctrl+alt+c ctrl+alt+j",
        "command": "-calva.jackIn"
    },
    {
        "key": "ctrl+alt+v t",
        "command": "calva.toggleCLJCSession",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c ctrl+alt+t",
        "command": "-calva.toggleCLJCSession",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+v c",
        "command": "calva.connect"
    },
    {
        "key": "ctrl+alt+c ctrl+alt+c",
        "command": "-calva.connect"
    },
    {
        "key": "ctrl+alt+v n",
        "command": "calva.setREPLNamespace",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c alt+n",
        "command": "-calva.setREPLNamespace",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+v l",
        "command": "calva.loadNamespace",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c ctrl+alt+n",
        "command": "-calva.loadNamespace",
        "when": "calva:activated"
    },
    {
        "key": "shift+alt+9",
        "command": "paredit.wrapAroundParens",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+shift+alt+9",
        "command": "-paredit.wrapAroundParens",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "alt+[",
        "command": "paredit.wrapAroundSquare",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+alt+[",
        "command": "-paredit.wrapAroundSquare",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "shift+alt+[",
        "command": "paredit.wrapAroundCurly",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+shift+alt+[",
        "command": "-paredit.wrapAroundCurly",
        "when": "calva:activated && calva:pareditValid && paredit:keyMap =~ /original|strict/"
    },
    {
        "key": "ctrl+k",
        "command": "editor.action.deleteLines",
        "when": "textInputFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+k",
        "command": "-editor.action.deleteLines",
        "when": "textInputFocus && !editorReadonly"
    },
    {
        "key": "ctrl+k ctrl+i",
        "command": "-editor.debug.action.showDebugHover",
        "when": "editorTextFocus && inDebugMode"
    },
    {
        "key": "ctrl+q",
        "command": "-workbench.action.quit"
    },
    {
        "key": "ctrl+q",
        "command": "editor.action.showHover",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+k ctrl+i",
        "command": "-editor.action.showHover",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+alt+v space",
        "command": "calva.evaluateCurrentTopLevelForm",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c space",
        "command": "-calva.evaluateCurrentTopLevelForm",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+v p",
        "command": "calva.evaluateCurrentTopLevelFormPrettyPrint",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c ctrl+p",
        "command": "-calva.evaluateCurrentTopLevelFormPrettyPrint",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+v e",
        "command": "calva.evaluateSelection",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c e",
        "command": "-calva.evaluateSelection",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+v shift+p",
        "command": "calva.evaluateSelectionPrettyPrint",
        "when": "calva:activated"
    },
    {
        "key": "ctrl+alt+c p",
        "command": "-calva.evaluateSelectionPrettyPrint",
        "when": "calva:activated"
    }
]

What else could be relevant?

@PEZ PEZ added this to Backlog in CT 2019 Q3 via automation Aug 5, 2019
@PEZ PEZ closed this in 19558bf Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
CT 2019 Q3
  
Backlog
3 participants
You can’t perform that action at this time.