Benjamin Pollack
533a7e915f
Add support for -i and -l options
...
Support for the login option is very minimal, but the `XONSH_LOGIN`
variable is set in this case so that scripts may take an appropriate
action.
Fixes #517
2015-11-21 18:26:34 -05:00
Kurtis Rader
e88c863d10
Add a uniform character encoding to all files.
...
I wouldn't normally do something like this but issue #487 brought to
my attention the fact that too many of the python modules don't have
an encoding comment and of those that do there is a lot of pointless
inconsistency in the style of the comment.
2015-11-16 14:10:40 -08:00
Kurtis Rader
7ccfb171aa
Make history module mostly lint clean.
...
This fixes most of the lint errors in the history code. It also fixes
two bugs that were found by pylint due to misnamed variables. This patch
does not make any functional changes. I'll fix the remaining lint errors
in a subsequent patch when I tackle cross-module issues.
2015-11-14 19:56:26 -08:00
Kurtis Rader
4be4509a2e
Modify the code to comply with the alias API.
2015-11-06 17:38:08 -08:00
Kurtis Rader
5cc784a721
Correct function names to follow PEP8.
2015-11-06 15:12:33 -08:00
Kurtis Rader
a14a9a6f4d
Correct handling of negative history indexes.
...
Fix the handling of negative history indexes where a slice specification
is involved. Negative indexes not part of a slice specification worked by
accident because the argparse module (see section "16.4.4.3 Arguments
containing --") treats such values as positional arguments (which is a
misfeature of argparse in my opinion). I've also added unit tests for
"history show" to keep this from being broken in the future.
2015-11-05 19:35:41 -08:00
Anthony Scopatz
4a7ebb6a86
some test fixes
2015-10-31 14:31:17 -04:00
Anthony Scopatz
ec6123fc86
first pass at setting encoding
2015-10-31 13:31:52 -04:00
Anthony Scopatz
f30c7db25e
more test skipping
2015-10-20 17:53:12 -04:00
Anthony Scopatz
dffe71ae1a
don't actually run many parser tests
2015-10-20 17:26:06 -04:00
Anthony Scopatz
84fb672c61
added most of teepty delay
2015-10-11 14:01:15 -04:00
Anthony Scopatz
1e24bbb2ed
added tests for foreign shells
2015-10-10 19:52:53 -04:00
Anthony Scopatz
338769c163
line ending fixes
2015-10-10 13:05:19 -04:00
Burak Yigit Kaya
3bcc38b447
Fix invalid lexer type error
...
Anything stored in `env` is always cast to string so remove
`HIGHLIGHTING_LEXER` variable since it is directly passed to
prompt_toolkit and it is always a string when restoring from `env`
causing `prompt_toolkit` to throw an error because it expects a `Lexer`
instance.
2015-10-06 11:40:27 +03:00
Anthony Scopatz
9e25ec1f6f
await implement
2015-09-27 01:09:28 -04:00
Anthony Scopatz
c6fdab6e11
full async
2015-09-27 00:30:49 -04:00
Anthony Scopatz
d86574d4b6
prelim async with
2015-09-27 00:24:40 -04:00
Anthony Scopatz
944afcbf76
async funcdefs and decorators
2015-09-26 23:52:31 -04:00
Anthony Scopatz
a86b5c3a2e
forgot to skip tests
2015-09-26 22:55:35 -04:00
Anthony Scopatz
34b39f3dc1
added matmult
2015-09-26 22:54:12 -04:00
Anthony Scopatz
7d525e8fe5
some really silly fixes
2015-09-26 22:27:36 -04:00
Anthony Scopatz
85b55b051e
more stuff
2015-09-26 21:27:49 -04:00
Anthony Scopatz
e1f81baa30
more working
2015-09-26 21:13:03 -04:00
Anthony Scopatz
d81406f1de
yet another test
2015-09-26 20:32:26 -04:00
Anthony Scopatz
ba3b7511c4
added a couple of tests
2015-09-26 20:30:44 -04:00
Anthony Scopatz
39f04896f7
added tests
2015-09-26 15:50:23 -04:00
Anthony Scopatz
12a07953ea
more stuff
2015-09-13 15:30:49 -04:00
Anthony Scopatz
036608137c
fixed merge conflict
2015-08-25 20:55:08 -04:00
Morten Enemark Lund
ca6a1753c9
Update test for prompt_toolkit_tools
2015-08-24 09:48:24 +02:00
Anthony Scopatz
7d70392a0c
allow history inspection post-at-exit
2015-08-23 19:29:35 -04:00
Anthony Scopatz
ebeb4bcdc0
some more replay test fixes
2015-08-23 17:00:26 -04:00
Anthony Scopatz
43bc6d48c2
some replay tests
2015-08-23 16:50:54 -04:00
Anthony Scopatz
6f854b800b
begging of history command
2015-08-23 11:30:07 -04:00
Morten Enemark Lund
078b818396
Finished coloring implementation for prompt-toolkit shell.
2015-08-22 23:41:38 +02:00
Anthony Scopatz
d4afd13863
Merge branch 'master' into hist-next
2015-08-19 10:04:08 -04:00
Robert W. Brewer
c831e9bbc7
Merge branch 'master' into prompt-toolkit-fixes
2015-08-17 23:20:20 -04:00
Anthony Scopatz
70e87e37cf
added lazy command fields to history
2015-08-16 21:41:02 -04:00
Anthony Scopatz
b456193a33
windows newline issue fix, hopefully
2015-08-12 01:04:03 -04:00
Anthony Scopatz
201aacdda6
seek from 0
2015-08-12 00:33:17 -04:00
Anthony Scopatz
fc0d00c774
try closing lj
2015-08-11 23:30:50 -04:00
Anthony Scopatz
d6381e1897
some test updates
2015-08-11 23:05:14 -04:00
Anthony Scopatz
158173889f
win fail test
2015-08-11 20:20:20 -04:00
Anthony Scopatz
f8a5dbcda3
history testing
2015-08-11 20:16:02 -04:00
Anthony Scopatz
ad8a685287
fix for empty containers in lazyjson
2015-08-05 19:43:30 -05:00
Burak Yigit Kaya
fa656e505e
Fix error when checking for indentation
2015-08-06 01:58:22 +03:00
adam j hartz
a1736ea728
Merge branch 'ic' of github.com:scopatz/xonsh into scopatz-ignore-case
2015-08-03 20:34:31 -04:00
adam j hartz
6534b8cc35
Merge pull request #340 from scopatz/bad-loop
...
fixes hanging indent error
2015-08-03 17:32:53 -05:00
Anthony Scopatz
06b892e70a
prompt formatting functions may accept None
2015-08-02 18:49:45 -05:00
Anthony Scopatz
2b208b9592
fixes hanging indent error
2015-08-02 17:34:13 -05:00
Anthony Scopatz
cb445e5508
test fixes for prompt-toolkit-fixes
2015-08-02 16:58:26 -05:00