xonsh/tests
Noorhteen Raja NJ e76115676b
improve completers (#4648)
* fix: pip -r appends spaces at the end

modularize completing output from subproc-out

* docs:

* fix: flake8

* fix: failing pip comp tests

* refactor: naming xonsh conflicts with actual package

the IDE completions don't work.
we add this naming convention instead.

* feat: option to filter after completion returned

this will help reduce some boilerplate, and we can enrich the filtering
behaviour

* feat: add gh completions

* fix: filtering out completions

* refactor: simplify invoking completer interface

* test: add fixture for xsh with os-env

* test: add tests for gh-completions

* fix: flake error

* fix: mypy errors and update gh completer tests

* fix: handle cross-platform line endings

* feat: include man,bash completer only if available

* todo: improve man page completions

* fix: failing man page tests

* fix: py 3.7 compatibility

* fix: qa error

* fix: stop dir completions

* feat: improve man page completions

now shows descriptions, recognizes more number of options correctly

* fix: update man page completions

* feat: support filtering based on display as well

* Update xonsh/completer.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* style:

* test: xfail ptk-shell tests on windows

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2022-01-27 21:22:36 +05:30
..
aliases update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
bin Use full paths when launching processes on Windows (#4077) 2021-08-16 22:02:12 +03:00
completers improve completers (#4648) 2022-01-27 21:22:36 +05:30
fake_lib more mocks for test_xonfig_kernel 2020-09-23 04:35:44 -04:00
histories Fix tests 2020-09-23 21:15:37 +02:00
man1 improve completers (#4648) 2022-01-27 21:22:36 +05:30
procs update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
prompt update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
scripts xonsh script.xsh should not fail over 2017-01-11 21:59:42 +08:00
test_lib chore: update libs 2022-01-24 12:35:46 -05:00
xontribs fix: append space at the end of completions (#4611) 2021-12-23 18:27:37 +05:30
xoreutils Add uname command, Update uptime comand (#3909) 2022-01-08 18:28:46 +05:30
xpack test subpackage 2015-03-29 22:53:33 -05:00
.somedotfile dotfile matching 2018-09-12 18:12:02 -04:00
bashrc.sh added tests for foreign shells 2015-10-10 19:52:53 -04:00
batch.bat Add test for sourcing bat file on windows 2016-04-18 00:41:11 +02:00
conftest.py improve completers (#4648) 2022-01-27 21:22:36 +05:30
run_pwd.xsh more fixes 2016-09-09 00:58:32 -04:00
sample.xsh fixed up dashing 2018-11-08 13:16:44 -05:00
test_aliases.py Feat: add Aliases.register (#4547) 2022-01-21 16:30:23 +05:30
test_ansi_colors.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_ast.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_base_shell.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_bashisms.py feat: use ArgparserAlias for xontrib (#4441) 2021-09-02 22:17:45 +03:00
test_builtins.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_cli_utils.py history transfer (#4604) 2021-12-20 08:36:29 +05:30
test_color_tools.py Fix tests 2020-09-23 21:15:37 +02:00
test_commands_cache.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_completer.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_completion_context.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_contexts.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_dirstack.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_dirstack_unc.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_environ.py Fix: detype None env-vars to '' to fix #4600 (#4649) 2022-01-21 14:46:50 +05:30
test_events.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_execer.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_foreign_shells.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_history_dummy.py history transfer (#4604) 2021-12-20 08:36:29 +05:30
test_history_json.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_history_sqlite.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_imphooks.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_integrations.py feat: implement $SHLVL mirroring bash's implementation (#4651) 2022-01-24 07:24:28 +05:30
test_jobs.py Ap/disown (#4442) 2021-08-28 19:38:05 +03:00
test_jsonutils.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_jupyter_kernel.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_lazyasd.py black tests 2018-08-30 09:18:49 -05:00
test_lazyjson.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_lexer.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_main.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_man.py improve completers (#4648) 2022-01-27 21:22:36 +05:30
test_mpl.py Flake8 1 (#3550) 2020-05-05 06:42:28 -04:00
test_news.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_parser.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_path_completers.py Path completion in python code (#4457) 2021-09-07 01:23:49 +03:00
test_pipelines.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_platform.py Fix empty command error message (#4308) 2021-06-11 14:11:19 +03:00
test_pretty.py Lab/pretty print test (#4425) 2021-08-24 09:29:39 +03:00
test_ptk_completer.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_ptk_highlight.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_ptk_history.py refactor: remove xonsh.ptk2 module (#4570) 2021-11-30 08:22:31 -05:00
test_ptk_multiline.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_ptk_shell.py improve completers (#4648) 2022-01-27 21:22:36 +05:30
test_pyghooks.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_python_completers.py chore: enable flake8 for tests (#4482) 2021-09-26 11:32:24 -04:00
test_readline_shell.py Add test for readline shell (#4447) 2021-09-02 22:15:20 +03:00
test_shell.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_tools.py Fix: detype None env-vars to '' to fix #4600 (#4649) 2022-01-21 14:46:50 +05:30
test_tracer.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_vox.py update test xsh usage (#4581) 2022-01-07 17:33:22 -05:00
test_wizard.py pre-commit hook for pyupgrade (#4583) 2021-12-06 14:42:26 -05:00
test_xonfig.py fix: xonfig web is not upto-date (#4606) 2022-01-18 11:11:16 -05:00
test_xonsh.xsh Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_xontribs.py refactor: replace xontribs.json with xontribs_meta.py 2020-11-10 22:12:27 +05:30
tools.py improve completers (#4648) 2022-01-27 21:22:36 +05:30