Project

General

Profile

[Script] List all Emoticon triggers in Menubar

Added by Per Amundsen 4 months ago

List all Emoticon triggers in Menubar

Requires > 2.7 beta.

on *:start:{
  menubar -a emoticons @emoticons Emote
}

menu @emoticons {
  $submenu($listemoticons($1))
}

alias -l listemoticons {
   ; Show icons using the new $menuicon identifier
   return $menuicon($emoticons($1)) $emoticons($1) $+ :editbox -ai $emoticons($1)
   ; return $emoticons($1) $+ :editbox -ai $emoticons($1)
}

Replies (2)

RE: [Script] List all Emoticon triggers in Menubar - Added by Roman Macuda 3 months ago

Nice work.. but, (I'm not a software developer so maybe it's obvious) is there any limitation of entries ? In my case (ca 600 emots installed) only part of them are available in menu and list is descending.

Regards
Roman

RE: [Script] List all Emoticon triggers in Menubar - Added by Per Amundsen 3 months ago

There is a max of 250 $submenu items, it is possible to call $submenu several times with some parameters, but I question the purpose of showing 600 menu items.

For descending, something like this should work:

alias -l listemoticons {
  return $calc($emoticons(0) - $emoticons($1)) $+ :editbox -ai $calc($emoticons(0) - $emoticons($1))
}
    (1-2/2)