Genio icon indicating copy to clipboard operation
Genio copied to clipboard

Add key-combos to switch files

Open humdingerb opened this issue 1 year ago • 1 comments

The previous/next file arrow icons and the close icon at the right of the toolbar aren't that useful.

Their functions can be reached more easily/intuitively: click or mouse wheel over the tabs, click their close button or ALT+W. It would be more useful to offer a key-combo to switch through the open files, e.g. CTRL+CursorLeft/Right. That way you could quickly move through the open files without having to reach for the mouse.

For discoverability, it could be added to the "View" menu: "Go to previous file - CTRL+CursorLeft" "Go to next file - CTRL+CursorRight"

humdingerb avatar Dec 14 '23 10:12 humdingerb

Too late for 2.0, we'll consider this for the next release

jackburton79 avatar Dec 14 '23 11:12 jackburton79

Aren't those shortcuts used by textcontrols nowadays?

jackburton79 avatar May 23 '24 12:05 jackburton79

Word-wise jumping in textcontrols is done with ALT+cursor (= B_COMMAND_KEY). That one is used in Genio's editor view as well. CTRL+cursor currently inserts some control character in the editor view. If instead we'd switch tabs, we'll have a winner.

humdingerb avatar May 23 '24 14:05 humdingerb

Now that I see, there is already a shortcut to switch between tabs: option key + left / right arrow. Does it make sense to switch to CTRL ? @Freaxed @nexus6-haiku what do you think ?

jackburton79 avatar May 23 '24 14:05 jackburton79

I wasn't aware of OPT+cursor switching tabs already. Unfortunately, it collides with S&T's OPT+left/right which switches tabs of stacked windows.

So, if you've stacked other windows to the Genio window, OPT+cursor doesn't work anymore to switch tabs within Genio.

humdingerb avatar May 23 '24 17:05 humdingerb

Ok, let's change then

jackburton79 avatar May 23 '24 17:05 jackburton79

Currently ALT+N is used to switch to the Nth tab (as in Webpositive). Would have been nicer to have some consistency: now you'd have ALT+N to switch to the Nth tab and CTRL+LEFT/RIGHT to switch between tabs. Too bad. I guess we'd have to rethink shortcuts system-wide in Haiku

jackburton79 avatar May 24 '24 06:05 jackburton79