Ctrl + arrows don't jump words

Bug #1772943 reported by caraconan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sakura
Fix Released
Undecided
Unassigned

Bug Description

Hi there.

First of all many thanks for your great work, I've been using sakura for almost 10 years now.

From 2 weeks ago CTRL + right/left arrow is not jumping to next word.

Summary of my environment:

ii sakura 3.6.0-1 amd64 simple but powerful libvte-based terminal emulator

Debian GNU/Linux buster/sid \n \l

Using awesome as window manager (not sure if it's relevant).

Thanks.

Revision history for this message
David Gómez (dabisu) wrote :

Thanks for the report, I'm glad you like sakura ;). I'll look into the bug asap.

Changed in sakura:
status: New → Confirmed
Revision history for this message
David Gómez (dabisu) wrote :

I've been testing last sakura version and CTRL+left/right work as expected: it moves to the previous/next tab (I guess you meant 'tab' when you wrote 'word' in your bug report). I'll close this bug, but in case you meant something different please add more info in the comment section.

Changed in sakura:
status: Confirmed → Incomplete
Revision history for this message
caraconan (0-javi) wrote :

I'm still facing this issue:

1. Open a terminal (Sakura is the default one)

2. Type "sakura" and press enter. A new terminal is open

3. Type "foo bar"

4. Press CTRL + left arrow

Expected behaviour:

Cursor should jump to start of "bar" word, then to start of "foo" word

Found behaviour:

The cursor wont move

If I repeat steps 1 to 4, but opening a "xterm" it works as expected.

Thanks.

Revision history for this message
David Gómez (dabisu) wrote :

I see, you want to use bash ctrl+left/right to move between words. One possible solution is to change the default accelerator for switching tabs. Edit the config file (~/.config/sakura/sakura.conf) and change switch_tab_accelerator to the value you prefer. For example, 9 for Alt+Shift

Revision history for this message
caraconan (0-javi) wrote :

Fixed.

Since "switch_tab_accelerator" was not in my "~/.config/sakura/sakura.conf" I guess this was the root cause of the issue.

Thanks again, this bug can be closed now.

Revision history for this message
Albert Mikaelyan (tahvok) wrote :

I confirm - changing the accelerator in switch_tab_accelerator fixes the problem. However, this config is being generated by sakura for new users. Perhaps the shortcut for tab switching should be changed?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Sakura because there has been no activity for 60 days.]

Changed in sakura:
status: Incomplete → Expired
Revision history for this message
JeansenVaars (saif1988) wrote :

Hi, I know this issue is extremely old. But the default keymapping is very inconvenient. Moving across words with ctrl+right/left is very common, and in here it is replaced by swiching tabs!

I'd vote for the tab accelerator to become 9 as default!

Revision history for this message
David Gómez (dabisu) wrote :

The problem with keyboard defaults in a terminal emulator is that they cannot make everyone happy. This has happened several times: some keyboard defaults clashes with bash, tmux or other application. I change the default, and then clashed with a different application :-/ Anyway, I'll reconsider again this default.

Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

Why not use Ctrl+PageUp/PageDown to switch bewteen tabs, like in VTE-based terminal emulators (such as Xfce Terminal), and in Firefox, and in the Geany editor? Or, if you don't like Ctrl+PageUp/PageDown (because tabs are not vertically arranged but horizontally), why not use Alt+Left/Right, like on the Linux consoles? But whatever you choose, Shift or Ctrl or Shift+Ctrl plus Left/Right are not good choices, because they are normally used to 1) select text, 2) jump words, 3) select words.

By the way, by editing sakura.conf I succeeded in making Alt+Left/Right switch between tabs, but I couldn't get Ctrl+PageUp/PageDown to work: the keystrokes just started entering strings like "1;3" into the terminal. :| What do I need to write into the config file to bind Ctrl+PageUp/PageDown to the tab-switching function?

Revision history for this message
David Gómez (dabisu) wrote :

I've changed the default to Alt+Left/Right.

About the PageUp and PageDown to make it work you have to make sure that the key names in the config file are "Page_Up" and "Page_Down" (case sensitive).

Changed in sakura:
status: Expired → Fix Committed
summary: - CTRL + arrows wont work
+ Ctrl + arrows don't jump words
David Gómez (dabisu)
Changed in sakura:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.