janusvm / emacs-gitmoji

Insert gitmoji in Emacs
GNU General Public License v3.0
7 stars 3 forks source link

✨ Use region as initial input for completing read #4

Closed janusvm closed 1 year ago

janusvm commented 1 year ago

This change adds the feature of replacing the region with a Gitmoji, using the selected text as the initial input to the completing read function.

Example Before (monospace text selected):

bug fixed a critical bug

After M-x gitmoji-insert-emoji:

:bug: fixed a critial bug

with the text bug now being in the kill ring.

This PR resolves #3

janusvm commented 1 year ago

@dcaixinha are you able to test whether this is what you were thinking of in #3?

dcaixinha commented 1 year ago

Just tested this branch and it's indeed what I was thinking of in #3 :100: :rocket: thanks @janusvm :pray: