add some docs

This commit is contained in:
David Strobach 2020-03-25 20:12:30 +01:00
parent 4e224f62db
commit e5621ef369
2 changed files with 14 additions and 2 deletions

View file

@ -2,7 +2,15 @@
{"name": "abbrevs",
"package": "xonsh",
"url": "http://xon.sh",
"description": ["Command abbreviations."]
"description": [
"Adds ``abbrevs`` dictionary to hold user-defined command abbreviations. ",
"The dictionary is searched as you type and the matching words are replaced ",
"at the command line by the corresponding dictionary contents once you hit ",
"'Space' or 'Return' key. For instance a frequently used command such as ",
"``git status`` can be abbreviated to ``gst`` as follows::\n\n",
" $ xontrib load abbrevs\n",
" $ abbrevs['gst'] = 'git status'\n",
" $ gst # Once you hit <space> or <return>, 'gst' gets expanded to 'git status'.\n\n"]
},
{"name": "apt_tabcomplete",
"package": "xonsh-apt-tabcomplete",

View file

@ -1,4 +1,8 @@
"""Command abbreviations."""
"""
Command abbreviations.
This expands input words from `abbrevs` disctionary as you type.
"""
import builtins
from prompt_toolkit.filters import IsMultiline