Full word cursor movement in DBVisualizer script editor - dbvisualizer

I have been unable to find how to do full-word cursor movement in the DBVisualizer script editor.
The normal macos commands of ctl-[left/right]arrow and Option-[left/right]arrow do not work. The Command-[left/right]arrow does something different: it moves to beginning or end of entire line instead of the current word. Presently I am making do with single character at a time cursor movements. This is slow on a long sql line. Examining the available shortcuts there are none mentioned for intra-line/horizontal cursor movement but only vertical:
Does anyone know what magic key combinations do this fundamental cursor movement?

DbVisualizer uses the term "insertion point" for this concept:

Related

How to move the cursor into empty space? Virtual space?

I use Microsoft visual studio code.
I am moving the cursor by pressing the arrow keys, but when I try to move it down at the end of a line, it moves to the beginning of the next line.
What I want is for the cursor to move to the same position on the next line.
Is there any way to achieve this?
Since vscode does not support the concept of "virtual spaces" there is no built-in way to do it. I found one extension that does do it though:
fake-virtual-space
There are some limitations but it does do what you want. In the demo below I am only using the up and down arrow keys to move the cursor to a new, previously empty, line.

An AutoHotkey script to move the cursor two words

I'm attempting to write an AutoHotkey script that moves the cursor to the beginning of the second next word, in a similar way that Window's ctrl + arrows and fn + arrows shortcuts works.
I use very often this pair of shortcuts, but I frequently find that the first one moves the cursor too slowly and the second one too fast. So I would like to get a script that moves the caret, as described, two words instead of one (for example, when pressing ctrl + alt + arrows).
I've never scripted for automated actions on the keyboard before, so this is all new territory for me. I assume anyone with some experience could implement the above in a minute or two.
I have realized that it is much easier than writing an AutoHotkey script, it can be done by recording a macro in Microsoft Word.

Turn multiline selection into multi cursor selection in VSCode

It happens from time to time that I need to edit 100+ lines in a text file all at once.
I know I can use ⌘ Cmd+↑/↓ to select multiple lines but depending on the size of the file that takes a while.
In Atom and Sublime, I can just do a ⌘ Cmd + a to select everything, hit another shortcut (forgot the actual shortcut) and end up with a cursor for every line.
Have not found this in VSCode.
Ctrl-a to select all. (or whatever muli-line selection you want)
Shift-alt-I will put cursors at end of each selected line.
And then if you want those cursors at the beginning of each line you need to trigger the command "cursorLineStart" which is unbound by default. Give it a keybinding and all those end-of-line cursors will jump to the beginning of each line.
With v1.43 and Column Selection Mode this can be quite easy, see Column selection like Visual Studio and How to put the cursor at the end of all selected lines in Visual Studio Code?
FWIW cursorLineStart is not the opposite of Shift-Alt-I. In looking at the commends, Shift-Alt-I is "Add cursors to line ends", but there is not a "Add cursors to line begins" option.
However, the easy trick for that is:
Select your text block
Shift-Alt-I to put a cursor at the end of each line
Command-LeftArrow will move those cursors to the beginning of the lines
Its an extra step but it works. When I get time I will play around with building a custom command to do all this in one action.

Eclipse: Text Editing Without Mouse

I have bandage due to 5th metacarpal damage. Typing is no issue at all, I do hours of it and it's fine. Using a mouse... impossible. This is not about being a productivity ninja not losing the time it takes to reach for the trackpad or the mouse... it's actual being able to do some stuff or not at all for the moment. Anyway, here's the question, put simply and clearly:
In an Eclipse editor, can I move around using the keyboard only?
Examples of actual things I would like to be able to do without using a mouse:
Move the cursor to the end of the line
Move the cursor to the beginning of the line
Move the cursor one line down
Move the cursor one line up
Move the cursor one column left
Move the cursor one column right
Move the cursor one word left
Move the cursor one work right
Move the cursor to the end of the word
Move the cursor to the beginning of the word
Delete the character to the left of the cursor
Delete the character to the right of the cursor
etc.
I realise some of this is possible already using a mixture of END, HOME, CTRL/ALT + ARROW_KEY, etc. But it's not as comprehensive as, say, E-Macs or Vim.
As simple as that.
In Vim, I use j,k,h,l... in Xcode I use Emacs bindings (CTRL-N, CTRL-P, CTRL-H)... how can I use Eclipse in a similar way? I have heard of a "vim" plug-in but I really just need the cursor movement, that's it. Nothing else.
Should I just create custom shortcuts for each movement?!
Going to the end of the line: End key
Going to the start of the line: Home key
Going one line down: down arrow key
Move the cursor one line up: up arrow key
Move the cursor one column left: don't know what you mean by column
Move the cursor one column right: idem
Move the cursor one word left: ctrl - left arrow key
Move the cursor one word right: ctrl - right arrow key
Move the cursor to the end of the word: no idea
Move the cursor to the beginning of the word: ctrl - left arrow key
Delete the character to the left of the cursor: backspace
Delete the character to the right of the cursor: delete
This is on Windows. All the shortcuts are available in Window (Alt W) - Preferences (P) - General - Keys (type "Keys" in the filter text box). Most of the shortcuts above are standard shortcuts, which are used in every windows editor.
I found it :(
Preferences > General > Keys > Emacs
You can do almost everything with your keyboard:
Take a look here for a detailed list of shortcuts:
http://www.shortcutworld.com/en/win/Eclipse.html

Is there an equivalent to `line-mode` and `char-mode` (ansi-term) for multi-term?

Any time I try to move around in the buffer (besides moving up and down lines with C-p and C-n), my cursor is brought back to the command line so I cannot select and copy arbitrary text in the multi-term buffer. I can use my mouse to move to and highlight text, and all goes well from there, but is there a set of key bindings that will allow me to set the mark in other parts of the buffer? I looked in multi-term.el` but was not able to find anything that addressed this.
Try 'term-line-mode' and 'term-char-mode'