Make `list_cmd` able to operate on null-terminated strings
davla opened this issue · 2 comments
First of all, compliments for this project. I really like how it makes me able to launch both executables and XDG desktop entries with one shortcut, without needing to remember which one of the two I'm filtering 😁
In fact, I like it so much, that I also use it to display the clipboard history with clipman. And here comes the request. Clipboard history entries contain newlines quite often, and this makes it impossible to use them as items in the first column in list_cmd
. Many other unix tools (find
, xargs
, awk
and even clipman
itself) can work with null-terminated strings rather than lines, which would make it quite convenient if list_cmd
would too.
Hi! I'm glad you like the project so much.
Could you post the custom provider (assuming that's how you're implementing clipman
) here so I can reproduce it easily?
Of course 😄
- Here you have the config file: https://github.com/davla/dotfiles/blob/sway/dotfiles/dotfiles/config/sway-launcher-desktop/clipman.conf
- And here you have the functions definitions: https://github.com/davla/dotfiles/blob/sway/dotfiles/dotfiles/config/sway-launcher-desktop/clipman.sh