hellpipe/hellpipe.fish

15 lines
369 B
Fish

# bind to a key combination of your choice, e.g. for alt-z
# bind --user \ez __hellpipeify
function __hellpipeify
commandline -j | python3 -m hellpipe.main - > temp.py
or return 1
__fish_disable_bracketed_paste
$EDITOR temp.py
or return 1
__fish_enable_bracketed_paste
commandline -r -j -- "python3 temp.py"
commandline -C 999999
commandline -f repaint
end