Skip to main content
edited tags; edited tags
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

How to take a particular yank from a killring and use it as argumentaccess the last-yanked text programmatically?

How can I use the last thing yanked in a command I'm writing?

For example, if the last text I yanked was "test" I want to use this string somehow in my command.

I(I use avy and evil.)

How to take a particular yank from a killring and use it as argument?

How can I use the last thing yanked in a command I'm writing?

For example, if the last text I yanked was "test" I want to use this string somehow in my command.

I use avy and evil.

How to access the last-yanked text programmatically?

How can I use the last thing yanked in a command I'm writing?

For example, if the last text I yanked was "test" I want to use this string somehow in my command.

(I use avy and evil.)

deleted 281 characters in body; edited tags
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

Good day,

I have a following situation, I want use a certain argument I yank as an argument to some functionHow can I declare with defun. I use avy and evil So far I know, I should be able somehow to access programmatically the last thing yanked valueand use it as a string in my defun function, but I don't know how. As ana command I'm writing?

For example use case, if the last thingtext I yanked was "test""test" I want that I canto use this string somehow in my interactive functioncommand. Many thanks in advance!

I use avy and evil.

Good day,

I have a following situation, I want use a certain argument I yank as an argument to some function I declare with defun. I use avy and evil So far I know, I should be able somehow to access programmatically the last yanked valueand use it as a string in my defun function, but I don't know how. As an example use case, if the last thing I yanked was "test" I want that I can use this string somehow in my interactive function. Many thanks in advance!

How can I use the last thing yanked in a command I'm writing?

For example, if the last text I yanked was "test" I want to use this string somehow in my command.

I use avy and evil.

Source Link
Rareform
  • 231
  • 2
  • 10

How to take a particular yank from a killring and use it as argument?

Good day,

I have a following situation, I want use a certain argument I yank as an argument to some function I declare with defun. I use avy and evil So far I know, I should be able somehow to access programmatically the last yanked valueand use it as a string in my defun function, but I don't know how. As an example use case, if the last thing I yanked was "test" I want that I can use this string somehow in my interactive function. Many thanks in advance!