rizin icon indicating copy to clipboard operation
rizin copied to clipboard

Ctrl-U - Flush from cursor to beginning of prompt - Opposite of Ctrl-K

Open caribpa opened this issue 5 years ago • 4 comments

Is your feature request related to a problem? Please describe. Ctrl-U works differently in zsh and bash. In zsh (and Rizin) it flushes the whole command prompt (can be pasted back with Ctrl-Y), whereas in bash, Ctrl-U performs the opposite of Ctrl-K.

Ctrl-K (in both zsh, bash and Rizin) flushes everything from the current cursor position (including the character under the cursor) until the end of the command prompt (can be pasted back with Ctrl-Y). In bash, Ctrl-U flushes everything from the current cursor position (not including the character under the cursor) until the beginning of the command prompt (also can be pasted back with Ctrl-Y).

Describe the solution you'd like It would be a good addition to have in Rizin either:

  • Ctrl-U working like bash's Ctrl-U (opposite of Rizin's Ctrl-K), using Ctrl-C is always a choice to "flush" the prompt
  • or leave Ctrl-U as is, and have Meta-K working like bash's Ctrl-U

Describe alternatives you've considered 💔

Additional context 🤷

caribpa avatar Feb 10 '21 18:02 caribpa

This issue has been automatically marked as stale because it has not had recent activity. Considering a lot has probably changed since its creation, we kindly ask you to check again if the issue you reported is still relevant in the current version of rizin. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 17 '21 06:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. Considering a lot has probably changed since its creation, we kindly ask you to check again if the issue you reported is still relevant in the current version of rizin. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 21 '22 12:02 stale[bot]

Let's choose:

Ctrl-U working like bash's Ctrl-U (opposite of Rizin's Ctrl-K), using Ctrl-C is always a choice to "flush" the prompt

ret2libc avatar Feb 21 '22 13:02 ret2libc

This issue has been automatically marked as stale because it has not had recent activity. Considering a lot has probably changed since its creation, we kindly ask you to check again if the issue you reported is still relevant in the current version of rizin. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 05:08 stale[bot]