rizin icon indicating copy to clipboard operation
rizin copied to clipboard

Meta-C, Meta-U, and Meta-L - Capitalize, Uppercase, and Lowercase the following word

Open caribpa opened this issue 4 years ago • 3 comments

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-L lowercases the following word
  • Meta-U uppercases the following word
  • Meta-C capitalizes 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 🤷

caribpa avatar Feb 10 '21 19: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]

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]

can i work on this?

nick2432 avatar Dec 17 '23 06:12 nick2432

@nick2432 Sure! Go ahead.

Rot127 avatar Dec 17 '23 15:12 Rot127