2015-01-24 12:27:31 -06:00
|
|
|
*.pyc
|
2015-03-07 11:50:56 -06:00
|
|
|
*.out
|
2015-03-07 18:58:14 -06:00
|
|
|
*.xcf
|
2015-03-15 23:05:07 -03:00
|
|
|
*.egg
|
2015-09-13 12:17:11 -04:00
|
|
|
.eggs/
|
2018-04-03 21:57:30 -04:00
|
|
|
.pytest_cache/
|
2016-06-13 00:46:35 -04:00
|
|
|
__amalgam__.py
|
2015-03-15 23:18:55 -03:00
|
|
|
lexer_table.py
|
|
|
|
parser_table.py
|
2015-03-15 23:40:52 -03:00
|
|
|
parser_test_table.py
|
2015-03-07 11:50:56 -06:00
|
|
|
xonsh/lexer_table.py
|
2016-05-11 00:42:36 -04:00
|
|
|
xonsh/parser_table.py
|
Completion context (#4017)
* completion-context: Add CompletionContextParser placeholder
Implements the xonsh (tab-)completion context parser.
This parser is meant to parse a (possibly incomplete) command line.
* completers: tools: Implement ``contextual_completer`` decorator
This is used to mark completers that want to use the parsed completion context.
* completers: Enable using contextual completers in xonsh/completer.py
* completers: readline, ptk, jupyter: Enable using contextual completers
Pass ``multiline_text`` and ``cursor_index`` to ``Completer.complete()``
* parsers: base: Refactor out a ``raise_parse_error`` function
* tokenize: Enable ``tolerant`` mode
If ``tolerant`` is True, yield ERRORTOKEN instead of
throwing an exception when encountering an error.
* lexer: Enable ``tolerant`` mode
Tokenize without extra checks (e.g. paren matching).
When True, ERRORTOKEN contains the erroneous string instead of an error msg.
* tests: lexer: Test ``tolerant`` mode
* completion-context: Implement simple CommandContext parsing
* completion-context: tests: Test simple CommandContext parsing
* completion-context: Implement parsing sub-commands
* completion-context: tests: Test parsing sub-commands
* completion-context: Add news file
* completion-context: parser: Add parser table path to relevant locations
Code-coverage, mypy ignore list, etc.
* completion-context: Implement parsing partial strings and line continuations
* completion-context: tests: Test parsing partial strings and line continuations
* completion-context: Convert ``Span`` object to a ``slice``
* completion-context: Refactor out ``create_command`` and ``cursor_in_span``
* completion-context: Implement handling empty commands
* completion-context: tests: Test handling empty commands
* completion-context: Implement handling multiple commands
Separated by newlines, `;`, `and`, `or`, `|`, `&&`, `||`
* completion-context: tests: Test handling multiple commands
Separated by newlines, `;`, `and`, `or`, `|`, `&&`, `||`
* completion-context: Implement handling python context
* completion-context: tests: Test handling python context
* completers: tools: Add `contextual_command_completer`
* completers: Make `complete_skipper` contextual
* completers: Make `complete_from_man` contextual
* completers: Make `complete_from_bash` contextual and add test
* completers: Make `complete_pip` contextual and update tests
* completers: Keep opening string quote if it exists
* completion-context: Handle cursor after a closing quote
For example - cursor at the end of ``ls "/usr/"``.
1. The closing quote will be appended to all completions.
I.e the completion ``/usr/bin`` will turn into ``/usr/bin"``
2. If not specified, lprefix will cover the closing prefix.
I.e for ``ls "/usr/"``, the default lprefix will be 6 to include the closing quote.
* completion-context: tests: Test handling cursor after a closing quote
* completion-context: Fix bug with multiple empty commands
e.g. `;;;`
* completion-context: tests: Speed up tests
From ~15 seconds to ~500 ms
* completion-context: Expand commands and subcommands
* completion-context: Simplify `commands` rules
* completion-context: Simplify `sub_expression` rules
* completion-context: Simplify editing a multi-command token
* completion-context: Inline `create_command`
* completion-context: Implement `contextual_command_completer_for` helper
* completers: Make `complete_cd`/`complete_rmdir` contextual and add tests
* completers: path: Don't append a double-backslash in a raw string
When completing a path, if a raw string is used (e.g. `r"C:\Windows\"`),
there's no reason to append a double-backslash (e.g. `r"C:\Windows\\"`).
* completers: Make `complete_xonfig`/`complete_xontrib` contextual and add tests
* completers: Make `complete_completer` contextual and add tests
* completers: Make `complete_import` contextual and add tests
* completion-context: Add python `ctx` attribute
* completion: tools: Simplify `RichCompletion` attributes handling
* completers: Make `base`, `python`, and `commands` contextual
* Add tests
* No need for `python_mode` completer anymore
* completion: tools: Add `append_space` attribute to `RichCompletion`
* completion-context: Get all lines in a main python context
* xontrib: jedi: Make the `jedi` completer contextual
* completers: tools: Remove `get_ptk_completer` and `PromptToolkitCompleter.current_document`
These aren't needed anymore now that contextual completers can access the multiline code (via `PythonContext.multiline_code`).
* completion-context: ptk: Expand aliases
* completion-context: jupyter: Expand aliases and fix line handling
* completer: Preserve custom prefix after closing quote
* completers: bash: Ensure bash completion uses the complete prefix
* completers: pip: Append a space after a pip command
* completers: pip: Prevent bad package name completions
* completers: Remove a common prefix from `RichCompletion` if `display` wasn't provided
* completion-context: Treat cursor at edge of `&& || | ;` as normal args
This will be used for completing a space
* completers: Complete end proc keywords correctly
2021-03-30 20:37:56 +03:00
|
|
|
xonsh/completion_parser_table.py
|
|
|
|
xonsh/parsers/completion_parser_table.py
|
2015-03-07 11:50:56 -06:00
|
|
|
tests/lexer_table.py
|
2016-05-11 00:42:36 -04:00
|
|
|
tests/parser_table.py
|
2015-03-07 11:50:56 -06:00
|
|
|
tests/lexer_test_table.py
|
|
|
|
tests/parser_test_table.py
|
2017-02-13 00:25:38 -05:00
|
|
|
tests/testfile
|
2015-03-07 13:35:01 -06:00
|
|
|
build/
|
|
|
|
dist/
|
|
|
|
xonsh.egg-info/
|
2015-04-06 12:19:56 -07:00
|
|
|
docs/_build/
|
2016-01-06 01:55:40 -08:00
|
|
|
docs/envvarsbody
|
2016-05-11 00:42:36 -04:00
|
|
|
docs/xontribsbody
|
2016-08-27 22:25:29 -04:00
|
|
|
docs/eventsbody
|
2016-06-26 09:46:43 -04:00
|
|
|
xonsh/dev.githash
|
2015-04-06 12:19:56 -07:00
|
|
|
|
2015-06-03 10:32:34 -05:00
|
|
|
# temporary files from vim and emacs
|
|
|
|
*~
|
|
|
|
*#
|
|
|
|
.#*
|
|
|
|
*.swp
|
|
|
|
*.swo
|
|
|
|
|
2015-04-06 12:19:56 -07:00
|
|
|
# Virtualenv
|
|
|
|
pip-selfcheck.json
|
|
|
|
bin/
|
2018-07-03 10:37:44 -04:00
|
|
|
/lib/
|
2015-04-06 12:19:56 -07:00
|
|
|
include/
|
2020-03-01 18:56:23 +01:00
|
|
|
venv/
|
2020-08-16 16:31:17 -04:00
|
|
|
.venv*/
|
|
|
|
|
2015-05-19 18:07:30 +02:00
|
|
|
|
|
|
|
# Mac
|
2015-06-11 14:13:57 +02:00
|
|
|
.DS_Store
|
2016-04-01 00:36:14 -04:00
|
|
|
|
|
|
|
# Editor project files
|
|
|
|
*.komodo*
|
2016-06-22 22:45:42 +03:00
|
|
|
.cache
|
2016-07-18 09:59:13 +02:00
|
|
|
.idea
|
2016-06-22 11:35:24 +03:00
|
|
|
|
|
|
|
.coverage
|
2020-12-18 19:34:42 +05:30
|
|
|
coverage.xml
|
2016-08-15 16:26:37 -04:00
|
|
|
feedstock/
|
2016-08-15 23:21:57 -04:00
|
|
|
*.cred
|
2016-10-13 02:03:30 -04:00
|
|
|
tttt
|
2017-02-26 21:54:39 -05:00
|
|
|
Actually_test.tst
|
|
|
|
Actually.tst
|
|
|
|
Complete_test.tst
|
|
|
|
Complete.tst
|
2017-02-27 21:44:58 +02:00
|
|
|
tags
|
2017-11-22 18:12:29 -05:00
|
|
|
|
|
|
|
# Rever
|
|
|
|
rever/
|
2018-07-03 10:47:58 -04:00
|
|
|
# Allow the lib
|
2018-07-03 10:37:44 -04:00
|
|
|
!/xonsh/lib
|
2019-10-15 23:50:13 -04:00
|
|
|
|
2020-08-10 01:43:51 -04:00
|
|
|
|
|
|
|
# Allow tests/bin
|
|
|
|
!/tests/bin
|
|
|
|
|
2019-10-15 23:50:13 -04:00
|
|
|
# elm
|
2019-10-16 17:54:47 -04:00
|
|
|
xonsh/webconfig/elm-stuff/
|
2019-10-23 16:39:36 -04:00
|
|
|
xonsh/webconfig/js/app.js
|
2019-12-06 10:39:22 -05:00
|
|
|
|
|
|
|
# VS Code
|
|
|
|
.vscode/
|
2020-05-06 12:27:08 +03:00
|
|
|
|
|
|
|
# AppImage
|
2020-10-02 16:25:08 +05:30
|
|
|
*.AppImage
|
|
|
|
|
|
|
|
# mypy
|
|
|
|
.dmypy.json
|
2020-10-27 15:23:58 +01:00
|
|
|
.mypy_cache
|