Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Polynomdivision
gajim
Commits
9a789995
Commit
9a789995
authored
11 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
[axcel] update AcronymsExpanderPlugin
parent
2278433f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/acronyms_expander/acronyms
+69
-0
69 additions, 0 deletions
plugins/acronyms_expander/acronyms
plugins/acronyms_expander/acronyms_expander.py
+13
-3
13 additions, 3 deletions
plugins/acronyms_expander/acronyms_expander.py
with
82 additions
and
3 deletions
plugins/acronyms_expander/acronyms
0 → 100644
+
69
−
0
View file @
9a789995
{"afaik": "as far as I know",
"afaict": "as far as I can tell",
"afk": "away from keyboard",
"atm": "at the moment",
"bbiab": "be back in a bit",
"bbiaf": "be back in a few (minutes)",
"bbl": "be back later",
"bbs": "be back soon",
"b/c": "because",
"bf": "boyfriend",
"bfo": "blinding flash of the obvious",
"brb": "be right back",
"bsod": "blue screen of death",
"btw": "by the way",
"ciao": "Italian for goodbye",
"ctrn": "can't talk right now",
"cul8r": "see you later",
"cya": "see ya",
"dhtb": "don't have the bandwidth",
"f2f": "face to face",
"fubar": "fucked up beyond all recognition",
"fwiw": "for what it's worth",
"fyi": "for your information",
"gmta": "great minds think alike",
"iam": "in a meeting",
"ianal": "I am not a lawyer",
"ihmb": "I hate my boss",
"iirc": "if I recall correctly",
"imho": "in my humble opinion",
"imo": "in my opinion",
"iow": "in other words",
"irl": "in real life",
"<g>": "grin",
"*g*": "grin",
"gf": "girlfriend",
"gmta": "great minds think alike",
"g2g": "got to go",
"jid": "jabber identifier",
"j/k": "just kidding",
"ok": "okay",
"lol": "laugh out loud",
"l8r": "later",
"msg": "message",
"n/m": "never mind",
"n/p": "no problem",
"oAo": "over and out!",
"omg": "oh my god",
"oob": "out of band",
"otoh": "on the other hand",
"oww": "oops, wrong window!",
"otp": "on the phone",
"pita": "pain in the ass",
"pov": "point of view",
"pw": "password",
"rotfl": "rolling on the floor laughing",
"rsn": "real soon now",
"rtfm": "read the friendly manual",
"slap": "sounds like a plan",
"thx": "thanks",
"tia": "thanks in advance",
"tla": "three-letter arconym",
"ttfn": "ta ta for now",
"ttyl": "talk to you later",
"wb": "welcome back",
"wfm": "works for me",
"wtf": "what the fuck?!",
"wtg": "way to go!",
"xfer": "transfer",
"ymmv": "your mileage may vary",}
This diff is collapsed.
Click to expand it.
plugins/acronyms_expander/acronyms_expander.py
+
13
−
3
View file @
9a789995
...
...
@@ -47,16 +47,26 @@ class AcronymsExpanderPlugin(GajimPlugin):
self
.
config_default_values
=
{
'
INVOKER
'
:
(
'
'
,
''
),
'
ACRONYMS
'
:
({
'
RTFM
'
:
'
Read The Friendly Manual
'
,
'
/slap
'
:
'
/me slaps
'
,
'
ACRONYMS
'
:
({
'
/slap
'
:
'
/me slaps
'
,
'
PS-
'
:
'
plug-in system
'
,
'
G-
'
:
'
Gajim
'
,
'
GNT-
'
:
'
http://trac.gajim.org/newticket
'
,
'
GW-
'
:
'
http://trac.gajim.org/
'
,
'
GTS-
'
:
'
http://trac.gajim.org/report
'
,
},
''
),
''
),
}
if
'
ACRONYMS
'
not
in
self
.
config
:
myAcronyms
=
self
.
get_own_acronyms_list
()
self
.
config
[
'
ACRONYMS
'
].
update
(
myAcronyms
)
@log_calls
(
'
AcronymsExpanderPlugin
'
)
def
get_own_acronyms_list
(
self
):
data_file
=
self
.
local_file_path
(
'
acronyms
'
)
data
=
open
(
data_file
,
'
r
'
)
acronyms
=
eval
(
data
.
read
())
data
.
close
()
return
acronyms
@log_calls
(
'
AcronymsExpanderPlugin
'
)
def
textbuffer_live_acronym_expander
(
self
,
tb
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment