Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.16k stars 90 forks source link

[Request] C-y paste the clipboard and the curses backend (integration with tmux buffers) #339

Open m040601 opened 1 year ago

m040601 commented 1 year ago

First of all thank your for all the work in this awesome, and polished tool.

From the man page,

C-y - paste the clipboard

From the README,

Currently, pasting from clipboard is done at runtime with wl-paste -t text/plain and xclip -t text/plain -out, attempted in that order.

So I guess this is some what hardcoded. Does this "currently" means maybe in the future something else ?

My use case is this.

99.99% of my time is spend in the terminal. And using tmux. And using bemenu with the curses interface in the terminal. Beautifull. (Well, actually 90% of my time I dont even boot a window manager, a desktop, or X11/Wayland.)

If, I am in X11 or Wayland,and want to copy something from another GUI window to bemenu, I am already served.

If, I am not in X11 or Wayland, then there is no "xclip" or "wayland tool". So I have nothing to copy "from".

But, even if I was in X11 or Wayland, I might want to copy from the tmux buffer itself. Not from another GUI window.

Tmux has this powerfull buffers abilities. I'm constantly cutting, copying pasting between all my terminal "windows" with it.

But if I want to copy from the tmux buffer to bemenu directly, there is currentyl not this option.

Would this be possible ? And have that "pasting" option not "hardcoded" ? Maybe as an environemtal option ?

Thanks in advance

Cloudef commented 1 year ago

Inside terminal or multiplexer like tmux, normal copy-paste functions provided by terminal or multiplexer should work 🤔