MacOS – How to paste or type without moving the insertion point? (10.8.x)

copy/pastekeyboardmacos

How do I paste or type without moving the insertion point? I am currently on 10.8.x.

I want to be able to type where the insertion point (blinking I-bar) doesn't move but the text I type goes in front of it.

So for example imagine that | represents the current position of the I-bar, and I have the text "[$path.'/to/my/folder'] = ." in the clipboard.

Then I have the following situation:

$myPathArray| = '/rest/of/path';
$myPathArray = '/rest/of/path';
$myPathArray = '/rest/of/path';
$myPathArray = '/rest/of/path';

See, I want to be able to place the insertion point where the | is above, then paste and have the text get inserted so that now I would be in the following situation without having to move the | myself:

$myPathArray|[$path.'/to/my/folder'] = '/rest/of/path';
$myPathArray = '/rest/of/path2';
$myPathArray = '/rest/of/path3';
$myPathArray = '/rest/of/path4';

That way I could just press down arrow one single time after pasting and be here:

$myPathArray[$path.'/to/my/folder'] = '/rest/of/path';
$myPathArray| = '/rest/of/path2';
$myPathArray = '/rest/of/path3';
$myPathArray = '/rest/of/path4';

How can I do that?

It would also be nice to be able to type stuff in so if I typed "kcab" at the insertion point I would go from this:

|wards

to this:

|backwards

I am using various text editors like PHPStorm and BBEdit but I would think these two types of text modes would be OS-level features.

Best Answer

I have never seen such behavior on an OS level. This is likely because such behavior is normally needed for a very specialized task like programming or spreadsheeting, which would be better handled by individual applications.

You might be able to rig something up in Automator that could duplicate this behavior, but I suspect you probably want a different solution.

You can easily do what you need using Sublime Text's multiple select feature, without having the exact behavior that you describe.

In general, if your scripts are starting to get very repetitive, it's probably a better idea to figure out how to easily automate it, rather continue down the path of manual repetition.