PasteAhead
An ST plugin which pastes in front of the cursor's position instead of behind it.
Details
Installs
- Total 122
- Win 68
- Mac 43
- Linux 11
Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
PasteAhead (Sublime Text Plugin)
PasteAhead is a Sublime Text plugin which inserts the contents of the clipboard ahead of the cursor's position as opposed to behind it. Put another way, the cursor remains where it is and the pasted text is inserted in front of it.
This is often useful and avoids the annoyance of pasting text and then having to repeatedly press keys, or reach for the mouse, to return the cursor back to the original insertion point, a repetitive task familiar to coders.
PasteAhead is fully compatible with multiple selections and works with them in exactly the same way as usual except that it pastes ahead of the cursor.
The plugin works with both Sublime Text v2 and v3.
Installing
Use Package Control:
- Open the command palette and select:
Package Control: Install Package
- Wait for the package list to be updated and then select:
PasteAhead
Users can download the zip file and install the plugin manually if they prefer.
Key Bindings
Users must manually add a key binding, which calls the paste_ahead
command, to their user keys file.
The plugin provides no default key binding because of the difficulty in choosing keys to suit all users.
{ "keys": ["???+???"], "command": "paste_ahead" },
Key Binding Suggestions
I use ctrl+shift+v
which steals the keys from the paste_and_indent
command. I've remapped the various paste commands like this:
{ "keys": ["ctrl+shift+v"], "command": "paste_ahead" },
{ "keys": ["ctrl+k", "ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+k", "ctrl+shift+v"], "command": "paste_from_history" },
Those who use ctrl+insert
and shift+insert
to copy and paste may want to consider ctrl+shift+insert
which is not mapped to anything by default.
{ "keys": ["ctrl+shift+insert"], "command": "paste_ahead" },
OSX users might simply use the unmapped ctrl+v
since cut, copy, and paste are mapped using the super
key. While Linux and Windows users could use super+v
which is similarly unmapped by default on those OSes.
OSX: { "keys": ["ctrl+v"], "command": "paste_ahead" },
Linux/Win: { "keys": ["super+v"], "command": "paste_ahead" },
License
This package is licensed under The MIT License (MIT).