Maran23 / script-ide

Script-IDE is a plugin for Godot. It transforms the Script UI into an IDE like UI. Tabs are used for navigating between scripts. The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation.
MIT License
368 stars 16 forks source link

Navigate between tabs via keyboard shortcuts #49

Open alhafoudh opened 2 months ago

alhafoudh commented 2 months ago

Hi, is it possible to navigate between script editor tabs using keyboard?

Maran23 commented 1 month ago

Not as far as I know. But that is a good idea for an enhancement.

Something like: CTRL+ALT+LEFT_ARROW for the previous tab CTRL+ALT+RIGHT_ARROW for the next tab

Maran23 commented 1 month ago

So the somewhat default keybinds for tab switching is already used in Godot, but only for the Scenes. This is the same shortcut as in modern browsers for switching tabs. So this is unfortunately not bound to the TabContainer itself, which would make more sense, but only implemented for Scenes.

image

I'm not sure if we can consume this and use it instead for the Script Tabs, when focused.

liketoeatcheese commented 1 month ago

Something like: CTRL+ALT+LEFT_ARROW for the previous tab CTRL+ALT+RIGHT_ARROW for the next tab

Maybe some preference key binding which user can do?

nathancarter commented 3 weeks ago

This is a great feature request. And yes, it would be great if the keyboard shortcuts were not ones that are already used by something else, so that no functionality gets lost.