Can Sublime plugin handle keys pressing, and key up/down? - sublimetext2

Can Sublime Text plugins handle event of
key press (handle any key combination pressed, e.g. Ctrl+Alt+F1)
key up/down (handle pressing of keys, and then releasing of keys)
If yes, how can my plugin handle these?

Yes -- using key bindings, which can be assigned in yourplugin/Default (platform).sublime-keymap.
You can also assign/customize global User Bindings (e.g. keyboard or mouse shortcuts) by creating (or modifying the existing) Default.sublime-keymap file in your Packages/User/ directory.

Related

How to enable code completion in PhpStorm only with Tab key

How to enable code completion in PhpStorm only with Tab key, and other keys (e.g. Enter) should be disabled? Can't find this option in settings.
The problem is in the conflict between code completion and live templates. They both use the same shortcuts('tab' and 'enter'). I don't know why. How to separate them?
Completing code items can be configured via "Choose Lookup Item" actions in Settings\Preferences | Keymap:
Change or remove the assigned shortcut as #LazyOne suggested.
You can also change the key to expand live templates with:
So you can eventually configure this in any way you want.

sublime text which plugin is overriding key binding

I am trying to use a certain key binding ctrl+alt+j to find a matching pair using emmet.
when I access it from the menu it works perfectly but when I try to use the key binding I get the output of another plugin.
what's the best way to see what plugin has taken over this binding? how can I make emmet retake this binding.
Keymaps
Plugin for Sublime Text 2/3 editor that enables searching for keymaps by function as well as showing all enabled keymaps in a searchable color-coded list - Cheat Sheet.
what I ended up doing was to grep the packages folder
Preferences --> Browse Packages for files with the extension
*.sublime-keymap
that contain the key binding I was looking for.
In my case in was JSHint :)

Disable configuration key by default in AX 2012

I need to keep some custom created configuration keys to be disabled (unchecked) by default. However, its behaviour can be changed by user after that.
By default, it shows those conf keys checked or enabled. I want them to be disabled by default. Please let me know how to do so
you can uncheck the custom key and then do database sync

Cannot type the € symbol in PhpStorm

I can type the euro symbol (€) in any other application with the standard keypress but not in PhpStorm. Nothing happens when I press AltGr+E. What's the problem?
It's a known issue considered not a bug. AltGr+E is basically an alias for Ctrl+Alt+E. This last key combination is assigned by default to the Edit command provided by the Perforce Integration plug-in. You can verify it at:
File → Settings → IDE Settings → Keymap
Click on the magnifying class icon and press AltGr+E:
Possible solutions:
Disable the plugin if you don't need it:
File → Settings → IDE Settings → Plugins
Otherwise, change or disable the keybinding.
Whatever the reason, the Browse History binding does not interfere. In fact, it doesn't even work.
I could not type # symbol and it was same issue as this one.
My story of solution:
Tried to write # symbol (Ctrl + Alt + X) and that typed nothing, just info in bottom left corner (something about finding Xpaths) showed up.
Then I went to Settings > Keymap and type 'xPath' in search field.
This way I found out that on that key shortcut was plugin about XPaths bound.
Go to plugins, find the plugin and disable it.
Restart IDE and then I can write # symbol as I need.

Single integer Value Patch - Quartz composer

I am looking for a patch that allows me to input a number on the inspector and then outputs it.
This way I can share this values across other inputs.
Any idea?
Thanks!
Open the Patch Library and create an Input Splitter. It will appear on the canvas as Virtual Splitter. Click on the patch you just created and press ⌘ 2 to open the Inspector Settings window, and change Type to either Index (if you want an unsigned integer) or Number (if you want a floating-point number).