I added the following shortcuts to Chat and GameChat. All keywords are case-insensitive. All automatically link to the appropriate page (either if an URL is provided or not).
- user profiles
The following strings are replaced by the username with the appropriate coloring. For example
-
player
oruser
followed by the user_id ¹ - any link to a OGS profile page (optionally put
player
oruser
in front) -
@"${username}"
² -
@"${username}/${user_id}"
². Press tab when typing the username to automatically complete it. A second tab surrounds the username with@"
and/${user_id}"
, so you don’t have to look up the player id. The added user_id has the advantage to remain linked if the user changes their name.
-
- games, reviews, demo boards, joseki, groups, tournaments, puzzles
-
game
followed by the game id. For the others the keywords arereview
,demo
,joseki
,group
,tournament
,puzzle
¹ - a URL to this resources is shortened to
${keyword} ${id}
. The optionally keyword in front is not doubled, but gets part of the link. URLs to tournament-records are shortened totournament-record ${id}
-
- library
URLs to sgf libraries are shortend tolibrary ${id}
- OGS Go tutorial (Learn to play Go)
URLs are shortened totutorial ${section_name}
followed byexercise ${number}
if the URL points to a specific exercise - URLs to a entry on senseis.xmp.net are shortened to
senseis: ${title}
.` - wiki
links to the documentation are shortened towiki: ${title}
- forum
Links to the forum are replaced by the topic title - email addresses are linked with a
mailto:
, so a click on them opens the compose email window of your email program (if you use one). - GitHub
-
gh
,pr
andissue
followed by an id (number) automatically link to the GitHub issue/pull request. ¹ - URLs to OGS issues are shortened to
GH-${id}
-
- other URLs are linked but not shortened.
The following commands already existed and are unchanged and work only when be at the beginning of the chat line:
-
/me
make the chat line cursive. (third person) -
/senseis
,/google
and/lmgtfy
followed by any text should generate a search URL for the respective site.
¹ keyword and id can be separated by “ ”, “#”, “ #”, “-”, or “-#” (an optional space or -, as well as an optional #)
² ${name}
indicates variable content. Replace it by the indicated thing.