Skip to content

Commit

Permalink
Changed hotkey for chip-delete to ctrl+p
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaumgarten committed Jan 4, 2021
1 parent f449369 commit 756f0fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/vscode-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ If you (for whatever reason) want to disable the global hotkeys, you can do so i
## Inseting code into a chip
Open the .yolol-script you want to insert in vscode (it has to be the current active file). Go to Stabase's window and open the yolol-chip you want to fill. Unlock it, aim your cursor at it and click a line. Now press ```Ctrl+I```. Vscode will start to auto-type your code into the chip, starting at your current cursor-position.

## Erasing a chip
The auto-typing only works properly when the lines of the chip are empty before inserting code. Vscode-yolol can also automate this for you. Click a line on your chip and press ```Ctrl+D```. This will end the key-strokes Ctrl+A, Entf, Down 20 times, resulting in an empty chip, starting at the line you clicked. (If you clicked line 1, the chip is now completely empty)
## Purge a chip
The auto-typing only works properly when the lines of the chip are empty before inserting code. Vscode-yolol can also automate this for you. Click a line on your chip and press ```Ctrl+P```. This will send the key-strokes Ctrl+A, Entf, Down 20 times, resulting in an empty chip, starting at the line you clicked. (If you clicked line 1, the chip is now completely empty)

## Overwriting code
By pressing ```Ctrl+O``` vscode will overwrite the code on the chip, starting from the current, line with the yolol-code of the currently open script in vscode. (This is effectively a faster variant of ```Ctrl+D```+Select line+```Ctrl+I```)
By pressing ```Ctrl+O``` vscode will overwrite the code on the chip, starting from the current, line with the yolol-code of the currently open script in vscode. (This is effectively a faster variant of ```Ctrl+P```+Select line+```Ctrl+I```)

# Debugging
This extension enables you to interactively run and debug yolol-code. To learn how to debug using vscode see here: https://code.visualstudio.com/Docs/editor/debugging .
Expand Down
2 changes: 1 addition & 1 deletion pkg/langserver/autotype_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
AutodeleteHotkey = &win32.Hotkey{
ID: 2,
Modifiers: win32.ModCtrl,
KeyCode: 'D',
KeyCode: 'P',
}
// AutooverwriteHotkey is the hotkey to overwrite the current line with new ones
AutooverwriteHotkey = &win32.Hotkey{
Expand Down
1 change: 1 addition & 0 deletions vscode-yolol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ If you experience any issues or would like to request a feature, please [open an
- Auto-completion
- Commands for optimizing yolol
- Interactively debug YOLOL-code in vscode
- AUto-type your code into Starbase
- Also supports nolol

# Instructions
Expand Down

0 comments on commit 756f0fd

Please sign in to comment.