SendCode
SendCode copied to clipboard
Keymap for sending all file content
Thx for great project! I'd like to have an option to send all file to repl. Now i have to select all source, and than tap cmd+enter, instead of for example just cmd+shift+enter That would be very useful!
I know, that for some languages we can use build system, but i write in clojure, and it not supported
isn't true that you could use (load-file "$file")
via custom keybindings?
EDIT,
{
"keys": ["cmd+shift+enter"], "command": "send_code",
"args": {"cmd": "(load-file \"$file\")"},
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.clojure" }
]
},
Looks like that doesn't work.
Tried like this:
- Open file
- Write (def test "1")
- Push cmd+shift+enter
- No errors in terminal. Load-file returns nil
- write (println test)
- Push cmd+enter on that line
- Get
undeclared Var
error in terminal
oh, you need to save the file first.