anki-code
7f15ff0a64
Delete whole word with Shift+Del
...
Here should be Control+Backspace but https://github.com/prompt-toolkit/python-prompt-toolkit/issues/257#issuecomment-190328366
2020-09-21 23:51:36 +03:00
David Strobach
0e2846d66a
Use f-string as per the reviewer request
2020-08-28 16:53:45 +02:00
David Strobach
dc0b8a6839
black
2020-08-28 16:53:45 +02:00
David Strobach
dd4088b61d
vox: Add combo new+activate and deactivate+rm actions
...
Implemented via "vox new --activate" and "vox deactivate --remove".
2020-08-28 16:53:45 +02:00
David Strobach
f4794caef7
vox: Fix virtual environment removal
...
Virtual environment was impossible to delete after
activation/deactivation cycle.
2020-08-23 20:49:32 +02:00
David Strobach
5c2e5a3d8d
vox: Restore vox functionality
...
After the recent changes in environment defaults, the vox xontrib
could not "see" the virtual environments and work with them.
2020-08-23 11:16:26 +02:00
David Strobach
9ba2eb5934
abbrevs: Allow for setting cursor position within expanded abbrev
2020-08-13 14:12:16 +02:00
Anthony Scopatz
a816084d44
Merge pull request #3650 from daniel-shimon/improve-completers
...
Add tests and fix bugs for RichCompletion and Jedi xontrib
2020-08-04 21:11:47 -05:00
Daniel Shimon
5f8e27b666
xontrib: jedi: Fix bugs in jedi completer
2020-08-05 00:15:17 +03:00
David Strobach
7cf5a91673
Revert abbrevs expansion on the second consecutive space keypress
2020-08-04 16:19:41 +02:00
Anthony Scopatz
41a600de51
Merge branch 'patch-1' of https://github.com/sfermigier/xonsh into vox-rm
2020-08-01 14:37:38 -05:00
Anthony Scopatz
8d676bd061
Merge pull request #3606 from laloch/xontrib-pdb
...
Add pdb xontrib
2020-08-01 13:34:20 -05:00
Daniel Shimon
f48b37939d
xontrib: jedi: Improve Jedi completer
...
* Use new Jedi API
* Replace the existing python completer
* Create rich completions with extra info
* Use entire multiline document if available
* Complete xonsh special tokens
* Be aware of _ (last result)
* Only show dunder attrs when prefix ends with '_'
2020-07-28 02:58:33 +03:00
David Strobach
bcffe825df
Add xontrib-pdb. Runs pdb on SIGUSR1.
2020-06-05 13:35:53 +02:00
Bob Hyman
53bfe8c99c
Add ptk3 ( #3521 )
...
* delete package ptk; rename ptk2 to ptk_shell.; leave ptk2 as alias for ptk_shell.
* SHELL_TYPE "prompt_toolkit" only; remove ptk1 specific behavior.
* Doc updates: eliminate reference to prompt-toolkit < 2.0
* update requirements files ptk>=2; test shell_style="none"
* fix ptk2 stub per code review
* Add ptk2 to list of packages to install.
2020-04-18 10:44:27 -04:00
David Strobach
98bd6b6a48
Make autovox work with Python 3.5
...
We still can't use f-strings because of Python 3.5 support.
2020-04-08 20:13:12 +02:00
Morten Enemark Lund
0d8c0b613a
Merge pull request #3492 from laloch/abbrevs-completions-confirm
...
abbrevs: do not handle return key while a completion is selected
2020-03-31 14:17:24 +02:00
David Strobach
7e2b8105fa
abbrevs: do not handle return key while a completion is selected
2020-03-30 20:05:38 +02:00
David Strobach
e7df18840d
abbrevs: only trigger completion if the word is preceded by space
2020-03-27 23:12:34 +01:00
David Strobach
9978f6bdd7
abbrevs: fix possible exception and do some cleanup
2020-03-25 23:36:29 +01:00
David Strobach
20578fe806
black
2020-03-25 22:45:12 +01:00
David Strobach
6d1713c423
abbrevs: move abbrevs dict to the session context
2020-03-25 22:42:35 +01:00
David Strobach
43a4b9b66a
abbrevs: fix ptk2
2020-03-25 20:46:41 +01:00
David Strobach
947fa2d0b5
abbrevs: don't overwrite the dictionary if it already exists
2020-03-25 20:35:19 +01:00
David Strobach
e5621ef369
add some docs
2020-03-25 20:12:30 +01:00
David Strobach
76633b0e47
abbrevs: do not expand within strings
2020-03-25 18:29:05 +01:00
David Strobach
43f15fb5e2
abbrevs: only expand whole words on return key press
2020-03-25 18:02:02 +01:00
David Strobach
32b093b422
abbrevs: add handler for return key
2020-03-25 17:30:28 +01:00
David Strobach
d619127503
Add fish-like command abbreviations
2020-03-25 14:59:50 +01:00
Stefane Fermigier
60fecdf242
Fix error message
...
The error message for `vox rm` wrongly assumed that `vox deactivate` needs an argument.
Example of the error in action:
```
(jnov) fermigier@mbp-stefane-abilian ~/projects/jnov master $ vox rm jnov
The "jnov" environment is currently active. In order to remove it, deactivate it first with "vox deactivate jnov".
(jnov) fermigier@mbp-stefane-abilian ~/projects/jnov master $ vox deactivate jnov
usage: vox [-h] {new,create,activate,workon,enter,deactivate,exit,list,ls,remove,rm,delete,del,help} ...
vox: error: unrecognized arguments: jnov
(jnov) fermigier@mbp-stefane-abilian ~/projects/jnov master $ vox deactivate
Deactivated "jnov".
```
2020-03-23 12:07:20 +01:00
Jamie Bliss
66d133952d
autovox: Fix algorithm to cd correctly
2020-02-03 13:25:06 -05:00
Anthony Scopatz
af2c094515
black
2019-10-05 20:51:30 -04:00
Anthony Scopatz
dc8728bdaf
Added THREAD_SUBPROCS env var
2019-10-05 16:37:45 -04:00
Sean Farley
22a078377d
jedi: refactor completions
...
This fixes jedi completions backtrace in the scenario where
CASE_SENSITIVE_COMPLETIONS is set.
2019-10-02 15:01:05 -05:00
Anthony Scopatz
556db6d124
jedi error fix
2019-10-01 20:59:47 -04:00
Gil Forsyth
9acc111d65
Merge pull request #3277 from astronouth7303/xontrib-autovox
...
Add autovox xontrib
2019-09-09 16:32:55 -04:00
Jamie Bliss
82fbac63e3
Bug in autovox
2019-08-28 14:50:19 -04:00
Jamie Bliss
d4ba3b5789
Remove print()
2019-08-28 14:34:20 -04:00
Jamie Bliss
c7e5b7b0f9
Add autovox xontrib to support automatic vox
2019-08-18 21:09:57 -04:00
Caleb Hattingh
b4b5d262c7
Add the new path parameter to the documentation.
2019-08-15 23:23:26 +10:00
Caleb Hattingh
220923f084
Include path as a kwarg on activate and deactivate events
2019-08-14 17:50:06 +10:00
Caleb Hattingh
16edba8fe8
Apply abspath() to the env_dir, and add a test to verify.
2019-08-04 12:20:04 +10:00
Caleb Hattingh
2c4b64ad16
vox activate - use absolute path in $PATH
2019-08-03 12:11:22 +10:00
con-f-use
9f38269c24
Remove yet another unused import in bashisms
...
Co-Authored-By: Gil Forsyth <gforsyth@users.noreply.github.com>
2019-06-12 19:43:45 +02:00
con-f-use
2bc262e616
Remove more unused imports in bashisms
2019-06-12 19:25:47 +02:00
con-f-use
17143fc853
Remove unsed import and variable in bashisms
2019-06-12 19:19:44 +02:00
con-f-use
5b8b766139
Remove hard coded Alt+. binding
...
Is part of prompt toolkit now
2019-06-12 19:06:18 +02:00
Eddie Peters
46cc6f1541
Preserve newline during bashisms transformation.
2019-05-22 09:03:08 -04:00
David Strobach
691261d062
black
2019-05-17 15:20:29 +02:00
David Strobach
0cdc4e8417
Fix bashisms xontrib startup on PTK1
...
PTK1 Condition expects ona positional argument.
2019-05-16 13:15:06 +02:00