Run OCSYank after copy relative path #1957
Unanswered
pshvechikov
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Today I leaned of the existence of Could we use an nvim-tree event, say, |
Beta Was this translation helpful? Give feedback.
3 replies
-
I opened a PR (#2489) that should solve this issue. @pshvechikov can you please confirm if this is what you're after? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The default command for copy into system clipboard via OSC symbols is
autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '' | execute 'OSCYankReg "' | endif
This command is not respected when one copies relative path (
Y
) from nvim-tree, since no TextYankPost is triggered with vim.fn.setreg:How could one detect the change of the "+" register and autocmd the OSCYankReg command?
Beta Was this translation helpful? Give feedback.
All reactions