keymapping

How to configure IntelliJ (also Android Studio) redo shortcut to CTRL+Y instead of CTRL+SHIFT+Z?

北城以北 提交于 2019-12-02 16:32:32
The default IntelliJ / Android Studio "Redo" action shortcut is CTRL + Shift + Z and this is a common problem for Windows users. A bigger problem is CTRL + Y is mapped to the "Delete line" action - and this causes the undo stack to be lost. To solve this issue, how can the "Redo" shortcut be changed to CTRL + Y in IntelliJ? İsmail Yavuz Open Settings (press CTRL + ALT + S ) Click Keymap on the left list. There is a combobox that contains keymaps. Select one of them (default means IntelliJ of course. We can't change any of pre-defined keymap however we can copy, edit and then use the edited one

Advanced Usage of Ranges with Vim Keymappings

岁酱吖の 提交于 2019-12-02 07:45:27
I have a mapping in my vimrc that downwardly comments out regions of c code: nmap comc :normal! I//<ESC> Since the 'normal' ex command implicitly converts input such as "Ncomc" to ".,.+N-1 comc", I can range comments downwardly without many keystrokes and without leaving normal mode. This is, however, a very limited subset of what vim ranges can do. If I'm willing to be verbose, I can achieve upward ranging comments like so: .,.-5 normal comc While editing text, I would much prefer to type something like "-6comc" or make a mapping of "Comc" that uses upward ranges. I'm haven't been able to do

Keyboard Input with swing Java

ε祈祈猫儿з 提交于 2019-12-01 21:38:12
I am working a calculator using java swing and I want to be able to enter the numbers and operations via keyboard. I can't seem to get it working. import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Calculator extends JFrame implements ActionListener { JPanel[] row = new JPanel[6]; JButton[] button = new JButton[23]; JMenuBar menubar = new JMenuBar(); JMenu file = new JMenu("File"); JMenuItem clear = new JMenuItem("Clear"); JMenuItem exit = new JMenuItem("Exit"); String[] buttonString = {"7", "8", "9", "+", "4", "5", "6", "-", "1", "2", "3", "*", ".", "/", "C", "√",

What is the “When” and “Command” for ctrl-P panels?

感情迁移 提交于 2019-12-01 12:40:53
I'm trying to create my own key shortcut to act as the arrow keys in Visual Studio Code. When I hit "ctrl-p" it pops up a window that I can navigate. However, when I use my special keybinding, which I've set as { "key": "alt+i", "command": "cursorUp", "when": "textInputFocus" } it does not move up to the next option like pressing the up arrow does. I'm guessing this is due to having either the wrong command or the wrong "when" for getting the keymap to trigger when that window is open. Normally in Atom I'd just use the key-binding-resolver, but Visual Studio Code doesn't appear to have that

Certain key mappings not working in MacVim

最后都变了- 提交于 2019-12-01 04:15:10
I've recently switched to using a Mac at work from previously using Linux. I found out about MacVim (from http://code.google.com/p/macvim/ ) and have been trying to port over my previous keymappings. The mappings I used to have are as follows: Ctrl-T : New tab Ctrl-W : Close tab/window Ctrl-1 ... Ctrl-0 : Switch to numbered tab Alt-Up : New tab (same as Ctrl-T ) Alt-Left / Alt-Right : Switch to the previous/next tab Ctrl-Alt-E : Open FuzzyFinder in file mode Ctrl-Alt-B : Open FuzzyFinder in buffer mode Ctrl-Alt-W : Clear trailing whitespace from the buffer Now, to make these mappings more 'Mac

Can Windows key be mapped in Vim?

天大地大妈咪最大 提交于 2019-12-01 02:36:30
Using Windows key as Meta is very useful in Emacs, is there the way to do it in Vim? guest You definitely can, even in terminal, although you have to use it as a meta key (I found no way to use it on its own). Edit your .vimrc file with vim. Say you want to remap Win+q in normal mode to quit vim. Simply add your mapping and, when trying to indicate your shortcut, press Ctrl+V , then Win+q . This will add something similar to ^X@sq to your file (but do not type it directly , the ^X is a special character ). In the end your line should look like: nnoremap ^X@sq :q<CR> Save and quit, launch vim

Certain key mappings not working in MacVim

放肆的年华 提交于 2019-12-01 02:29:57
问题 I've recently switched to using a Mac at work from previously using Linux. I found out about MacVim (from http://code.google.com/p/macvim/) and have been trying to port over my previous keymappings. The mappings I used to have are as follows: Ctrl-T : New tab Ctrl-W : Close tab/window Ctrl-1 ... Ctrl-0 : Switch to numbered tab Alt-Up : New tab (same as Ctrl-T ) Alt-Left / Alt-Right : Switch to the previous/next tab Ctrl-Alt-E : Open FuzzyFinder in file mode Ctrl-Alt-B : Open FuzzyFinder in

Can Windows key be mapped in Vim?

Deadly 提交于 2019-11-30 23:03:48
问题 Using Windows key as Meta is very useful in Emacs, is there the way to do it in Vim? 回答1: You definitely can, even in terminal, although you have to use it as a meta key (I found no way to use it on its own). Edit your .vimrc file with vim. Say you want to remap Win+q in normal mode to quit vim. Simply add your mapping and, when trying to indicate your shortcut, press Ctrl+V , then Win+q . This will add something similar to ^X@sq to your file (but do not type it directly , the ^X is a special

Keymap issues with NX from Mac OS X Lion to Ubuntu

帅比萌擦擦* 提交于 2019-11-30 13:53:05
问题 I have issues with the keymap of my NX session being garbled. I have a Macbook Air running OS X Lion. I use OpenNX to start a session with an Ubuntu server running FreeNX. The session type is Gnome. My keymap is very off (eg. w gives =, delete gives ",", t gives w). I tried: xmodmap -pke > nxclient.xmodmap on the client and, xmodmap nxclient.xmodmap on the server and I recover many of my keys, but it is still unusable. I tried the Gnome keyboard layouts but none worked. The problem also

Keymap issues with NX from Mac OS X Lion to Ubuntu

折月煮酒 提交于 2019-11-30 08:56:21
I have issues with the keymap of my NX session being garbled. I have a Macbook Air running OS X Lion. I use OpenNX to start a session with an Ubuntu server running FreeNX. The session type is Gnome. My keymap is very off (eg. w gives =, delete gives ",", t gives w). I tried: xmodmap -pke > nxclient.xmodmap on the client and, xmodmap nxclient.xmodmap on the server and I recover many of my keys, but it is still unusable. I tried the Gnome keyboard layouts but none worked. The problem also occurs with an XFCE session. I would appreciate any tips. x2go worked on client and server using Gnome with