You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refres
8000
h your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using version 1.60 installed with cargo (installation on Archlinux with AUR results in an error when running thoth), but I am unable to copy a block or selection, either in main mode, edit mode or in CLI.
Any copy action from thoth just empties the system's clipboard.
I currently manage like this:
thoth view block_name | xsel --clipboard
but it's not very practical.
Any idea where the problem might be coming from? Let me know if you need more information.
I really like the way thoth works and would like to be able to use it in its entirety.
Hi there! Sorry that you're running into this issue :/ . Just so that I have a better understanding on what is going on, are you using X11 or Wayland as your window system? Or do you not have the display set? Just trying to get a better idea to understand the issue.
^ I have a PR for this out. I was able to get it working on my machine, although i will say I run Manjaro rather than Arch Linux directly. Let me know if this fixes the issue or not since I can't fully test the solution via Arch
I've been wanting to learn rust for years, and I finally started this week after digging through the sources of your project during the bug report (any good resources for an experimented developer eager to learn is welcome 😁).
After this I've just been building small projects, asking questions to more experienced people, and learning from the compiler haha as I find that I learn the best from experience
Now I'm starting to work on some bigger projects and trying to contribute to open source projects here and there
Hello, I am experiencing the same issue.
In Tui, pressing Ctrl+Y causes the app to crash with the error message 'Unknown error while interacting with the clipboard: X11 server connection timed out because it was unreachable'.
I am running NixOS on Wayland. My terminal is Alacritty and Thoth is updated to the latest version. @jooaf
@cyberphysalis Hi, thanks for letting me know! If it is possible could you help me debug this a little bit? Can you provide a full stack trace once the TUI panics? I don't have NixOS nor do I run on Wayland, so I'll have to do some investigation. Sorry for the inconvenience! I hope to get to this in the middle of the week once I have more time.
@cyberphysalis I have this PR. If you don't mind could you check that out? Else, I can merge it in (I've done some testing but wanted to make sure that it works on your machine).
@cyberphysalis sorry to bother you again, but do you mind testing from the PR? I have found this issue with the clipboard library that I am using that has questionable (not necessarily bad support, rather people don't know if it is truly supported) support for Wayland. To get around this, a popup is displayed saying that the contents couldn't be copied and that the block was saved to a file. You can then use thoth read_clipboard or cargo r -- read_clipboard to get the contents of the block. Sorry, it isn't fully ideal. If we find that works for you (I ran some tests over ssh to kinda simulate a non X11 environment), then I may go ahead and tack on copying with wl-copy from the read_clipboard command (assuming thoth copy doesn't work).
@jooaf It works as expected, displaying a pop-up. There's a typo to fix: the pop-up suggests the command 'thoth read-clipboard', but it should be thoth read_clipboard, with an underscore instead of a dash.
@cyberphysalis excellent that is good to know. I've made that typo fix. Is this a satisfactory workaround for you? I'm tying to see if I can get wl-copy to be used instead if it is not a good workaround. Sorry again.
As a temporary solution, it works despite adding a couple of extra steps. It would be great if it could be fully fixed in the future.thanks for your help! @jooaf
@cyberphysalis Ok cool, I'm going to merge this in. In the meantime, I'll do some research to see if I can fully rectify this. And sure no problem, thanks again for your patience :) !
Activity
jooaf commentedon Sep 17, 2024
Hi there! Sorry that you're running into this issue :/ . Just so that I have a better understanding on what is going on, are you using X11 or Wayland as your window system? Or do you not have the display set? Just trying to get a better idea to understand the issue.
alban-b commentedon Sep 17, 2024
Don't worry, the project seems young but promising, I'm happy to be able to help a little bit stabilize it .
I'm using X11 at the moment
jooaf commentedon Sep 17, 2024
Thanks I appreciate it! Ok cool, I'm investigating. Seems there might be a bug with
copypastawith X11, but i'm double checkingjooaf commentedon Sep 17, 2024
^ I have a PR for this out. I was able to get it working on my machine, although i will say I run Manjaro rather than Arch Linux directly. Let me know if this fixes the issue or not since I can't fully test the solution via Arch
jooaf commentedon Sep 20, 2024
I just made a release with the clipboard fix. When you get the chance @alban-b could you let me know if it works on your end?
alban-b commentedon Sep 20, 2024
Just installed via Cargo and working perfectly, thank you!
jooaf commentedon Sep 20, 2024
Excellent glad to hear! Thanks so much for reporting the bug :)
alban-b commentedon Sep 20, 2024
I've been wanting to learn rust for years, and I finally started this week after digging through the sources of your project during the bug report (any good resources for an experimented developer eager to learn is welcome 😁).
Hope to contribute one day!
jooaf commentedon Sep 21, 2024
Awesome! I'm still very new to Rust as well as this is my first major Rust project haha. I can describe the way that I've been going about learning:
I hope that helps!
cyberphysalis commentedon Feb 20, 2025
Hello, I am experiencing the same issue.
In Tui, pressing
Ctrl+Ycauses the app to crash with the error message 'Unknown error while interacting with the clipboard: X11 server connection timed out because it was unreachable'.I am running NixOS on Wayland. My terminal is Alacritty and Thoth is updated to the latest version.
@jooaf
jooaf commentedon Feb 24, 2025
@cyberphysalis Hi, thanks for letting me know! If it is possible could you help me debug this a little bit? Can you provide a full stack trace once the TUI panics? I don't have NixOS nor do I run on Wayland, so I'll have to do some investigation. Sorry for the inconvenience! I hope to get to this in the middle of the week once I have more time.
jooaf commentedon Feb 26, 2025
@cyberphysalis I have this PR. If you don't mind could you check that out? Else, I can merge it in (I've done some testing but wanted to make sure that it works on your machine).
cyberphysalis commentedon Feb 27, 2025
@jooaf I tested it, and the bug still exists. More information is provided below. Thank you for your support.
jooaf commentedon Mar 6, 2025
@cyberphysalis sorry to bother you again, but do you mind testing from the PR? I have found this issue with the clipboard library that I am using that has questionable (not necessarily bad support, rather people don't know if it is truly supported) support for Wayland. To get around this, a popup is displayed saying that the contents couldn't be copied and that the block was saved to a file. You can then use
thoth read_clipboardorcargo r -- read_clipboardto get the contents of the block. Sorry, it isn't fully ideal. If we find that works for you (I ran some tests over ssh to kinda simulate a non X11 environment), then I may go ahead and tack on copying withwl-copyfrom the read_clipboard command (assuming thoth copy doesn't work).Thank you for your patience!
cyberphysalis commentedon Mar 7, 2025
@jooaf It works as expected, displaying a pop-up. There's a typo to fix: the pop-up suggests the command 'thoth read-clipboard', but it should be
thoth read_clipboard, with an underscore instead of a dash.jooaf commentedon Mar 9, 2025
@cyberphysalis excellent that is good to know. I've made that typo fix. Is this a satisfactory workaround for you? I'm tying to see if I can get wl-copy to be used instead if it is not a good workaround. Sorry again.
cyberphysalis commentedon Mar 10, 2025
As a temporary solution, it works despite adding a couple of extra steps. It would be great if it could be fully fixed in the future.thanks for your help! @jooaf
jooaf commentedon Mar 10, 2025
@cyberphysalis Ok cool, I'm going to merge this in. In the meantime, I'll do some research to see if I can fully rectify this. And sure no problem, thanks again for your patience :) !