GLBasic forum

Feature request => IDE/Syntax => Topic started by: Falstaff on 2011-Dec-12

Title: keyboard shortcut for switching between open files
Post by: Falstaff on 2011-Dec-12
Something like ctrl-alt-left arrow and right arrow? I work with a lot of different files and it'd be great to be able to switch quickly with the keyboard. Hopefully it's pretty easy to add, and it would be awesome :)
Title: Re: keyboard shortcut for switching between open files
Post by: Nathan on 2011-Dec-12
The standard windows convention CTRL-Tab works in the GLB IDE and switches between open files.
Although for some reason, it doesn't always work for me.
Title: Re: keyboard shortcut for switching between open files
Post by: Crivens on 2011-Dec-12
Don't forget CTRL+SHIFT+TAB too to go backwards.

Cheers
Title: Re: keyboard shortcut for switching between open files
Post by: Slydog on 2011-Dec-12
Quote from: Nathan on 2011-Dec-12
Although for some reason, it doesn't always work for me.

I know!   :rant:
It only works on rare occasions for me, like when GLB first starts.
Also, the 'save all' (<shift>+<ctrl>+<s>) shortcut quits functioning at some point too!

It's as if the object receiving keyboard events looses focus or something.
And, just global commands quit working, because normal save (<ctrl>+<s>) still works!

[Edit] Found out how to recreate the '<ctrl>+<tab> not working' bug.
Open GLB with a project.  Everything works fine.
Click the 'Output' window, then back to your code, it stops working.
Title: Re: keyboard shortcut for switching between open files
Post by: mentalthink on 2011-Dec-13
Thanks I don´t know this shortcut...

Any possibility to open media folder whit a shot-cut?¿
Title: Re: keyboard shortcut for switching between open files
Post by: mentalthink on 2011-Dec-13
HI I think I found the little error whit the TAB-SHIFT shotcut, I try to make a new glbasic file, whit a new file into it... well don´t works, I thinke well can be the space in the path, not... I try to close the ide, and restart the project, and works...!!! I try only two times, but the behavior it´s the same, when you close GLBasic IDE and Restart, the short-cuts runs pretty fine...
Title: Re: keyboard shortcut for switching between open files
Post by: Falstaff on 2011-Dec-13
Oh right, I had forgotten I had tried ctrl-tab on day 1 and was annoyed by how it seems to switch between tabs at random. I would like something that goes from the tab I'm on to the next one to the right, or another to go to the tab to the left. I'm guessing ctrl-tab maybe goes in what order the files are opened or something, and I've probably re-arranged my tabs since then.. maybe this is more of a bug report for ctrl-tab then ;p
Title: Re: keyboard shortcut for switching between open files
Post by: Moru on 2011-Dec-13
I like it when the order is the last used order. If you click around on the tabs and then use ctrl+tab to switch around, it should go in the same order you just clicked the tabs. This way you can easily work on your last two or three files without having to alternate between pressing shift and not pressing shift.
Title: Re: keyboard shortcut for switching between open files
Post by: Kitty Hello on 2011-Dec-13
I tried to fix it. Sometimes the framework uses the ctrl+tab, sometimes my keyboard handler does not.
It's such a mess...
Title: Re: keyboard shortcut for switching between open files
Post by: Crivens on 2011-Dec-13
Is there any way to change the IDE to show a number against each open file then use ALT+number to switch to it? I'm sure I had a plugin for VB6 that did something similar...

Cheers