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 Macos shortcuts #1161

Merged
merged 15 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions editors/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,28 @@ This extension provides support for the [Lambdapi](https://github.com/Deducteam/
Goals are visualised in a panel on the right side of the editor.
You can navigate in proof with the following key-bindings:

***Linux and Windows***
- ``Ctrl+Right``: go one step forward
- ``Ctrl+Left``: go one step backward
- ``Ctrl+Up``: go to the previous proof (or the beginning)
- ``Ctrl+Down``: go to the next proof (or the end)
- ``Ctrl+Enter``: go to the position of the cursor
- ``Ctrl+Alt+c``: toggle cursor mode (proof highlight follows the cursor or not)
- ``Ctrl+Alt+w``: toggle follow mode (proof highligsht is always centered in the window when keybindings are pressed)
- ``Shift+Alt+w``: center proof highlight in the current window

***Mac OS X***
- ``Ctrl+fn+Right``: go one step forward
- ``Ctrl+fn+Left``: go one step backward
- ``Ctrl+Up``: go to the previous proof (or the beginning)
- ``Ctrl+Down``: go to the next proof (or the end)
fblanqui marked this conversation as resolved.
Show resolved Hide resolved
- ``Ctrl+Enter``: go to the position of the cursor
- ``Ctrl+Alt+c``: toggle cursor mode (proof highlight follows the cursor or not)
- ``Ctrl+Alt+w``: toggle follow mode (proof highlight is always centered in the window when keybindings are pressed)
- ``Shift+Alt+w``: center proof highlight in the current window

Please note that these key bindings can be changed in Code->Preferences->keyboard shortcuts (also reachable with Ctrl+K Ctrl+S or Command+K Command+S in Mac OS X).

**Hover and go-to-definition**

Hovering a token will display its type if available.
Expand Down
14 changes: 12 additions & 2 deletions editors/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,22 @@
{
"key": "ctrl+up",
"command": "extension.lambdapi.pv",
"when": "editorTextFocus && editorLangId == lp"
"when": "editorTextFocus && editorLangId == lp && (isWindows || isLinux)"
},
{
"key": "ctrl+down",
"command": "extension.lambdapi.nx",
"when": "editorTextFocus && editorLangId == lp"
"when": "editorTextFocus && editorLangId == lp && (isWindows || isLinux)"
},
{
"key": "ctrl+alt+up",
"command": "extension.lambdapi.pv",
"when": "editorTextFocus && editorLangId == lp && isMac"
},
{
"key": "ctrl+alt+down",
"command": "extension.lambdapi.nx",
"when": "editorTextFocus && editorLangId == lp && isMac"
}
],
"snippets": [
Expand Down
Loading