You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I often run many commands which produce a long terminal output (for instance, cargo build or pre-commit run). When that happens, and I want to scroll up to find the output of a previous command, I find it hard to tell where the command of one output starts and the output of the next begins. The additional newline before the prompt helps the problem somewhat, but it's not pronounced enough to be clearly visible as I'm scrolling by.
Describe the solution you'd like
I was thinking, Starship could provide an option for (or just enable) a separator between commands. For instance, it could look something like this:
~/test
⬢ [fedora-toolbox:39] ❯ ls -la
total 0
drwxr-xr-x. 1 gregorni gregorni 0 May 1 18:17 ./
drwx------. 1 gregorni gregorni 654 May 1 18:17 ../
--------------------------
~/test
⬢ [fedora-toolbox:39] ❯ echo "hi"
hi
--------------------------
~/test
⬢ [fedora-toolbox:39] ❯
The separator should always be centered in relation to the terminal window.
It could also be colored to be more visible, maybe the color could even reflect the command's status (red if the command errored, otherwise green). Maybe the separator character could also be configurable (for instance, = would also make sense)
Describe alternatives you've considered
One option I've considered is to customize the default prompt to display such a separator. However, this would mean the separator is shown when the terminal is first opened and no command has been run yet. While this technically does the trick, it's a bit ugly.
Centering the separator would also be hard, as I wouldn't have access to the real-time terminal width.
While I must admit that this is a bit of a stupid and extremely niche thing to suggest, it would improve the experience of looking through previous commands' output a lot.
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
I often run many commands which produce a long terminal output (for instance,
cargo build
orpre-commit run
). When that happens, and I want to scroll up to find the output of a previous command, I find it hard to tell where the command of one output starts and the output of the next begins. The additional newline before the prompt helps the problem somewhat, but it's not pronounced enough to be clearly visible as I'm scrolling by.Describe the solution you'd like
I was thinking, Starship could provide an option for (or just enable) a separator between commands. For instance, it could look something like this:
The separator should always be centered in relation to the terminal window.
It could also be colored to be more visible, maybe the color could even reflect the command's status (red if the command errored, otherwise green). Maybe the separator character could also be configurable (for instance,
=
would also make sense)Describe alternatives you've considered
One option I've considered is to customize the default prompt to display such a separator. However, this would mean the separator is shown when the terminal is first opened and no command has been run yet. While this technically does the trick, it's a bit ugly.
Centering the separator would also be hard, as I wouldn't have access to the real-time terminal width.
While I must admit that this is a bit of a stupid and extremely niche thing to suggest, it would improve the experience of looking through previous commands' output a lot.
The text was updated successfully, but these errors were encountered: