Gil Forsyth
41b144e37d
rename carriage return event
...
better names make everything better
2016-01-04 08:36:31 -05:00
Gil Forsyth
dd5f8ec07b
extend naive multiline env in ptk
...
* hitting enter on a single line command that doesn't end in a colon
will simply run that line
* if a line ends in a colon, newline is added and cursor indents
* if previous line is non-empty, enter adds newline at same indentation
level
* if enter is hit and previous line is blank, command block is sent
What doesn't work
-----------------
* backslashes screw everything up
* completion is totally borked -- need to fix up the ptk completer to
only examine the current line that the cursor is on, instead of the
whole "document"
2015-12-22 11:38:34 -05:00
Gil Forsyth
3ca4fa5d05
move multiline keybindings out of shell file
2015-12-22 10:25:56 -05:00
Gil Forsyth
9a616cd7f5
success closing active prompt instance
...
Need to run:
`cli.current_buffer.accept_action.validate_and_handle(cli, document)`
2015-12-20 18:06:09 -05:00
Gil Forsyth
0b9d3559c3
Merge branch 'master' of https://github.com/scopatz/xonsh into multiline
2015-12-20 16:57:06 -05: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
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
adam j hartz
d06e702be3
use ast.literal_eval instead of plain eval for strings
2015-12-15 06:37:20 -05:00
adam j hartz
08dabd2dd0
pre-compile some regexes
2015-12-15 06:34:03 -05:00
adam j hartz
20bf953d64
use get_sep instead of hard-coding a slash
2015-12-14 22:58:11 -05:00
adam j hartz
a219009b2a
don't insert a space when there is an ending quote
2015-12-14 22:52:30 -05:00
adam j hartz
c99ce807da
hack to make completer almost work on readline
2015-12-14 22:20:44 -05:00