-
Notifications
You must be signed in to change notification settings - Fork 7
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
Not clearing screen on Enter to copy and exit #53
Comments
Hi @BrayanLope5 👋 To make sure I understand, is your desired behaviour for the fish terminal window to stay open after you've made a selection in the clipse TUI? The advice given is to get the terminal window to close after selection, or keep the TUI view open with If you want the window to close I would recommend binding a command like If you want the TUI to exit but the terminal window stay open by calling |
Thank you for the quick reply. And it's I don't think it's about the tui/window not closing. It does close but it leaves behind the last view of the tui. I tried your suggestion The problem is that when I open the tui, then I use the Enter key to copy from the history, I do get back to a new prompt as expected, but right above the new prompt I can still see the last state of the tui. Basically like it's still open but it is not. It is just the last view of the tui in my terminal history. Sorry I can't take a screenshot because I just started setting up hyprland and I don't have a way to take a screenshot yet. The closest example I could find is on reddit and the first comment makes mention of an "Alternate Screen" and also this other forum. |
@BrayanLope5 thanks for the update. If the intended behaviour is for the window to stay open rather than close, you should simply be able to use a command like This is not necessarily how the app is intended to be used, but that should help with what you're trying to achieve :) |
Here's an example Hyprland config I've seen from other users for binding a floating window that exits on selection: exec-once = clipse -listen
windowrulev2 = float,class:(floating)
bind = SUPER, V, exec, foot --class floating -e fish -c 'clipse' EDIT: to force the window to close (if wanted) you could also use
|
I was initially facing this issue when trying to use it as a scratchpad via Pyprland This currently works well for me: [scratchpads.clip]
animation = "fromBottom"
command = "kitty --class clipse sh -c 'clipse -fc $PPID'"
class = "clipse" And then bind it like this: bind = $mod, V, exec, sh -c "if ! hyprctl clients | grep 'class: clipse'; then pypr show clip; fi" |
Hi @BrayanLope5 thanks for getting back. I fully understand the issue. Did you attempt the previous suggestions here from me or @maydayv7? That should help achieve what you're looking for here 😄 |
I don't use Pyprland and I am not very good with linux either so I don't quite follow what he did. I tried to make it work but I just wasn't able to get what I wanted. I think he is implementing something like what you show on the docs, a floating window that closes immediately after closing the the Tui because the shell is killed. And I've been able to get something like this working. But sometimes I already have a terminal window open doing something else and I just quickly launch the tui with an alias but then I get the result I showed in the pictures. Not a big deal, I think I'll just go with using an alias like cm="clipse && clear". |
Thanks for giving it a go @BrayanLope5 💙 I'll close this issue with the alias as the solution for now and I'll try and get the selection to mirror the same behavior as exiting with Thanks again for using clipse! |
@BrayanLope5 found a fix btw. see commit 5dd436b You can either build this from source or wait for it to be included in the next release 😄 |
When entering the tui and using Enter to copy an entry, the screen is not cleared. If instead I press q to exit, then it is cleared. I am using the latest release v0.0.71. I am using fish as my shell, wezterm as my terminal emulator, and hyprland as my window manager.
The text was updated successfully, but these errors were encountered: