Commit graph

1788 commits

Author SHA1 Message Date
Anthony Scopatz
659f840e32 fixed AUTO_CD bug 2015-12-29 23:57:00 -08:00
Anthony Scopatz
753cd5dcc4 test fixes 2015-12-29 23:46:44 -08:00
Anthony Scopatz
8f9e5ae574 forgot init 2015-12-29 23:16:34 -08:00
Anthony Scopatz
e535630df5 initial ptk sub-package 2015-12-29 23:15:56 -08:00
Anthony Scopatz
1ec0a6bf02 Merge pull request #583 from BYK/fix-windows-run-error
Fix error when trying to run commands on Windows
2015-12-25 10:42:51 -08:00
Burak Yigit Kaya
1413ef407f Fix error when trying to run commands on Windows
On Windows, when you both have `command` and `command.bat` files Xonsh
always prefers the `command` version because `'' in PATHEXT` check
always returns `True` (because of the empty string).

This patch fixes this by treating `PATHEXT` as "env path" so Xonsh
prefers the file with extension first.
2015-12-25 14:54:03 +02:00
adam j hartz
846b60265b Merge pull request #578 from scopatz/ptk-hist
prompt-toolkit history now reads from xonsh history rather its own custom pickle method.
2015-12-21 17:28:30 -05:00
Anthony Scopatz
72d048359c remove sequential duplicates from ptk hist 2015-12-21 10:44:25 -08:00
Anthony Scopatz
2c218cc072 more stuff 2015-12-20 15:39:33 -08:00
Anthony Scopatz
9e39b3b4a4 Merge pull request #576 from adqm/env_expand
Environment Variable Expansion
2015-12-19 19:35:00 -08:00
adam j hartz
3dcd709c0d add back replace_env and undo_replace_env 2015-12-19 21:39:43 -05:00
Anthony Scopatz
a30bc80bef prompt-toolkit history now reads from xonsh history rather its own custom pickle method. 2015-12-19 18:26:37 -08:00
adam j hartz
3ac3b45e7b use python's eval instead of evalx 2015-12-19 21:22:54 -05:00
adam j hartz
26bd38bbab update test cases 2015-12-19 21:17:03 -05:00
adam j hartz
9f1e1996d2 remove all replace_env 2015-12-19 20:53:33 -05:00
adam j hartz
8cfbcda6e2 get rid of extra call to replace_env 2015-12-19 20:52:04 -05:00
adam j hartz
affc29c711 use NT expandvars as a base, instead of POSIX 2015-12-19 20:50:39 -05:00
adam j hartz
ff5c6ddecc capitalization typo 2015-12-19 20:25:27 -05:00
adam j hartz
18a6fa62ea Merge branch 'env_expand' of https://github.com/adqm/xonsh into env_expand 2015-12-19 20:23:32 -05:00
Anthony Scopatz
fefad23cbd Merge pull request #577 from adqm/completer_bugfix
add slashes to quoted strings with, e.g., ~ in them
2015-12-19 16:54:29 -08:00
adam j hartz
2ff7426800 add slashes to quoted strings with, e.g., ~ in them 2015-12-19 19:29:55 -05:00
adam j hartz
1fe9944d65 never mind giving Windows users a default HOME 2015-12-19 19:21:27 -05:00
adam j hartz
0e24576ede fix for test cases 2015-12-19 19:16:01 -05:00
adam j hartz
07a8d03284 make environment variable lookup always look at defaults 2015-12-19 19:13:34 -05:00
adam j hartz
a5479a86d3 fix confusing output from boolean variables 2015-12-19 18:55:12 -05:00
adam j hartz
eae1f54610 include default HOME value (so people on Windows have it) 2015-12-19 18:54:56 -05:00
adam j hartz
a5f2b7019e skip more test cases on windows 2015-12-19 18:44:58 -05:00
adam j hartz
247bd1efbd be smarter about env var replacement 2015-12-19 18:34:25 -05:00
adam j hartz
f98b911a12 fix regexes for matching env vars for ensurers 2015-12-19 18:34:02 -05:00
adam j hartz
3c487284b4 more test case fiddling 2015-12-19 18:09:06 -05:00
adam j hartz
8299ce49ea modify expandvars to use the xonsh environment 2015-12-19 17:59:41 -05:00
adam j hartz
f958b8b04a try to make travis and appveyor autobuilds use quiet mode 2015-12-19 17:31:00 -05:00
adam j hartz
36ba1b14bf update tests for new aliasing 2015-12-19 17:29:48 -05:00
adam j hartz
2bc5c3b1f1 document environment variable expansion 2015-12-19 17:18:21 -05:00
adam j hartz
df33b6578e document new env var 2015-12-19 17:11:59 -05:00
adam j hartz
b2f8fa8e74 expand env vars inside of aliases (#338) 2015-12-19 17:10:47 -05:00
adam j hartz
0f50234dc9 new env var to toggle expansion of env vars in strings 2015-12-19 17:10:20 -05:00
Anthony Scopatz
cc59769816 Merge branch 'adqm-completer' 2015-12-18 19:57:32 -05:00
adam j hartz
abe1e32076 add test for check_for_partial_string 2015-12-18 15:30:46 -05:00
adam j hartz
f179c6b525 windows fixes 2015-12-18 15:06:13 -05:00
adam j hartz
eb12db1b4e refactor quoting of paths 2015-12-18 14:56:57 -05:00
adam j hartz
95ce8ee18f complete on end of quotes as well 2015-12-18 14:31:48 -05:00
adam j hartz
6c0c00bd14 decode using xonsh_encoding and xonsh_encoding_errors 2015-12-18 12:13:20 -05:00
adam j hartz
d294867051 workaround for readline completion deleting too many things 2015-12-18 12:09:21 -05:00
adam j hartz
410b88446a swap order of return values in Completer, modify docstring 2015-12-18 12:06:29 -05:00
adam j hartz
ded0863990 remove unnecessary import 2015-12-17 22:21:27 -05:00
adam j hartz
ba36964ed1 first step toward raw string handling 2015-12-17 10:36:03 -05:00
adam j hartz
07a9a650f0 fix bug with string start regex not including leading chars 2015-12-17 10:35:38 -05:00
adam j hartz
31aad01153 docstrings for string regexes and check_for_partial_string 2015-12-17 10:04:55 -05:00
adam j hartz
78715b9bfb refactor partial string finding 2015-12-17 09:51:17 -05:00