iTerm2 shortcut key to get the last word of the previous command - keyboard-shortcuts

In GNOME terminal ALT + . will give you the last word of the previous command. This functionality was really helpful but i have recently switched to iTerm2 and could not find how to achive this.
is there any shortcut key in iTerm2 to achive this functionality? if not, how to configure iTerm2 to do this?

The equivalent in iTerm2 is Esc + .

Related

IntelliJ IDEA Rebasing Commits window keyboard shortcuts

I very often do rebasing from IntelliJ IDEA as it is more convenient than command line.
There's one issue though. In the following window:
I have no idea how can I choose Action using just keyboard. Is this possible?
IDEA's documentation does not mention any shortcuts at all, but e.g. CTRL + D or ALT + UP/DOWN work for me there.
Issue is still opened on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-153448

Unmapping keys in IdeaVim

I tried to map Numpad 1 to a key combination in PHPStorm Idea VIM using the following command:
:map k1 keycombination
Now actually k+1 is mapped to the key combination. When navigating using the K key, the system waits for extra input after the K, which is very annoying.
I tried to unmap the combination, but the command ":unmap k1" doesn't work. When I check the keybindings using the :map command, the k1 mapping is still there.
I couldn't find any documentation regarding this. Does anybody know how to unmap keys in Idea VIM?
You can use this, I've just figured it out today:
:map k k
There should be definitely an unmap command in ideavim anyway!
I found the issue: By restarting PHPStorm, the mappings where removed.
Before the IDE crashed and I had to close it using the killall command, that's why the keymappings set using the :map command weren't reset.
A workaround:
map k :action VimCancelExEntry<cr>
Seems like VimCancelExEntry hasn't any side affect (in normal mode at least).
I did the same thing by accidentally pressing :map h. I closed WebStorm and reopened it and it went away.

IdeaVIM Keybindings not working in intellij

I just upgraded IdeaVIM to use the newly added support for window management. The problem I'm having is that the keybindings aren't working at all. I've tried editing the keymap manually, adding back the default bindings, but they're not in effect.
When I hit C-w I get some help in the modeline letting me know which keybindings are available at that prefix (l for window right, h for window left etc) but when I hit the second key nothing happens!What's going on here? I'm running ideavim 13.1.3.
NOT exactly the same problem but for me
Vimidea / Vim plugin was not working on Pycharm / Rubymine / Intellij
Finally found the solution!!!
(ON MAC)
Just make sure that you don't have a conflict with the Keymap to refactor->extract->variable and vim emulator!
Go to settings->Keymap->MainMenu->Refactor->Extract->Variable
And remove the shortcut
Now run the shortcut to make the VimEmulator to run, in Mac just hit:
Cmd+option+V (option is the key next to command)
If its still doesn't work it means that you cannot exit insert mode - make sure to bind the escape key to:
settings->Keymap->Plug-ins->ideavim->Exit Insert Mode == escape
Actually using the shortcut to start/stop VimEmulator is a great idea when you ask your team-mate help with your code and he/she is not used to working with Vim.
Just hit cmd+option+V and you are back to using the idea without Vim and again to start working with Vim again :)
You can enable/disble it through: shift-cmd-A, then type ideavim and you'll see a switch on there

keyboard shortcut to switch between project frames in Intellij IDEA

Is there a keyboard shortcut to switch between project frames in intellij?
I have two projects open and the only way I've found to select the non-active project is to drag the top window/frame out of the way and then click on it.
On osx, I use the standard keystroke (both Command+~ or Command+` seem to work) for switching windows within an application.
On windows, I use alt+tab.
Annoyingly, you can use "Cmd + `" to switch through your windows but it doesn't loop back to the first window when you reach the end. You have to use "Shift + Cmd + `" to go in the reverse direction.
for Mac OS X, try:
option + command + [
option + command + ]
If you have multiple projects just switching between them may be too tedious.
In such case it's better to open Window menu using ALT+W and choose project from list.
To make quick search working for project names you need to open Window menu as popup. To do it just assign keyboard shortcut for it:
I chose CTRL+ALT+W as my shortcut to open the following window with project quick search:
for Windows, try:
Crtl + Alt + [
Ctrl + Alt + ]
I've stumbled upon an intellij-native popup for switching projects. To find it and set a key mapping:
cmd+shift+a (if macosx; shift+shift might work cross-platform) for the find-command popup menu
type/search for the "open project windows" command
option+enter (or equiv) to assign a key mapping
This Project Windows popup lets you type to filter and select by project name.
Go to Intellij Preferences.
Under Keymap find Activate Next Window.
Right click on it and choose Add Keyboard Shortcut.
Press cmd + ` and click OK.
Click OK to close Preference window.
Map key to Activate Next Window
2013 answer for people who want an "up to date" answer:
If you maximize (full screen) all your project windows and keep them grouped together in "mission control" then I find the three finger swipe works really well to move between projects.
Ctrl + Shift + [
Ctrl + Shift + ]
Does it for me. On both Intellij IDEA and PyCharm.
On Windows the following should work:
Ctrl + tab
There is no such shortcut by default, but it should be possible to implement this feature as a plug-in.
In ubuntu 18.10, you can use the below key combination for toggling betwee two open instances -
alt + `
In ubuntu, switching between multiple windows inside an IntelliJ,
use alt + ~
If you're a MacOS user, as well as the Command+` and Command+Shift+` keyboard shortcuts which IntelliJ offers to toggle between IntelliJ windows, the OS-level Control+↓ keyboard shortcut is an excellent way to see and navigate between windows of the current app. The screenshot below shows the view which it offers. If you turn on App Exposé in your Trackpad preferences, you can also get to this view by swiping down with three fingers.
For Mac,
Command + Shift + [ or ]
works in full screen mode.
fast forward to 2022 and you get...
I'm working on a Mac OS X. Right click on IntelliJ dock icon shows all your open projects.
I was struggling with the same issue. This is how I dealt with it.
If you have set up your mac for expose ( by default F10 for application windows), then you could use that keyboard shortcut. This is the quickest way I know and since I usually have around 5 project windows I use this fairly frequently.
On MAC CMD + ` will work.
Ensure that you haven't maximised windows.
Have been searching solution for macOS for long time and found this great plugin finally https://github.com/krasa/FrameSwitcher.
Switching intelliJ windows by searching project name including recent opened ones.
I am just put a new update her for MAC OS on version (20220.1.4)
it has new: command + option + stands for the next and command + option + shift + stands for back
I am using Mac Big Sur 11.2.3 plus IntelliJ 2019. to switch among windows, I use the following 3 keys.
⌥ ⌘ `
If you have opened multiple projects and want to switch between them, then you can use:
command `
that is, command and tilde (you can get it just above tab button).
This is for mac os.

How to change TextMate's ^H keybinding to delete instead of showing help?

I come from an Emacs background, and I'm used to typing ^H to delete the previous character. TextMate displays bundle help instead. I have not found a way to change this binding. Is there a way?
You can go to the bundle editor, ^ + Option + Cmd + B and go to the textile bundle, the command for "show documentation" has the ^H key equivalent, you can change it there. You can then make your own key binding command for ^H.