Commit graph

7847 commits

Author SHA1 Message Date
traverseda
7009fe98e3 Add pypy3 to test cases. 2018-08-24 16:23:29 -04:00
Anthony Scopatz
8be0af6555 unholy cross 2018-08-24 08:58:44 -04:00
Anthony Scopatz
6ff0a09ef9
Merge pull request #2787 from xonsh/history_match_anywhere
Add history matching toggle to search entire line
2018-08-23 16:48:33 -04:00
Gil Forsyth
baf7158891 Add history matching toggle to search entire line
Default behavior of prompt_toolkit on an up-arrow history search is to use a
`startswith` check to match previous entries.
This introduces an environment variable `XONSH_HISTORY_MATCH_ANYWHERE` that, if
`True`, will instead perform a history search with an `is in` to allow matching
anywhere.

This could potentially have performance impacts depending on how many history
items are being searched, so I've defaulted it to `False` but I'm open to input
on that (or any of the rest of it).
2018-08-23 15:41:21 -04:00
Anthony Scopatz
74df5b9592 Added attribute chain loading 2018-08-22 18:30:31 -04:00
Anthony Scopatz
4b35a0d653 Updated CHANGELOG for 0.7.6 2018-08-21 16:49:33 -04:00
Anthony Scopatz
508a8f0bbc bumped version to 0.7.6 2018-08-21 16:49:33 -04:00
Anthony Scopatz
3939a31b27
Merge pull request #2784 from t184256/cache-by-realpath
cache scripts by realpath
2018-08-21 16:03:45 -04:00
Anthony Scopatz
49a0ea070a
Merge pull request #2775 from gsaga/fix_Env_swap
Fix env swap
2018-08-21 15:39:28 -04:00
Anthony Scopatz
1883f5002c some minor improvements and test 2018-08-21 15:21:46 -04:00
Alexander Sosedkin
0a9899a7cf cache scripts by realpath
Cache scripts by realpath, resolving symlinks,
as per discussion in #2776.
I chose realpath(...) over abspath(realpath(...)),
as realpath does call abspath internally.
2018-08-22 02:21:37 +07:00
Anthony Scopatz
580c4ad5e8 Merge branch 'master' into fix_Env_swap 2018-08-21 15:15:26 -04:00
Anthony Scopatz
a74169b45b Merge branch 'pygments_codes' 2018-08-21 14:56:26 -04:00
Morten Enemark Lund
e86f7be141
Merge pull request #2781 from xonsh/compstack
Callable alias stack - with completer fix
2018-08-21 17:31:56 +02:00
Anthony Scopatz
4f95429346
Merge pull request #2782 from xonsh/color_py35
Fix a bug with colors beeing converted to old format multiple times
2018-08-21 10:49:42 -04:00
Morten Enemark Lund
e11fa92d63 pep8 2018-08-21 14:30:22 +02:00
Morten Enemark Lund
3e00dc0c10 Add news entry 2018-08-21 13:54:33 +02:00
Morten Enemark Lund
a374f0aa99 Monkey-patch pygments 2.2 console codes with ptk2 colors
Should fix a crash when using the $XONSH_STDERR_PREFIX/POSTFIX`` with
prompt_toolkit 2 and Pygments 2.2.
2018-08-21 13:54:32 +02:00
Morten Enemark Lund
59027ac7ce Split bare color name mapping their own dict 2018-08-21 09:59:26 +02:00
Morten Enemark Lund
37b9f1a34f Add pygments version info function 2018-08-21 09:58:44 +02:00
Morten Enemark Lund
5da14ad025 Fix a bug with colors beeing converted to old format multiple times on py 3.5
This bug didn't manifest itselft on Python 3.6 because of the
fixed nature of dictionaries.
2018-08-21 08:53:36 +02:00
Anthony Scopatz
f9c1eec800 flake fix 2018-08-20 20:16:29 -04:00
Anthony Scopatz
34573267cb added news 2018-08-20 20:05:02 -04:00
Anthony Scopatz
8db169ec1a docs and tests 2018-08-20 19:57:56 -04:00
Anthony Scopatz
7ca4fbd085 initial version of alias stack passing 2018-08-20 19:37:35 -04:00
David Dotson
b16587785a Fixes to XonshSession and load_builtins.
xonsh is now able to start, but we get new issues with it not able to
access items on the __xonsh__ object. It's as if somewhere we're trying
to grab e.g. `__xonsh__.env` with getattr(builtins, '__xonsh__.env'),
but I'm not seeing where this is happening.
2018-08-19 01:37:53 +02:00
David Dotson
c3c701d90c __xonsh_*__ -> __xonsh__.*
Edits to every file to conform to all builtins being under the __xonsh__
XonshSession instance.
2018-08-19 01:04:18 +02:00
Sagar Tewari
8faf3a4c3b code conforms to flake8 2018-08-18 22:45:11 +05:30
Sagar Tewari
ac22897b95 added news file 2018-08-18 22:32:16 +05:30
Sagar Tewari
d3aa9b6051 exceptions should be caught in Env.swap 2018-08-18 22:21:08 +05:30
Anthony Scopatz
c9348578c2 Updated CHANGELOG for 0.7.5 2018-08-16 15:33:03 -04:00
Anthony Scopatz
ee8ee712db bumped version to 0.7.5 2018-08-16 15:33:03 -04:00
Anthony Scopatz
8ab50b7edf hotfix for history 2018-08-16 15:26:52 -04:00
Anthony Scopatz
d69b4814d4
Merge pull request #2768 from xonsh/fix_ptk2_reverse_history
Fix recent history item ordering in ptk2 shell
2018-08-16 15:22:53 -04:00
Anthony Scopatz
d761db9eac Merge branch 'fix_rl_color' 2018-08-16 15:06:08 -04:00
Morten Enemark Lund
2d1162ebe8 Convert ansi-colors names back in all shells but ptk2 2018-08-16 19:43:08 +02:00
Morten Enemark Lund
54e8168509 Change reverse keyword to newest_first 2018-08-16 08:39:42 +02:00
Anthony Scopatz
046bc47779 Updated CHANGELOG for 0.7.4 2018-08-15 17:57:10 -04:00
Anthony Scopatz
ba898a1da8 bumped version to 0.7.4 2018-08-15 17:57:10 -04:00
Anthony Scopatz
b74eb957d6
Merge pull request #2771 from knowsuchagency/fix/voxapi_ValueError
Fix ValueError when executing `vox list`
2018-08-15 17:54:54 -04:00
Stephan Fitzpatrick
3989730e73 added changelog template 2018-08-15 14:38:20 -07:00
Stephan Fitzpatrick
650524bd9b fixes valueerror raises when executing vox list -- originally caused by modifying dirnames in-place while iterating over it 2018-08-15 14:33:55 -07:00
Morten Enemark Lund
ca2e9361e1 reverse history commands in all backends 2018-08-14 10:46:28 +02:00
Gil Forsyth
eda7c4b186 Fix recent history item ordering in ptk2 shell
Looking at the existing code, it seems like history entries should always be
loaded oldest first (which hasn't been happening, so whaaa?). This is a fix to
reverse the sort order so that we get the newest entries first when browsing
through command history.
2018-08-13 19:36:06 -04:00
Gil Forsyth
55d69ee662
Merge pull request #2765 from xonsh/ptk2single
fixed completions issue
2018-08-11 10:22:24 -04:00
Gil Forsyth
dbf7c43051
Merge pull request #2761 from xonsh/pcat
Jupyter printing with cat
2018-08-11 09:54:30 -04:00
Anthony Scopatz
5ef2587060 fixed completions issue 2018-08-11 09:29:36 -04:00
Anthony Scopatz
8d1380870e Merge branch 'master' into pcat 2018-08-11 09:00:56 -04:00
Anthony Scopatz
8ce6a934f8
Merge pull request #2763 from xonsh/color_convert_fix
Fixed a bug when converting new ptk2 ansi-color names to old names
2018-08-11 08:59:37 -04:00
Morten Enemark Lund
c928d17a7e Fixed a bug when converting new ptk2 ansi-color names to old names
The names could be converted twice
resulting in multiple leading # tag characters, since we used a very simple lookup
and some of the color names are shared.
2018-08-10 11:58:02 +02:00