Meta-C, Meta-U, and Meta-L - Capitalize, Uppercase, and Lowercase the following word
Is your feature request related to a problem? Please describe.
In bash, zsh and emacs, Meta-U, Meta-L, and Meta-C, are used for changing the case of the following word:
Meta-Llowercases the following wordMeta-Uuppercases the following wordMeta-Ccapitalizes the following word
All these keys advance to the next word (like pressing Meta-F) to continue the madness.
Note that, in the case the cursor is placed in the middle of a word, the case-change will happen to only the half after the cursor. In the case of capitalization, the character under the cursor will be capitalized (even if the cursor is in the middle of the word).
Examples:
# The cursor is represented with [ ]
$ zsh
# Writes the following and moves to the first space
> echo[ ]"hello world"
# Presses Meta-u
> echo "HELLO[ ]world"
# Presses Meta-c
> echo "HELLO World["]
# Moves to the first space again
> echo[ ]"HELLO World"
# Presses Meta-l
> echo "hello[ ]World"
Describe the solution you'd like
Though not generally useful for Rizin, these bindings can bring joy to the people making comments of their disassemble process, and also to those who always forget that the seek history is under the sH command and not sh and are too lazy to replace the h with an H if Meta-C could happily do the job:
$ rz /bin/rizin
> s main
> shu
# Command 'shu' does not exist.
# Lazy Human: I forgot again!
# *Moves the cursor over the h*
> s[h]u
# *Presses Meta-c*
> sHu
> 🎉
Describe alternatives you've considered 💔
Additional context 🤷
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.
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.
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.
can i work on this?
@nick2432 Sure! Go ahead.