top | item 40274843

(no title)

jmacc93 | 1 year ago

Yes! Finally something relevant I can post to hacker news

I use this little script https://github.com/jmacc93/paste-to-tmux-script daily. Its for pasting your current clipboard item to a target tmux session, along with very simple dsl for controlling which tmux target to send to, opening the tmux target, killing tmux sessions, etc. It makes a vastly, vastly better and more productive repl for me. The workflow for using it looks like typically is like: use `@sw name_of_target`, `@open`, `name_of_executable`, then move my cursor to something I want to evaluate, use ctrl-c to copy the line, and ctrl-. to send it to tmux

I think I've changed stuff around since I last updated that repo, though, but the general idea and skeleton is there, if anyone wants to use it / hack on it. And I'm gonna do a rewrite of it soon, I think, so that instead of using a dsl (the `@...` forms above) it uses `!...` or some similar form to execute arbitrary shell commands

I'm hoping to (soon hopefully) integrate it with my https://github.com/jmacc93/noca notebook canvas program as well

discuss

order

No comments yet.