Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Move tabs in list order (not MRU) using Cmd-Shift-[ or ] #6273

Open
danielfttorres opened this issue Dec 19, 2013 · 13 comments
Open

Move tabs in list order (not MRU) using Cmd-Shift-[ or ] #6273

danielfttorres opened this issue Dec 19, 2013 · 13 comments
Assignees

Comments

@danielfttorres
Copy link

This is very useful. Other applications containing tabs such Sublime Text, Chrome etc use this trick, it helps a lot. I think it is essential.

Is there any idea how to implement? Or there is already an extension that does this?

@TomMalbran
Copy link
Contributor

Should be easy to implement using the functions currently used for sorting with drag and drop sorting.

@njx
Copy link

njx commented Dec 20, 2013

@danielfeelfine - do you mean switching between open documents? If so, we currently already have Ctrl-Tab/Shift-Ctrl-Tab mapped to that functionality. We could consider adding this as an alternate shortcut if it's common though.

(Interestingly, it looks like Mac Chrome has yet a third shortcut for this--Cmd-Alt-right/left arrow. I'm guessing that historically this has been mapped to a lot of different shortcuts in different popular apps, and Chrome just decided to support all of them...)

Low pri to @larz0 to consider.

@ghost ghost assigned larz0 Dec 20, 2013
@TomMalbran
Copy link
Contributor

I thought he was suggesting for a way to sort the tabs using the keyboard?

@danielfttorres
Copy link
Author

@njx Yes this shortcut is supported by google chrome what I mean. This is very useful, using cmd + alt + (left or right) or cmd + shift + {or}

@larz0
Copy link
Member

larz0 commented Dec 21, 2013

IE, Safari, Chrome and Firefox all have ctrl+tab / ctrl+shift+tab, which are the same shortcuts Brackets uses but Brackets also has cmd+shift [ / ].

In addition to those shortcuts Chrome and Firefox also have cmd+opt left arrow / right arrow.

Personally I prefer cmd+opt left / right arrow because it feels better for some reason. Maybe we can replace cmd+shift [ / ] with cmd+opt left / right arrow?

@TomMalbran
Copy link
Contributor

We could also add more shortcuts to the command... that is pretty easy to do.

@larz0
Copy link
Member

larz0 commented Dec 21, 2013

Brackets is so versatile :)

@TomMalbran
Copy link
Contributor

Hehe... it is :)

@danielfttorres
Copy link
Author

Now is working for me, but is instead the right goes to left and left to go right.

@larz0
Copy link
Member

larz0 commented Jan 2, 2014

Let's add cmd+alt left/right 👍

@ghost ghost assigned peterflynn Jan 6, 2014
@njx
Copy link

njx commented Jan 6, 2014

Reviewed. It looks like we do have Cmd-Shift-[ / ] in Brackets now, but it doesn't do what it does in other apps: it follows the MRU order like Ctrl-Tab, but it should just move in working set order regardless of MRU. It seems like Cmd-Alt-left/right should do the same.

So, we should do two things: (1) map Cmd-Shift-[ / ] to a new command that moves in working set order rather than MRU, and (2) add Cmd-Alt-left/right arrow to map to that same (new) command. Also, it seems like we should only do these on the Mac, since it doesn't seem like they are standard on Windows.

To @peterflynn since he has an extension that implements this behavior already.

@peterflynn peterflynn changed the title Move tabs using the keyboard ⌘ + shift [ or ] Move tabs in list order (not MRU) using Cmd-Shift-[ or ] Mar 3, 2015
@mdziedzic
Copy link

I vote for Cmd-Shift-[ / ] mapping to list order in sidebar.

@shichongrui
Copy link

When using the File Navigation Shortcuts extension, and having split panes, Cmd-Shift-[ / ] will only go through your current panes files. And since there isn't a shortcut to switch pane focus I still have to either use my mouse or use Control-Tab to get to a file in the other pane. I would hope that what ever the solution for this issue is, it would not behave in this way. It would be nice if the shortcut would jump to the next file in the list across panes as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants
@njx @peterflynn @mdziedzic @TomMalbran @larz0 @danielfttorres @shichongrui and others