You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,7 @@ require('neoclip').setup({
156
156
select='<cr>',
157
157
paste='<c-p>',
158
158
paste_behind='<c-k>',
159
+
paste_visual='<c-v>',
159
160
replay='<c-q>', -- replay a macro
160
161
delete='<c-d>', -- delete an entry
161
162
edit='<c-e>', -- edit an entry
@@ -167,6 +168,7 @@ require('neoclip').setup({
167
168
--- It is possible to map to more than one key.
168
169
-- paste = { 'p', '<c-p>' },
169
170
paste_behind='P',
171
+
paste_visual='v',
170
172
replay='q',
171
173
delete='d',
172
174
edit='e',
@@ -177,6 +179,7 @@ require('neoclip').setup({
177
179
select='default',
178
180
paste='ctrl-p',
179
181
paste_behind='ctrl-k',
182
+
paste_visual='ctrl-v',
180
183
custom= {},
181
184
},
182
185
},
@@ -332,6 +335,16 @@ if using `telescope` or
332
335
```
333
336
if using `fzf-lua`.
334
337
338
+
### Visual mode
339
+
340
+
If you want to select some text and replace it with a Neoclip selection, you need the following keymap:
341
+
342
+
```vim
343
+
<ESC>:Telescope neoclip<CR>
344
+
```
345
+
346
+
The `<ESC>` is necessary to "save" the visual selection before opening a foating buffer. If not, the visual selection is lost. If we don't do this, there will be an error `E481: No range allowed` because Telescope does not support ranges (it seems). If the mapping were `<CMD>Telescope neoclip<CR>`, the visual range would be dropped before opening Telescope without being saved so the visual paste later on would be wrong.
347
+
335
348
### Macros
336
349
If `enable_macro_history` is set to `true` (default) in the [`setup`](#configuration) then any recorded macro will be stored and can later be accessed using:
337
350
```vim
@@ -381,7 +394,7 @@ You can edit the contents of an entry using the keybinds for `edit`. It'll open
0 commit comments