I would like to be able to have a keyboard shortcut to do a certain thing, like CTRL+O, or something else...
xlib or pyGTK will work well.
The gtk.AccelGroup class (PyGTK) might be a good place to start. There are some examples in Virtaal's source (1 2 3 and more around the source).
Related
I just installed a helpful statusbar commands extensions and it gets you to make a list of commands you want to have buttons for.
But when I got around to adding the command for fold all, I couldn't figure out what its parent was,
turns out it's editor
is there a list of all available commands with their hierarchies?
I see it is in Keyboard Shortcuts
That's fine, a little unintuitive but oh well!
ty ty
I'm using TextExpander 5. Is it possible to use a keyboard instead of a mouse then working with a popup window with importing choices? Like, if I don't want to include a section I'd rather use my keyboard to uncheck a checkbox then reaching out for a mouse.
Thanks.
Actually completed such task by using Mac OS X built-in ability to TAB focusing on non-inputable UI elements.
You can change it at System Preferences > Keyboard > Shortcuts.
At a bottom of a window you will found «Full Keyboard Access». This guy will help you to do that I was hoping to get (and finally got).
If you are interested in following my adventures on this, go here https://forum.keyboardmaestro.com/t/is-there-a-way-to-count-how-many-times-a-key-was-pressed-since-boot/6618/15
tldr version of the link above;
Found somewhat "almost-there" solution. I can check current status of this option by typing in terminal:
defaults read -g AppleKeyboardUIMode
It will return 0 (off) or 2 (on) dependent of current setting.
Right now, I'm using Keyboard Maestro Macro for doing this.
There are lots of useful functions of Intellij IDEA and for many of them there are keyboard shortcuts.
But remembering shortcuts may be difficult, at least for me.
Are there some consistent guiding principles by which these shortcuts were selected by designers? I believe learning such principles would be helpful to memorize shortcuts itself.
I think that the closest answer you're going to get is "it depends". Some shortcuts are obviously chosen, because the keybinding describes what the shortcut does, for example ⌘+O means open, not only in IntelliJ but in many places throughout OS X.
Some shortcuts probably don't have any kind of such semantic meaning, such as Alt+Enter and are chosen because they are very frequently used and the placement of the keys relative to each other is comfortable.
Other keyboard shortcuts with similar purpose have the same starting sequence of keys. For instance the extract refactoring shortcuts, which are as follows:
⌘+Alt+M - extract method
⌘+Alt+C - extract constant
⌘+Alt+V - extract variable
⌘+Alt+F - extract field
⌘+Alt+P - extract parameter
So in such case you only need to remember that if you want to extract something, you press ⌘+Alt and the first letter of what you want to extract.
That being said, I don't believe that the way to learning the keybindings is memorizing them, but using them. If you use one keybinding multiple times, over the time you will memorize it. You can help this process for instance by locating the action you want to perform in the menu, but instead of clicking it look at the keyboard shortcut next to it and press it. Or find the action using ⌘+Shift+A, look at the shortcut and use it.
There are even plugins, which can help you with this, for instance Key Promoter which you can install via Settings/Plugins/Browse Repositories. This plugin shows you shortcut you can use when you invoke some actions by clicking it in menu, etc. It also shows you how many times you've used this action in such a way instead of using the corresponding shortcut.
In Eclipse I could hit Ctrl+O and get a popup which I could use to get an overview of everything in the current class, pick an entry, and jump to it.
In idea, there is Alt+7, but I have a few issues with it. First, the keyboard doesn't seem to put its focus there. I have to take my hand off the keyboard and use the mouse to place the focus on the Structure dock.
I also don't like how it's taking up real estate. I don't want to change how things are laid out if I want to see the structure. I would like a more non-invasive popup, and handier and snappier.
Is there another feature that gives me quick access in the form of a popup preferably, like Ctrl+O provides in Eclipse?
Another nice feature would be to be able to use the J and K keys to move up and down the selection, instead of having to use the cursor keys. I'm using IdeaVim, so the normal workflow when editing files, is that both hands stay in a touch-type position. It would be nice if I can use the various navigation features also using vim keys...
Perhaps there is a way to enable this, that I haven't discovered yet?
IntelliJ equivalent of Eclipse's CTRL+O is CTRL+F12 (⌘+F12 on Mac), which will give you more or less the same pop-up as in Eclipse. But I'm not sure if it can be navigated using j and k keys.
More details can be found in the IntelliJ help.
Is there any way to make custom commands without using a macro? I would like to do things like:
jump down 20 lines
jump up 20 lines
editor window scrolls when cursor moves within 15 lines of the bottom/top
jump by paragraph (meaning: jump to next empty line, or method signature start, whichever comes first)
And of course those numbers would be editable.
I've tried macros, but they're too slow. Basically I want IntelliJ to behave just a bit more like emacs. I'm hoping I don't have to make a plugin, but I will if that's the only option. Just hoping there is a way to do it that I missed.
There is no way to do what you are asking. However, there is a IdeaVIM plugin which lets you do some of the stuff you ask for (install via Preferences->Plugins). There is also an emacs plugin which may give you what you want: http://devnet.jetbrains.com/thread/441261
The IdeaVIM plugin is maintained by Jetbrains so it may be higher quality.