emacs-circe / circe

Circe, a Client for IRC in Emacs
GNU General Public License v3.0
390 stars 51 forks source link

Command abbreviation support #414

Open shader opened 10 months ago

shader commented 10 months ago

In other IRC clients, I'm used to using shorthand like /j to join a channel, etc., but circe doesn't seem to support it.

Is that something others would like to have? I could try working on it...

Or is it something that you have specifically decided shouldn't be done for some reason?

wasamasa commented 10 months ago

I cannot speak for @jorgenschaefer (the original author of this project), but personally I've never needed this. Given that this has never come up (unlike the /list thing), I kinda doubt there is a need either.

The beauty of Circe commands being just Emacs commands following the circe-command-NAME scheme is that you can easily create aliases:

(defalias 'circe-command-J 'circe-command-JOIN)

Honestly, unless there are actual issues with this (such as overriding a hypothetical one-letter command, introducing some complicated macro syntax or trampling on already established aliases), I don't really see a problem with contributing that.