disabling keybindings doesn't work when the escape sequence is changed from ctrl-a
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| byobu |
Low
|
Dustin Kirkland |
Bug Description
If you re-map your escape sequence to something other than control-a, the disable/enable keybinding doesn't work. I have mine as ctrl-x. Now if you try the ctrl-x-) to disable the keybindings, it fails. I made my own custom copy of "common" keybindings and change the string that syas "^a" to "^x" and now it works. Looks like this is a static assignment and not dynamic. Basically enable/disable are useless to those that use something other than ctrl-a as their escape sequence.
% byobu --version
Screen version 4.00.03jw4 (FAU) 2-May-06
Related branches
Changed in byobu: | |
assignee: | nobody → Dustin Kirkland (kirkland) |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Dustin Kirkland (kirkland) wrote : | #1 |
Shane D (dimensional) wrote : | #2 |
It seems to half work. I can disable the keybindings with ctrl-x-! however when I try to re-enable the keybindings with ctrl-x-!, I get the same error as before:
swdixon(16387)% :source /usr/share/
zsh: command not found: :source
zsh: exit 127 :source /usr/share/
I change the escape key to ctrl-a and I can both enable and disable successfully. Change back to ctrl-x and it half works
Dustin Kirkland (kirkland) wrote : Re: [Bug 389129] Re: disabling keybindings doesn't work when the escape sequence is changed from ctrl-a | #3 |
I think you have a garbled ~/.byobu/
was created before support for this feature really evolved. Can you
move that file out of the way, restart byobu, and see if it works?
If you still see the problem, could you attach that file to this bug report?
:-Dustin
Shane D (dimensional) wrote : | #4 |
I did an rm -rf .byobu, then aptitude purged byobu, then installed again and the same thing happens. I thought maybe something in my shell was mucking up the keybindings, so I tried csh and bash and they both do the same as zsh. Here is my keybindings file:
% cat keybindings
source /usr/share/
escape ^Xx
register r "^x:source $HOME/.
register t "^xA^aa^k^h" # | Goes with the F8 definition
register d "^x:source /usr/share/
register r "^x:source $HOME/.
register e "^x:source /usr/share/
I've tried in gnome-terminal, konsole, and the system console and they all act the same so I know it's no application interfering with the ctrl-x after keys are disabled. If I manually type in ctrl-x :source /usr/share/
Shane D (dimensional) wrote : | #5 |
If I manually go into the /usr/share/
register e "^a:source /usr/share/
to
register e "^x:source /usr/share/
then everything works. It's almost like it doesn't ever get the definition of "register e" in my .byobu/keybindings file. It's like it's just ignored.
mp3foley (mp3foley) wrote : | #6 |
Still seeing this problem under Ubuntu Lucid 10.04
$ byobu -v
byobu version 2.68
Screen version 4.00.03jw4 (FAU) 2-May-06
Same behavior as reported by Shane Dixon. Changing my escape key to something different half works. It will disable the F keys, but when trying to re-enable them I get ":source /usr/share/
This is with a fresh byobu config. I did "rm -r ~/.byobu" before testing for this bug report.
Dustin Kirkland (kirkland) wrote : | #7 |
Can you please test the version in the Byobu PPA?
sudo apt-add-repository ppa:byobu/ppa
And upgrade to the latest?
If it's fixed there, I can try to get a fix SRU'd to Lucid.
If not, then I can look into fixing it.
Thanks!
Shane D (dimensional) wrote : | #8 |
I just tested this with 2.80-ubuntu1~ppa4 and the key bindings will disable with ctrl-x-!, but then they won't re-enable. Here's the message:
% :source /usr/share/
zsh: command not found: :source
If I manually type control-x then ":" and the source line above, then it works. It looks like it's just the ctrl-x-! when f-keys are disabled.
--
Shane
Shane D (dimensional) wrote : | #9 |
It's also noteworthy that my hack from 2009-06-22 still seems to work to fix this temporarily, but one has to manually edit the file after changing the keybindings for it to work properly.
Dustin Kirkland (kirkland) wrote : | #10 |
All,
Please file a new bug about this one, and I'll get it fixed in HEAD, and an SRU out to Lucid. The current issues are symptoms of a different problem than the original bug.
Thanks,
Dustin
This should be working in the 2.12 release.
Note that I have switched from the ctrl-x-) and ctrl-x-( to a single toggle keysequence, ctrl-x-! which enables/disables the f-keys.
The other shortcuts are documented in /usr/share/ byobu/keybindin gs/screen- escape- keys for now, and in the manpage soon.
:-Dustin