Replies: 2 comments 15 replies
-
Hello, I watched your Strange Loop talk and I really like what I saw. This project is very inspiring. Thank you! After reading the modal keyboard interface documentation, I am interested in transitioning some of my current modal keyboard workflow to cursorless. I am wondering if you could provide some advise. I currently use a custom modal keyboard configuration based on the vscode-modal-editor extension. I'd love to start gradually replace some of my custom functionality with cursorless. For example, here is a snippet from my configuration that I use to select an argument/parameter: // ...
"E": {
// ...
"a": [
findText(false, false, true, true, "[\(,]"),
{ command: "cursorRight", when: "_ctx.lineAt(_ctx.pos).text[_ctx.pos.character] == '('" },
findText(true, true, false, true, "[\),]"),
{ command: "cursorLeftSelect", when: "_ctx.lineAt(_ctx.pos).text[_ctx.pos.character] == ')'" },
],
// ... I'd like to replace this with the tree-sitter commands in cursorless---with the idea to eventually replace most (if not all) of my current setup with cursorless (including jumping). Here are two questions:
|
Beta Was this translation helpful? Give feedback.
-
I wonder if we want to introduce some redundancy in the keyboard encoding. Cost of a typo seems higher than normal typing, and even there there is arguably the redundancy built into language. Cc/ @josharian |
Beta Was this translation helpful? Give feedback.
-
Discussing keyboard version of cursorless
Beta Was this translation helpful? Give feedback.
All reactions