3 ms·
Late to the party. This screams like it needs to be part of the shell instead of an addition. E. G. I type a command in the shell, end it with pipe, and press
by ddalex 8y ago
Late to the party. This screams like it needs to be part of the shell instead of an addition.
E. G. I type a command in the shell, end it with pipe, and press enter, it doesn't delete the command but runs a preview of the output top 10 lines? This way I can continue to the edit the command without losing the context, the pipe, or I can decide to redirect it to a file!
- akavel 8y agoHmm, interesting thought! The tool needs to do some ugly buffering however; would there be place for it in a shell? Also, I suppose some kind of "Ctrl-Enter" or something would be a better idea instead? So that it could also be hit at any point in the line... But how about scrolling through the preview?
- nixpulvis 8y agoI've been considering how I might implement this as part of "Pipe old commands without rerunning" from my project's README. https://github.com/nixpulvis/oursh#features https://github.com/nixpulvis/oursh#features