Atom editor with Azerty Keyboard : which keys to fold/unfold lines? - keyboard

With Atom Editor, on a Qwerty Keyboard, the combination Shift + Ctrl + Alt + [ allows you to fold all identation, and Shift + Ctrl + Alt + [ to unfold.
This combination is impossible on an Azerty Keyboard as [ can only be accessed with the AltGr key which cannot be used along with Alt Key.
Do you know how to fold/unfold lines in Atom Editor on an Azerty Keyboard ?

The Atom Flight Manual includes instructions on how to set new keybindings. Atom doesn't have an ability to distinguish between keyboards as far as I know, so if a character like [ is inaccessible with the rest of the keybinding, then you should definitely define your own.

Related

Map "Right Alt" in Mac mode (=m) on Kinesis Advantage

The "Right Alt" modifier key does not exist in the Mac keyboard layout – only "Left Alt".
How does one "find" this key and assign it using the F12 key programming mode?
(Program+F6) gets you into 'PC Mode' if you want the [Ctrl | Alt ][ Alt | Ctrl] setup... (This is the Advantage2, i think same applies to the Advantage1).
Note: there is a SmartSet GUI app now by Kinesis that you can reassign/map/macro keys if you want a more custom layout for your Mac ... but this is usually the only remapping I want so the (Program+F6) works out for me.
Kinesis support answered:
The only way to get a Right Alt is to enter PC mode - Ctrl | Alt | Alt Gr | Ctrl. From there you can remap the embedded Windows keys (Command keys) located in the embedded "PrintScrn" and "Scroll Lock" keys (when Keypad is On, these two keys function as a L-Command and R-Command)."

Keyboard shortcut for switching between workspaces

Is there a keyboard shortcut that enables you to switch between workspaces in Linux in a similar way to switching between windows using ALT+TAB? The documentation on this is incomplete and it would be nice to use the keyboard for this instead of the mouse.
CTRL + ALT + LEFT_ARROW or CTRL + ALT + RIGHT_ARROW
CTRL + F# might also work, depends a bit
even CTRL + SHIFT + F# might be mapped for the ones above 12

IntelliJ Column Selection using Cursor Keys

Is it possible to some how setup IntelliJ IDEA so that I can column select with the cursor keys similarly to how I might in Notepad++, Visual Studio, or FlashDevelop.
For instance when I'm typing code I almost always do my navigation solely through use of the keyboard. In the IDEs mentioned previously I can quickly select blocks of code by holding Shift + Alt then tapping ↑ to extend my cursor across the lines above. I can then hold Shift + Alt + Ctrl and tap ← or → to quickly jump across words and select the chunk of text I want.
In IntelliJ IDEA I have to constantly enable and disable Column Selection Mode using the Shift + Alt + Insert and even then it doesn't quite function as it does in the other IDEs or Text Editors.
Any ideas?
You can do column editing using the Edit | Column Selection Mode.
The shortcut to turn it on/off is Alt+Shift+Insert. You navigate with arrow keys to select blocks of text.
Multiline Caret (without mouse)
Windows/Linux: CTRL + CTRL(Hold) + ↑ / ↓
Mac: ⌘ + ⌘(Hold) + ↑ / ↓
ESC will end multiline mode.
Change Multi-caret Hotkey
To add a custom Keymap, CTRL+SHIFT+A, type keymap and click on the one with Settings as subtext. Search for Clone Caret Above and Clone Caret Below.
I mapped mine to ALT+SHIFT+↑ / ↓.
Bonus
Try holding combinations of CTRL, SHIFT, and arrows for improved selection power.
It is also possible to select holding middle mouse key.
Go to the Settings | Keymap and set a shortcut for Clone Caret Above and for Clone Caret Below
Most convenient way is to:
MAC: Hold Option+Shift and click with mouse.
Windows: Hold Alt and click with mouse.
On a mac, to toggle block select on/off:
shift command 8
⇧⌘8
For me on Mac:
Press once 'option' key, release it, and press and hold it again.
Now navigate with cursor to select desired code.
Press 'Esc' to exit column mode! :)
I think #Meo's answer is the most correct, but if your hand happens to be on the mouse, you can also accomplish this with Ctrl+Alt+Shift+Left Mouse Button Click. Or look for the Add Rectangular Selection on Mouse Drag in the keymap settings.
In Windows or Linux I press two times Ctrl
For Mac cmd+shift+* didn't work for me. I changed the keymap to something else and now it works seamlessly.

How do you insert a vertical column of text in Sublime Text 2 using the vim key bindings?

How do you insert a vertical column of text and indent it in Sublime Text 2 using the vim key bindings?
(source: yannesposito.com)
I have seen the Sublime Text 2 Column Selection Docs, showing how you can use Ctrl + Shift + Up, but is it possible to do the same thing using the vim shortcut?
I am using Sublime in Vintage Mode.
It's a bit fiddly and an extra keystroke, but it is possible: you just have to split the selection into multiple cursors before you do the standard VIM Shift+I
So the whole routine (on a Mac) is:
Select block with V/v + motion keys
CommandShift + L
V/v to exit visual mode
Multiple cursors that you can move, insert, whatever!
Alternatively, you can do what I did and adopt a hybrid approach by changing Sublime's Shift + Control + arrow keybindings to be Shift + Control + motion keys instead.
[
{ "keys": ["ctrl+shift+j"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+shift+k"], "command": "select_lines", "args": {"forward": false} }
]
Shift + Control + K conflicts with OS X's built-in "kill all lines" binding, but ST bindings override those, and you shouldn't be using that one anyway... it's from Emacs ;)
If you have a mouse you can click and drag with with middle mouse button to do a visual block, I've never found a keyboard command for visual block in ST2 Vintage Mode though.

How do I type CTRL + ] on a QWERTZ keyboard (in order to jump to a tag with Vim)?

In Vim, the usual way to jump to the definition of the keyword under the cursor is to type CTRL-] (as claimed by :he CTRL-\]).
But when you have a QWERTZ keyboard (see below, Strg is Ctrl), you're in some trouble: there is no separate ] key on the keyboard; you'll have to press ALT GR-9 to type the ]. So, to jump to a tag, it`s neccessary to hit CTRL-ALT GR-9 which doesn't work (and is also not feasible because you'll break your fingers if you happen to use that often).
So, how could I jump to a tag using my QWERTZ keyboard?
In addition, I'd also be glad if someone could explain why pressing CTRL-ALT GR-9 does not work.
Edit:
I'm not interested in the obvious answers "remap to something else" or "press the mouse button".
Duplicate on Vi/Vim: https://vi.stackexchange.com/questions/5732/tag-navigation-using-ctrl-does-not-work-with-non-english-keyboard-on-windows
As weird as it reads, on AZERTY keyboards (french layout specifically) $ is at the same spot as ] on QWERTY keyboards so I must hit <C-$> to jump to definition.
See if <C-+> does the trick.
On an AZERTY keyboard press:
ctrl shift 8 to go to List item
ctrl shift 7 to go from
The same in excel as
ctrl [
ctrl ]
On a QWERTZ mac keyboard Ctrl+option+6 worked for me. And jumping back worked as expected with Ctrl+T or Ctrl+O.

Resources