Menu

#461 Switch to the next file in the stack when the ctrl-tab/ctrl-, button is pressed

Undefined
open
UI (54) ui (4)
Bug_Report
2019-03-21
2016-12-28
AntonioCS
No

Hey,

This is ticket is in relation to this post: http://forums.codeblocks.org/index.php?topic=21620.new;topicseen

The behavior of the ctrl+tab button does not work the way it does like in other IDEs (netbeans, visual studio code, eclipse etc..).

Would it be possible to make ctrl+tab go to the last viewed file (in the list of opened files) and not just show the dialod of opened files.

Thanks!

Discussion

  • Teodor Petrov

    Teodor Petrov - 2016-12-28
    • labels: --> UI, ui
    • Type: Undefined --> Bug_Report
     
  • Teodor Petrov

    Teodor Petrov - 2016-12-28
    • summary: Create common behavior for ctrl+tab buttons --> Switch to the next file in the stack when the ctrl-tab/ctrl-, button is pressed
     
  • Jakob Schulze

    Jakob Schulze - 2019-03-14

    I am considering using code::blocks for a bigger project, but this misbehaviour really slows down a potential workflow so I am already considering alternatives.

    So for me this ticket here is quite important. Is there any update or a somewhat responsible programmer? (I know, it is open source and programming resources are sparce)
    Sorry for bugging you.

     
  • bluehazzard

    bluehazzard - 2019-03-18

    You can switch to stack based ctrl+tab behaviour in Settings->Environment->Notebook apperance->Use stack based tab-switching

    A shotr ctrl+tab will switch between the last two used files.
    One shot ctrl+tab without lifting the ctrl key will show you a dialog with all open files where you can use the mouse or the tab key to switch between all open editors.
    This is on windows. On linux i do not know...

    Is there other behaviour you would like to have? Please describe the exact behaviour...

     

    Last edit: bluehazzard 2019-03-18
  • bluehazzard

    bluehazzard - 2019-03-18
    • assigned_to: bluehazzard
     
  • Jakob Schulze

    Jakob Schulze - 2019-03-18

    Thank you very much bluehazzard!
    With this option set the behaviour is exactly what I wanted.

    Does this actually close this ticket? The asker specified a behaviour where the mentioned dialog does not show at all. However, since it flashes very shortly and IMHO does not hinder the workflow I would consider the ticket closed.

    I mentioned a duplicate assignment in the wiki. Is it necessary/useful to change something there?

     
  • bluehazzard

    bluehazzard - 2019-03-18

    Does this actually close this ticket? The asker specified a behaviour where the mentioned dialog does not show at all. However, since it flashes very shortly and IMHO does not hinder the workflow I would consider the ticket closed.

    Can you reproduce this flashing? Is this flashing because of the short pressing of the ctrl+tab keys? I think it is rather complicated to introduce a delay there, so i would let it as it is... (i can try to fix it, but i do not think it is worth the added complexity...)

     
  • bluehazzard

    bluehazzard - 2019-03-18

    Note to myself: A possible solution would be to activate a timer in the dialog::show or dialog::modal and check after some time (500ms?) if the key is still pressed and show itself only if it is. If the user has released the key the dialog should return immediately (timer running in the void?) but without flashing because the timer is still running. Big question: does the dialog get the key release event to return if he is not shown?

     
  • Jakob Schulze

    Jakob Schulze - 2019-03-18

    Can you reproduce this flashing? Is this flashing because of the short pressing of the ctrl+tab keys?

    yes and yes.
    I would keep it as it is too, I think the current bevahiour is even better than the alternative. The short view of the (ctrl+tab) dialog is intuitive, since it suggests the possibility of holding down the key longer and interacting with the dialog.

     

    Last edit: Jakob Schulze 2019-03-18
  • bluehazzard

    bluehazzard - 2019-03-18

    Some other tip for all who are reading this in using big projects the key combination Alt+G is very useful to browse between files really quick

     
  • Jakob Schulze

    Jakob Schulze - 2019-03-18

    You can switch to stack based ctrl+tab behaviour in Settings->Environment->Notebook apperance->Use stack based tab-switching

    Should this be default behaviour? I mean just have the option ticket when doing a fresh install.

     
    • bluehazzard

      bluehazzard - 2019-03-21

      If no other dev is against it i will change the default value, because i too think this should be the default..

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.