mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
add some docs
This commit is contained in:
parent
4e224f62db
commit
e5621ef369
2 changed files with 14 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue