Commit graph

6658 commits

Author SHA1 Message Date
Hugo Wang
0daceaad4c news entry 2017-02-04 20:49:14 +08:00
Hugo Wang
351fb0fc0e update docstring 2017-02-04 20:44:36 +08:00
Hugo Wang
11ca475a67 docs typo fixes 2017-02-04 20:04:53 +08:00
Morten Enemark Lund
a0637985d5 Update info on stdout storage on windows
Isn't it possible to store stdout on windows with the new subproc code?

This PR just remove the comments in the Docs that this is not possible.
2017-02-04 09:17:21 +01:00
Anthony Scopatz
c9979b0fb9 Merge pull request #2147 from xonsh/win_bash_comp
Fix bash completions on Windows when WSL is installed
2017-02-03 15:47:32 -05:00
Jamie Bliss
ccdf582152 Merge pull request #2109 from xonsh/hist
changed history indexing api
2017-02-03 14:51:17 -05:00
Morten Enemark Lund
21d42b37dc More white space tyrani 2017-02-03 18:55:11 +01:00
Morten Enemark Lund
25ceadc54f Add ignore alias 2017-02-03 17:26:40 +01:00
Hugo Wang
d4d7e6f6e5 a bit more docs 2017-02-03 21:52:54 +08:00
Hugo Wang
05958da81d refine english in docs 2017-02-03 21:38:28 +08:00
Morten Enemark Lund
fde73a5ad6 pep8 2017-02-03 13:58:53 +01:00
Morten Enemark Lund
de5852492a Add release note 2017-02-03 13:49:14 +01:00
Morten Enemark Lund
31ca91bfe3 Use lazy_locate_binary to check if bash is on PATH
Also don't use bash if it is the 'Windows subsystem for Linux' version of Bash.
2017-02-03 13:46:41 +01:00
Gil Forsyth
d728bf7673 add style_tools to amalgamate exclude 2017-02-02 16:57:19 -05:00
Hugo Wang
0f43e03dc2 XONSH_HISTORY_BACKEND accepts class 2017-02-02 20:14:14 +08:00
Hugo Wang
0923d10b14 update file name 2017-02-02 20:00:26 +08:00
Hugo Wang
bc1cf46e0a update toc 2017-02-02 19:58:25 +08:00
Hugo Wang
4b96441f28 totor write your own history BE - wip 2 2017-02-02 19:49:53 +08:00
Morten Enemark Lund
84b62841c0 Merge pull request #2145 from xonsh/rllen
Readline len
2017-02-02 09:26:27 +01:00
Anthony Scopatz
40d2bb8353 added news 2017-02-01 23:45:00 -05:00
Anthony Scopatz
5717f72770 fix trying to read last value in readline history 2017-02-01 23:42:01 -05:00
Anthony Scopatz
3d130fdfc2 Merge pull request #2136 from xonsh/vc_alias_fix
ignore vc aliases in command_cache
2017-02-01 23:24:27 -05:00
Jamie Bliss
20704f5d1a Merge pull request #2131 from xonsh/envev
Event on_envvar
2017-02-01 22:09:38 -05:00
Gil Forsyth
6bf21ee5e0 use pygments Token is pygments is available 2017-02-01 21:24:07 -05:00
Gil Forsyth
841fc300aa add empty split method to fix pygments
Mostly just checking if this works -- can't reproduce the errors
reported
2017-02-01 17:20:07 -05:00
Gil Forsyth
21d05918ae fix behavior for aliases in cache 2017-02-01 16:00:58 -05:00
Gil Forsyth
27ef724927 remove special case ugliness
Replace with something better.
No more special casing, now `allcmds` is a tuple of path and also alias
if it exists (otherwise `None`). `locate_binary` and
`lazy_locate_binary` also not take an additional option kwarg to force
returning the path to a binary even if an alias exists
2017-02-01 12:56:38 -05:00
Anthony Scopatz
cb62c0c3c3 cl fix 2017-02-01 10:33:50 -05:00
Anthony Scopatz
8b97b1af72 version bump to 0.5.3 2017-02-01 10:32:33 -05:00
Hugo Wang
7c68b9267d tutor your own history BE - wip 1 2017-02-01 22:24:00 +08:00
Konstantinos Tsakiltzidis
897469fea1 Merge pull request #2137 from xonsh/badpty
Bad PTY
2017-02-01 14:24:56 +02:00
Hugo Wang
0b0fbc12bb Merge pull request #2100 from aweltsch/traceback_logfile_expand_path
Traceback logfile expand path
2017-02-01 16:02:36 +08:00
Anthony Scopatz
350f90cc63 yet another fix 2017-01-31 18:26:29 -05:00
Anthony Scopatz
3437234000 Ensure unix line ending when using ptys 2017-01-31 18:23:34 -05:00
Gil Forsyth
a46bac72eb Merge pull request #2132 from xonsh/ccover
adding code coverage back
2017-01-31 18:22:26 -05:00
laerus
65d36b8e72 environ one sentinel value per Env instance 2017-02-01 01:16:17 +02:00
Gil Forsyth
eaa12f9bff ignore vc aliases in command_cache
I don't *think* this will have any side effects.

When we build the ``$PROMPT``, we lazily check for ``git`` and ``hg``
binaries to see if we should generate a ``<branch>`` field.

At the same time ``lazy_locate_binary`` doesn't return the path to a
command if it detects that that command is an alias (since aliases won't
have a path).

In the case that ``git`` or ``hg`` is aliased (the specific case here
was replacing ``git`` with ``hub``), ``lazy_locate_binary`` will return
``None`` because the command is an alias.

This breaks the logic in the branch detection. We don't want to change
the logic in the branch detection since there are many potential impacts
on prompt generation speed, which makes for a bad user experience.

So, this is a mildly ugly hack, but it's the best option I could come up
with in order to preserve prompt speed and still keep the branch
information available for this slightly weird edge case.

I'm all ears to alternative solutions.
2017-01-31 18:11:19 -05:00
laerus
0a9c5381bd event envvar docs 2017-01-31 22:43:24 +02:00
laerus
8173a24fcc coveragerc cleanup 2017-01-31 17:10:40 +02:00
laerus
50e3367f1e environ.py pep8 2017-01-31 14:23:27 +02:00
laerus
bbeafbab56 event on_envvar moar testing 2017-01-31 12:51:26 +02:00
laerus
2e492eed27 event on_envvar_change no fire for same value 2017-01-31 12:26:50 +02:00
laerus
cd21c83e09 split on_envvar to on_envvar_new & on_envvar_change 2017-01-31 12:13:50 +02:00
laerus
ba18fe8958 HistoryEntry back to SimpleNamespace 2017-01-31 11:07:28 +02:00
Andre Weltsch
383596dc57 Merge remote-tracking branch 'origin/master' into traceback_logfile_expand_path. 2017-01-31 09:12:38 +01:00
Sardorbek Imomaliev
eebb5ba55d +news 2017-01-31 13:54:16 +07:00
Sardorbek Imomaliev
19341504ed + bash_completion.py 2017-01-31 13:17:13 +07:00
Andre Weltsch
95bd061163 Add test cases for tools.expand_path.
* Test different parameters for expand_user.
* Test different parameters for EXPAND_ENV_VARS.
2017-01-30 18:49:41 +01:00
Morten Enemark Lund
150d12673e Merge pull request #2113 from xonsh/jk
potential fix for jupyter
2017-01-30 18:46:50 +01:00
laerus
c6b9839690 environ event test for new envvar 2017-01-30 15:41:48 +02:00