sway-launcher-desktop icon indicating copy to clipboard operation
sway-launcher-desktop copied to clipboard

Make `list_cmd` able to operate on null-terminated strings

Open davla opened this issue 4 years ago • 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 :grin:

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.

davla avatar Feb 28 '21 14:02 davla

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?

Biont avatar Mar 08 '21 09:03 Biont

Of course :smile:

  • 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

davla avatar Mar 09 '21 18:03 davla