iTerm2 swap panes keyboard shortcut - keyboard-shortcuts

The option for swapping between panes is only available through the menu button but I can't see any action to bind to this action. Is there and in built command that allows to swap panes?

If you mean switching focus between panes:
⌘ + ⌥ + ← and ⌘ + ⌥ + →
or
⌘ + [ and ⌘ + ]
If you mean swapping the positions of the panes, it can only be done from the right-click menu:
Right-click pane to swap from, it turns red
Click on pane to swap to
There is no keyboard shortcut for this according to gitlab issue

Correction for the second part of the selected answer:
If you mean swapping the positions of the panes, it can only be done from the
right-click menu:
Right-click pane to swap from, it turns red
Click on pane to swap to
There is no keyboard shortcut for this according to gitlab issue
You can set it on your own.
Go to iTerm2->Prefrences->Keys.
On the bottom you will find a plus sign - press it to add a keyboard shortcut.
You can choose from a variety of actions - including "swap position with split screen".

Related

keyboard shortcut to jump to cursor

What is the keyboard shortcut to jump the editor view back to where my cursor was last placed?
For example I often scroll to the top or bottom of the editor view other parts of the code, and I would like to be able to quickly jump back to the last section I was viewing.
Scroll to Center looks like what you need.
Ctrl+M on Windows, not set by default on Mac, but can be customized in the Keymap.
If you are not in the editor, you will need to hit Esc first to focus it.
There is also Navigate | Last Edit Location, but will navigate you to the last place you've edited, not just viewed.

Switch between panes in Pharo v3

While at the System Browser I can switch between panes and buttons using alt+tab and arrows, but once I'm at the "method editing" pane I can't go out of it using keyboard shortcuts. Is there a way to do so?
This is a well-known issue. KeyMapping is being overhauled. You can add your own for the moment.
Take a look at the class side of AbstractNautilusUI
you can switch the focus to the other panels:
cmd+g+c focus class list
cmd+g+p focus package list
cmd+g+m focus method list
cmd+g+t focus protocol list
cmd+g+s focus source code panel
in the window menu (little arrow icon on the title pane) is a menu entry
for the shortcuts description

How do I move the toolbar in IntelliJ?

How can I move the toolbar in IntelliJ from the Top Right corner to the Top Left?
click on Main Menu | View | Toolbar
I'm writing this answer because I wanted the opposite. One day IntelliJ suddenly started aligning the buttons to the left.
There are at least two toolbars in IntelliJ:
The Toolbar which is aligned to the left,
and the Navigation bar which is aligned to the right.
The buttons of both toolbars can be customized independently.
Therefore, in order to show the toolbar one side or the other, press CTRL + SHIFT + A and then type either View Toolbar or View Navigation bar.
Previous answers didn't work for me because in mac CTRL + SHIFT + A does nothing and View -> Toolbar doesn't exist, actually it's View -> Appearance -> Toolbar.
In mac, for Android Studio 4.2 (it changed the toolbars/navigation when updating) you can right click the Navigation bar (the one that shows the current file location at the top left) and hide it, untick "Show Navigation bar".
Then, toggle the Toolbar, View -> Appearance -> Toolbar on and off, this will show the icons to the left, as in my previous instance of Android Studio.
Now you can re-enable the Navigation bar and it will show below the Toolbar.

Docked view of breakpoints in IntelliJ IDEA

I am trying to get a permanent view of breakpoints (or at least lasting until I remove it) docked next to the Debugger panel. E.g. I would like it to take place of Watches, since I do not use watches much. Currently, viewing breakpoints is done by clicking the small double circle icon in the Debugger but that pops a new large window that occupies most of the screen. I would like a small and permanent view of breakpoints (just like the one in Eclipse).
If you open up the Favorites tool window (Alt+2) you will see the breakpoints.
You cannot put this window inside the Debug tool window but you can have it docked above or beneath (or anywhere you want).
Like this:
Or like this:
The last image shows the Debug window docked with the Split Mode Off while the Favorites window has Split Mode On
CTRL + SHIFT + F8 works for me
IDEA 2017.1.3 allows breakpoints to be edited (e.g enabled/disabled) from the Favourites window (right click, Edit breakpoint).

How to toggle between .h and .m in Xcode 4

Just installed Xcode 4 so far so good, except that Apple changed all the keyboard shortcuts! Anyone know how to toggle between .h and .m?
Apple changed all sorts of shortcuts, but to switch between header and implementation, the new shortcut is,
⌃ + ⌘ + ↑/↓
You can change it back to the previous ⌥ + ⌘ + ↑/↓ in Preferences > Key Bindings.
Look for the Jump to Next Counterpart and Jump to Previous Counterpart commands.
If you are working on a big screen, you could use the Assistant layout's split view, and have the .h and .m files side by side.
Hither be the Grand Unified Gigantic Sheet of Xcode 4 Keybindings.
Download it.
Preview it.
Print it.
Read it.
Know it.
Use it.
Be it.
You can also use the 3 finger swipe up or down gesture on a trackpad.
The commands we're looking for are in the Navigate menu bar item.
Jump to Next Counterpart
and
Jump to Previous Counterpart
Once you have the menu item names, these can be assigned to any keyboard shortcut.