-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture trailing newline in shell expansion. #3470
Comments
I realize that subshells automatically trail newlines, and Kakoune has either also decided to do that or is using a POSIX subshell which is trailing the newlines. However, even if I append a dummy So I figure some solution with the pipe keys might work, but I can't think of anything at the moment. |
Here is what I ended up with. Hopefully there is a better way to do this...
|
Can you do something like:
I think |
@Screwtapello This is absolutely the right way to do it. If I wanted a relative path I could just do
Thanks a ton |
If I have a file
test.txt
with three newlines in it, and I run:reg dquote %sh{cat ~/.clipboard}
, the"
register is empty. Whereas if I select three newlines in kakoune and yank them withy
, and then do:echo %reg{"}
, I have
. How can I get these newlines into the register as a result of a shell expansion?The text was updated successfully, but these errors were encountered: