-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Keyboard shortcut for switching focus between panes #9316
Comments
Comment by RaymondLim
Update: actually, the key bindings above only allow you to switch between different split views, but not to set focus from one view to the other. So we still don't have any command to switch focus between split views. |
Comment by peterflynn
It should also be pretty easy for someone to write an extension that specifically jumps focus to a given pane (or toggles focus between the two panes -- unlike Ctrl-Tab regardless of whether the other pane's document was recently focused before or not). I'll mark this 'extension idea' in case anyone wants to implement that. |
Comment by JeffryBooher
The code below should do it but I haven't tested it. You'll need to wire that up to a keyboard command. For that refer to the function switchPanes() {
if (MainViewManager.getPaneCount() > 1) {
var activePane = MainViewManager.getActivePaneId(),
paneIds = MainViewManager.getPaneIdList(),
index = paneIds.indexOf(activePane) + 1;
if (index >= paneIds.length) {
index = 0;
}
MainViewManager.setActivePaneId(paneIds[index]);
}
} |
Comment by TessaI159 Thank you guys so much, I'll get around to seeing if any of these suggestions work just as soon as I can. |
Comment by noragrossman Has anyone done any more work on this? I am a new developer and I thought I'd give this a try, but I don't want to duplicate efforts if an extension is already in progress. |
Comment by TessaI159 I haven't done anything with it, and I doubt anybody else has either. Go ahead and give it a shot. |
Comment by alexeyoganezov I've wrote extremly simple extension for toggling panes: You can install it through extension manager. |
Comment by petetnt I'd love to see this feature in the core too. Tagging as starter bug. |
Comment by arthur801031 Hi |
Comment by petetnt
See the article How to hack on Brackets to get started with the Brackets codebase. If you have any questions, feel free to post them here! We also have a Slack channel for day-to-day communication. (You can join by sending a mail to admin@brackets.io with the subject line |
Comment by arthur801031 Hi |
Comment by ronherrema It's not clear to me how or where this has been incorporated. Is there now a default shortcut for switching panes? |
Comment by TessaI159 Yeah, Brackets updated it so that it is included in the core package now. I believe the shortcut key is Alt + W |
Comment by ronherrema I'm on Mac. There are shortcuts for moving from one document to another in the document list, but I don't see anything for switching between the two open panes. |
Comment by petetnt
If it still doesn't work, check the developer tools (Debug -> Show Developer Tools -> Console) if there are any warnings of duplicate keyboard shortcuts. It might also be that another program is blocking the command, in which case you can update the keymap.json to change the shortcut. |
Issue by TessaI159
Monday Feb 09, 2015 at 04:49 GMT
Originally opened as adobe/brackets#10555
I'm not sure if somebody else has already submitted this or not, the trello board won't load for me, and I'm not even sure if this the right place to do this but it can't hurt.
I would love to see a keyboard shortcut that would allow me to switch which view is active. I love the vertical split idea so I can see two documents at once, but it seems inconvenient that I need my mouse to switch focus between them.
The text was updated successfully, but these errors were encountered: