Ergodox and backtick / grave / accent (ErgoDox EZ Oryx with QWERTZ) - keyboard

Keyboard: ErgoDox
Keyboard-Layout: DE (german)
Layout-Configurator: Oryx
How to enter the ` grave (aka backtick / accent) in a way, that you don't need to press it twice to appear?

After a couple of time, I figured out, how it works.
Open the Oryx-Configurator
Edit the Key where the ` should appear
Choose Tab Macro
Enter SHIFT+= (but choose the general = not the "num-block" one!)
Enter a general Whitespace
Result should look like this:
If your PC has now set QWERTZ (german) Keyboard-Layout as general Layout, the ` works with one single click.

Related

How do I substitute in vim editor?

I want to substitute with vim editor a word but only on a portion of a code, that is to say the word "[iteration]" by "[index]". I know how to select the text to replace (visual mode) but I don't know how to apply a substitution on the text selected. The only thing I know to do is global substitution by typing "%s/\[interation\]/\[index\]/g: how can do the same on only selected text?
After you select a block in visual mode, press :, and you'll get a prompt with '<,'>, representing the block you've selected. You can then add instructions to be performed on that block like s/[interation]/[index]/g (without the %!). I.e., you'll have '<,'>s/[interation]/[index]/g. Press Enter and you're good to go.

Decorate a block of text with a digraph box

Is there a vim scrip to allow me to visually select a box, then put a box around it using digraphs?
For example, input:
Hello World
And the output after visual selection (and the calling the script)
┌─────────────┐
│ Hello world │
└─────────────┘
Thanks!
Interesting... I had to do a lot of those re-formatting, thus I wrote a script called "BlockIt", do exactly what you want I guess. And it can do more than that.
Check it out:
https://github.com/sk1418/blockit
Not tested but DrawIt (command \b) should do that.
Look at www.vim.org for other drawing scripts (link to my search results).
You can use visual block mode for this purpose.
Press Ctrl+V to enter visual mode.
Move arrows left, right, up and down to select your box. (If you wanted to interchange the ends, you can press Ctrl+O. I mean, we usually select through the bottom right end. If you want to switch to top left corner and select topside, you can use this)
Now, after making the selection to fit your desired box size, you can fill it with a character like #,* or whatever you want.
Press r# to replace the entire box with a #. You can put any character after r.
Now, your box is full of characters.
You want to type something inside! You can enter replace mode by pressing Insert twice.
Then, start typing your text . press Esc once done.

Jump to mark command (backtick) not working

After setting a mark, I can't jump to it using `<mark>, it doesn't work. However '<mark> works. What could be wrong?
do a :map<CR> and check if nothing overmapped the " ` " char (dumb plugins does dumb things), also if you keybord is configured right, sometimes latin chars are a mess, unfortunately...
When using MacVim the option Draw marked text inline may be the culprit.
Go to Settings->Advanced and make sure the corresponding checkbox is disabled.

How to jump out from string value when using Resharper

I want to jump out from quotes. When I was not using ReSharper 'Tap' key helped to jump out from double quotes, but it is not working when using ReSharper.
Of course I do not want to use right arrow key.
Help please.
If you're looking to jump out of the method arguments altogether, use Ctrl+Shift+Enter (Complete Statement).
If your intention is to quit the current string value to start entering the next argument, then I'm not sure anything apart from the right arrow or Ctrl + right arrow will work.
What's the 'Tap' key btw?
As a workaround you can also use Ctrl+W which is 'Expand selection'. Pressing it around three times will select the entire string literal. Then you can press → to go to the right side of selection.
I'm not sure whether there is such a command in Resharper, but if you're saying that this command there was in VS before Resharper then you can find this command in Options->Environment->Keyboard

How to search inside a specific block of code in IntelliJ IDEA?

How I can search within a specific block of code or selection in IntelliJ IDEA?
I got used to using this feature in Eclipse. In Eclipse you can just double click on the beginning of a curly bracket, and it'll highlight the entire block of code. After which you could do Command+f
(Ctrl+f on Windows) to search ONLY in the highlighted block, or you could just highlight whatever you need and search just that block of code.
Go to Settings | Keymap, search for the Find... action in the Other group. This action should have the following description:
Find a string in active editor, shows
modal dialog
Assign a keyboard shortcut to this action (you need to make a copy of default keymap to modify it), for example Ctrl+Alt+Shift+F.
When in editor, select any block of text, then press this shortcut, a dialog will open with the Scope automatically set to Selected text:
To quickly select the method body while standing on the opening curly brace use Ctrl+W.
As of 2020, I'm able to perform find in selection on PhpStorm
Select the block of text and hit Cmd + F on MacOS / Ctrl + F on other platforms
On the find toolbar (that appears on top) there's an In Selection button; use that to limit search scope to the selected text only
Here's the link to my original answer on JetBrains support forums
I'm using
PhpStorm 2020.1.2
Build #PS-201.7846.90, built on June 3, 2020
First select some text and press ctrl+R to open the dialog, then check the "in selection" option :
In current version, 2020.2, default for Find In Selection is Ctrl+Alt+E.
On IntelliJ in Mac:
In a file select the specific block in which we want to find something
Press CMD + F
Press CTRL + OPTION + G
Notice that the cursor has automatically landed in the find toolbar's text field
Type in what is intended to be found
Press enter to move the cursor to the first occurrence.

Resources