yankpad
yankpad copied to clipboard
wraping question
Hi @Kungsgeten
how are you?
i have something i cant figure out which im revisiting from a few months ago
i have the following 3 snippets to paste code blocks using yankpad
*** bash.paste.clip: paste with clipboard data :key:bpc:
#+BEGIN_SRC sh :results none
`(yank)` $0
#+END_SRC
*** bash.paste.empty: paste empty block :key:bpe:
#+BEGIN_SRC sh :results none
$0
#+END_SRC
*** bash.paste.line: paste line/or selected :wrap:key:bxx:
#+BEGIN_SRC sh :results none
$0
#+END_SRC
the first 2 snippet work perfectly. the first pastes into an org mode block from the clip. the seconds just inserts and empty orgmode block. the last scenario is whats tripping me.
im trying to cut (yank) the current line in an org file and "wrap" it inside the org mode upper and lower blocks. i thought my code with the :wrap: tag should do that but it acts really wired and pastes the content at the END of the snippet (after the #+END_SRC
part)
is there any idea you have that can overcome this? best
Z
Hi! I'm fine thank you, but have been busy with work and a project I'm working on. Unfortunately I haven't had much time to work on my Emacs packages. Hopefully that will change in the future :)
I'm currently not using :wrap:
in any of my personal snippets, but I think it takes the current region and inserts it at $0
.
hi again and thx for the answer! yeah ive also been super busy and only know have some time to breathe :)
hmm thats what i thought that it inserts at $0
yet for some reason it pastes the wrapped text after the yankpad paste like this
$0
#+END_SRC **PASTED TEXT**
ill try to investigate further
thx again
Z