-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1512 Update behaviour of rl_unix_word_rubout #1592
Conversation
Current coverage is 81.43%@@ master #1592 diff @@
==========================================
Files 106 106
Lines 15374 15386 +12
Methods 0 0
Messages 0 0
Branches 2463 2465 +2
==========================================
+ Hits 12524 12530 +6
- Misses 2382 2386 +4
- Partials 468 470 +2
|
Thanks! Could you please adjust I also wonder if this code could be simplified a bit by using |
Hi, I have just added a test for the new readline behaviour. Regarding simple_split, here is what I found out :
However, since we want to remove Here's what we could do :
Do you want me to add another parameter for that ? I find the simple_split method a bit complicated to understand if I add this. |
What do you think of my last comments ? |
Sorry for the silence, I was busy with the pytest sprint and then with my wisdom tooth being pulled... I still have some other stuff to do, but I'll try to get back to this today or tomorrow. |
Gah, still didn't get to this. I hope I can take care of it later today or tomorrow. |
I tried playing with some simpler solutions based on Thanks for the patience and the PR! |
No problem, i also don't think it was easy to achieve with str_split. Thanks anyway! |
Closes #1512
Now, unix_word_rubout behaves like in bash, eg it deletes the last word in the command line.
For example , if you type
:open -t https://github.com/The-Compiler/qutebrowser/
and your cursor is at the end of the line, hitting c-w will bring you to
:open -t
.If you liked the previous behaviour, you can use
Ctrl-Backspace
This change is