Replies: 1 comment
-
|
I think you could accomplish what you're describing with some Helix builtins and a few bash aliases. Instead of typing out the whole command, check out Helix command
Couple of other thoughts:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
At work and at home if often open python in the terminal to test and calculate thing quickly.
Often these "scripts" become longer then expected, and even tho python-cli has improved a lot recently, I would much rather use something like helix to create my small script.
It is possible to do this:
hx /tmp/calc.pyand then in helix, I can use
:sh python /tmp/calc.pyor
:| python /tmp/calc.pyTo execute the script, and by placing this thing in /tmp, it will be cleaned up eventually, since I do not want to save these quick scripts.
Amazing!
But, I think even more friction could be reduced here. For one helix does not remember commands in between sessions, so the whole command needs to be typed out. Helix can not find aliases defined in my bashrc. Etc.
Has Anyone else found a more convenient way to do things like this?
I do not know the best way to solve it really, but if there were some way to configure Helix so I could do something like
hx --tmp// Creates a file with some random name the folder you have specified in you configuration:run-current// Runs the file you are currently inThen there is some other setting, where i can specify "python", so it knows what command to use, and that the tmp file should end with .py. Others might use R, matlab, scilab, etc.
Just an Idea
Beta Was this translation helpful? Give feedback.
All reactions