Commit graph

8984 commits

Author SHA1 Message Date
Daniel Shimon
c7cced30ad completers: ptk: Correct PTK Completion construction 2020-08-05 00:15:17 +03:00
Daniel Shimon
a0439bd35f completers: ptk, readline: Add tests for RichCompletion 2020-08-05 00:15:17 +03:00
Daniel Shimon
5f50b620b7 xontrib: jedi: Add jedi completer tests 2020-08-05 00:15:17 +03:00
Anthony Scopatz
b413d5ea70
Merge pull request #3643 from daniel-shimon/improve-completers
Improve completers and Jedi xontrib
2020-07-28 11:11:50 -05:00
Anthony Scopatz
acc5ddeaf7
make GH Actions more restartable (#3646) 2020-07-28 09:43:25 -04:00
Anthony Scopatz
6d0e6ee1ae
Merge pull request #3524 from bobhy/failback_shell_env
Failback shell env
2020-07-27 21:21:32 -05:00
Daniel Shimon
34cb6e18c2 Add PR news for improve-completers 2020-07-28 02:58:33 +03:00
Daniel Shimon
f48b37939d xontrib: jedi: Improve Jedi completer
* Use new Jedi API
* Replace the existing python completer
* Create rich completions with extra info
* Use entire multiline document if available
* Complete xonsh special tokens
* Be aware of _ (last result)
* Only show dunder attrs when prefix ends with '_'
2020-07-28 02:58:33 +03:00
Daniel Shimon
5686b94245 completers: Enable display and description texts with RichCompletion 2020-07-28 02:58:33 +03:00
Anthony Scopatz
674c41782c
Merge pull request #3636 from Achimh3011/pkg_resources_missing_methods
Provide the XonshImportEventLoader with all the functions that pkg_re…
2020-07-27 12:35:43 -05:00
Achim Herwig
d15cd6a184 Make black happy. 2020-07-27 18:46:48 +02:00
Daniel Shimon
c91aa689bd completers: Enable access to ptk's multiline document
Completers can access the current multiline document when prompt_toolkit is used.
They can do this via xonsh.completers.tools.get_ptk_completer(),
and if it's not None, it's '.current_document' will contain the object.
2020-07-27 18:44:58 +03:00
Daniel Shimon
5b33427c61 base completer: Don't complete unnecessarily 2020-07-27 18:44:58 +03:00
Daniel Shimon
b7bba551e1 completer: Fix crash in completer
Fixed crash when completing the 'completer' command and the cursor is inside a word
I.E. 'completer some<TAB>thing'
2020-07-27 18:44:58 +03:00
Achim Herwig
3f9f08ceca Use frozenset and provide NEWS entry as suggested by scopatz. 2020-07-27 16:54:16 +02:00
Anthony Scopatz
ebc756d6c6
Merge pull request #3614 from con-f-use/master
Expand xonshrc documentation
2020-07-27 09:43:12 -05:00
Anthony Scopatz
f4b317f867
Merge pull request #3575 from paugier/hg-get-branch-topic
get_hg_branch aware of topics
2020-07-27 09:41:53 -05:00
con-f-use
49615e9e49
add warning about JSON hack 2020-07-27 09:37:32 +02:00
Anthony Scopatz
6df0e9639f
Merge pull request #3600 from bobhy/is_3599
fix history gc for json backend
2020-07-26 19:58:52 -05:00
Daniel Shimon
1b7892186a aliases: Fix typo in 'source' alias 2020-07-24 02:49:55 +03:00
Bob Hyman
7e6e47163f perf tweaks per review 2020-07-21 19:00:22 -04:00
Achim Herwig
342d942227 Adress review comment... 2020-07-12 18:02:25 +02:00
Achim Herwig
9de03038c9 Shortened version that provides correct hasattr semantics. 2020-07-11 12:31:35 +02:00
Achim Herwig
9bd858e6b4 Provide the XonshImportEventLoader with all the functions that pkg_resources would expect.
Fixes #3607

Signed-off-by: Achim Herwig <achim.herwig@wodca.de>
2020-07-11 12:31:35 +02:00
con-f-use
dd3baf5835
fix typo in docs/xonshrc.rst
Co-authored-by: Burak Yigit Kaya <ben@byk.im>
2020-06-30 20:00:31 +02:00
Bob Hyman
de07c3ed37 Don't run test_integrations.py with XONSH_DEBUG=1 2020-06-28 14:21:53 -04:00
Bob Hyman
a4e696ad94 Display history size after first gc pass; (debug only) show progress enumerating history files 2020-06-28 14:08:30 -04:00
Bob Hyman
022972ee92 Wordsmith news to trigger another CI pass. 2020-06-26 20:47:54 -04:00
Bob Hyman
15f3d8852b fix history gc for JSON backend; deal with large accumulations while this was broken 2020-06-26 20:47:54 -04:00
Bob Hyman
dde73ba72c Xonsh failback to /usr/bin/bash in preference to /etc/shells 2020-06-25 19:49:04 -04:00
con-f-use
51671628e3
typo in docs/xonshrc.rst
Co-authored-by: Morten Enemark Lund <melund@gmail.com>
2020-06-26 00:54:38 +02:00
Morten Enemark Lund
3ee01444a9
Merge pull request #3613 from bobhy/is_3608
LS_COLORS add 'mh', 'ca', change 'rs' to 'fi', enable ln=target
2020-06-25 23:34:47 +02:00
Bob Hyman
6492a61171 test 2020-06-24 20:03:56 -04:00
Bob Hyman
0cad1a28fe avoid deep nesting initializing LS_COLORS 2020-06-24 18:01:18 -04:00
Bob Hyman
129ce9e44a LS_COLORS add mh, change rs to fi; support ln=target 2020-06-20 17:46:37 -04:00
David Strobach
c0089a4cef
Merge pull request #3561 from bobhy/flake8_in_CI
Run (pure) flake8 in CI; deprecate config for pytest-flake8
2020-06-20 21:00:39 +02:00
Jamie Bliss
867a53086a
Merge pull request #3624 from laloch/xontrib-failok
xontrib: don't stop loading xontribs on error
2020-06-19 19:43:45 -04:00
Bob Hyman
8e4d2bfb0e changes per review 2020-06-19 17:31:37 -04:00
David Strobach
19c9379df7 changelog entry 2020-06-18 15:41:16 +02:00
David Strobach
daeeadfbc3 xontrib: don't stop loading xontribs on error
xontrib load action can load multiple xontribs at once. If, however,
one of the xontribs fails to load, because, for instance, of
a missing dependency, the command exits and the rest of the modules
is not attempted to load at all.
This patch modifies the `load` action behavior to only print
exception on error, but to continue loading remaining xontribs.
2020-06-18 15:41:10 +02:00
Jamie Bliss
ecfea5d965
Merge pull request #3620 from laloch/ci-timeout
CI: increase pytest timeout
2020-06-15 13:39:04 -04:00
Bob Hyman
016afa5281 Merge branch 'is_3608' of https://github.com/bobhy/xonsh into is_3608 2020-06-14 14:36:06 -04:00
Bob Hyman
b65f7b0ac5 Only test easy-to-test cases on Windows. 2020-06-14 13:16:37 -04:00
Bob Hyman
57ed6e553a Prune test cases that won't work on Windows. 2020-06-14 13:08:11 -04:00
Bob Hyman
1e3a571e7b Merge branch 'is_3608' of https://github.com/bobhy/xonsh into is_3608 2020-06-14 01:11:52 -04:00
Bob Hyman
79073df177 blacken yet another file. 2020-06-14 01:10:13 -04:00
Bob Hyman
78117bd251
blacken yet another file. 2020-06-14 01:05:01 -04:00
Bob Hyman
37d6ca11c1 Merge branch 'is_3608' of https://github.com/bobhy/xonsh into is_3608 2020-06-14 00:51:14 -04:00
Bob Hyman
4ba9b45c1c Merge branch 'is_3608' of https://github.com/bobhy/xonsh into is_3608 2020-06-14 00:50:23 -04:00
Bob Hyman
68daee95e0 Merge branch 'is_3608' of https://github.com/bobhy/xonsh into is_3608 2020-06-14 00:43:58 -04:00