Skip to content

Commit

Permalink
Autocopy hotkey #72
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaumgarten committed Aug 15, 2021
1 parent 88b90a6 commit 451287a
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/vscode-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ The auto-typing only works properly when the lines of the chip are empty before
## 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+P```+Select line+```Ctrl+I```)

## Copy chip to clipboard
Open a chip in starbase and place the cursor in the first line. By pressing ```Ctrl+J``` the complete content of the script is copied into your clipboard. Unfortunately there is no way to detect where the script ends, so it will ALWAYS copy all 20 lines, even if most of them are empty. That makes it a little slower than necessary, but is's still faster the copying everything by hand. (It may be necessary that you have some yolol-file open in vscode. Otherwise vscdoe might not activate the yolol-extension and the hotkeys won't work.)

# 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 .
(Or read the next few paragraphs)
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ go 1.14
require (
github.com/abiosoft/ishell v2.0.0+incompatible
github.com/abiosoft/readline v0.0.0-20180607040430-155bce2042db // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/chzyer/logex v1.1.10 // indirect
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect
github.com/elazarl/go-bindata-assetfs v1.0.1
github.com/fatih/color v1.9.0 // indirect
github.com/flynn-archive/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
github.com/go-serve/bindatafs v0.0.0-20180828091044-2f268e76aac4 // indirect
github.com/google/go-dap v0.3.0
github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a
github.com/mitchellh/go-homedir v1.1.0
Expand All @@ -19,5 +21,4 @@ require (
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/yaml.v2 v2.2.7
github.com/go-serve/bindatafs v0.0.0-20180828091044-2f268e76aac4 // indirect
)
Loading

0 comments on commit 451287a

Please sign in to comment.