Input buffer: 1 echo "cat"
Command: x
Expected buffer:
1 # 2024-11-20 09:22:50 echo "cat"
2 sh 3 cat 4
5 Exit Code: 0 | Time: 0.000 sec | Timestamp: 2024-11-20 09:22:50
6
7 echo "cat"
Input buffer: 1 echo "cat"
Command: Vx
Expected buffer:
1 # 2024-11-20 09:22:50 echo "cat"
2 sh 3 cat 4
5 Exit Code: 0 | Time: 0.000 sec | Timestamp: 2024-11-20 09:22:50
6
7 echo "cat"
Input buffer: 1 asdf
Command: x
Expected buffer:
1 # 2024-11-20 09:22:50 asdf
2 sh 3 zsh: command not found: asdf 4
5 Exit Code: 0 | Time: 0.000 sec | Timestamp: 2024-11-20 09:22:50
6
7 asdf
Input buffer: 1 asdf
Command: Vx
Expected buffer:
1 # 2024-11-20 09:22:50 asdf
2 sh 3 zsh: command not found: asdf 4
5 Exit Code: 0 | Time: 0.000 sec | Timestamp: 2024-11-20 09:22:50
6
7 asdf
Input buffer: 1 echo "cat" | grep "at"
Command: x
Expected buffer:
1 # 2024-11-20 09:22:50 echo "cat" | grep "at"
2 sh 3 cat 4
5 Exit Code: 0 | Time: 0.000 sec | Timestamp: 2024-11-20 09:22:50
6
7 echo "cat"
Input buffer:
1 echo
2 "cat"
Command: Vx
Expected buffer:
1 # 2024-11-20 09:22:50 echo -n \\n "cat" <-- NOTE: This can be flexible... I'm not opinionated on how to show this, because I'm more concerned about the code being simple. Might be better to show the code as a separate pair of lines (or a single line in the monoline case) so that the user can snip it elsewhere as needed
2 sh 3 cat 4
5 Exit Code: 0 | Time: 0.000 sec | Timestamp: 2024-11-20 09:22:50
6
7 echo -n
8 "cat"