I can have my code in pane 0 and my code console running a shell in pane 1, and simply use the send-keys command to execute the selected code (or line) instantly in pane 1.
I use this command more than 100 times per day.
I can have my code in pane 0 and my code console running a shell in pane 1, and simply use the send-keys command to execute the selected code (or line) instantly in pane 1.
I use this command more than 100 times per day.
Sorry, I don't get it. How can you only run selected code or lines individually without the full context of the program/project that code is part of?
Not a LISPer but apparently in that land you could actually have the program running and a REPL attached to it, in which case, you actually do have all the program at your disposal.
IIRC the docs said there were some edge cases, but I never ran into those.
In Python sometimes you can feed back the results of a function into some other function (when you are in the interactive shell), but usually they are nothing like Python code...
Now imagine instead of a empty rails shell, I had my server running there and I can set breakpoints. Or why not both a shell and a server?
I'm using this to send what's copied into the clipboard to the other target:
bind r run 'xsel -bo | tmux load-buffer -; tmux paste-buffer -t .+'I could have a rails console running below in a pane and send rails code directly from the file above.
Works with anything