-
Notifications
You must be signed in to change notification settings - Fork 429
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
sequential paste/"pop mode" (feature request) #44
Comments
You can also copy the next or previous item in list without removing it -- not sure that it would be better -- it would be possible to copy items to a different tab and retrieve them any time. Now you can paste item and select previous (no removal) with So let's say I copy Selecting the first item to paste could be simply done by checking the time when the item was copied -- i.e. the latest copied item is Any ideas? |
I like your idea about using the time between copies. I had never thought about that. I've been thinking about this feature for a long time but you've already thought through it better than I have. I agree with what you say that you don't have to remove the item. In this issue I will use "pop paste" as the term because I can't think of a name for the other implementation/mode ("moving paste" ?). I see two cases where the time-based system would not be ideal: Another possibility is to have a shortcut turn "pop paste" mode on. When activated by this shortcut, copyQ would switch to a new tab that has two special properties set: FILO and "pop". Then, there are three possibilities for how the user transitions back from "pop paste" mode to normal mode: Any combination of the above three also makes sense. |
In v1.8.2 I've implemented shortcuts "Paste and copy next/previous" to paste current clipboard and copy next/previous item in history. This seems to be the simplest solution for now. It's very close to what you describe but every time you need to start popping items you have to open copyq (tray menu or main window) or use "Copy previous item" shortcut and select the item you want to start with. Having a new special tab when in "pop mode" could be quiet difficult to implement -- right now tabs don't have any properties or flags. Well, the "pop" tab could be just a normal tab with some fixed name and items could be added with a custom shortcut ( Unfortunately you'll have to remember to use the shortcut to copy instead of |
Thanks for implementing this. I can't seem to get it to work though. For me, "Paste and copy next" seems to be equivalent to "Copy next item" and same for "previous". Any ideas why the paste isn't getting executed/received? I've had this problem on Ubuntu 12.04 and 13.04. |
These new command actually only send What application is it? Does it work in any app? Other thing is that the "copy next/previous" can happen before the clipboard is pasted to target app. I've solved it with additional small wait interval after sending |
I was testing in Gedit. Shift+Insert works, but the paste from the "Paste and copy next" shortcut does nothing. In any case, you might have done everything you could. I guess a lot of this depends on the OS and the applications. Thank you for your work on this. |
OK, fixed. Some apps like You'll need So if you can, please test it and close this task if it works well. I hope it will, I hate X11 and especially the API :). |
It works great! It is much better than before. Thank you for sticking with this. This is a nice feature that I will use a lot and having to go to the menu to manually click where I want the starting point to be is not a problem for me at all. No more switching back and forth between applications to do mass copying! I will note one thing (after which I think this can be closed). It sounds like you expect the compile to work if
|
Oh, I'll fix that. Thanks for letting me know about this. |
If you have problems with shortcuts (e.g. system shortcuts not behaving correctly) let me know. Closing. |
You might have told me some other place, but currently cmake fails if libxtst-dev is not installed. A couple of comments up you suggest that this should not be the case. Is the policy now that it is required? I have no problem with this (I actually prefer it) but I just wanted to make sure that it is what you intended. |
Can you post the cmake output? I assume the culprit is commit 0a12ba7. |
I get the following output
I tested the commit before the one you suspect and I still get the error. |
That should be just a warning, i.e. it should continue after printing the message. Do you see any other error? Maybe with clean build? |
You are right. I suppose I was confused because of the Call Stack output and the only four lines output afterward. But yes, the exit code of cmake is 0. However, when doing a clean build I get:
|
Oh, I see. You can just remove the line for now ( |
Sounds good. Actually I prefer to install the package. Also, note that in |
OK, I've fixed those (using github's internal editor, yay!). |
Looks good. I like that you put descriptions for what the optional packages add. |
Suppose I want to copy a name, say
Bob Smith
, and an email, saybobsmith@...
from a document, intoa form that has three fields:
(1)
First Name
, (1)Last Name
, and (3)email
I would like to be able to copy
Bob
, then copySmith
, then copybobsmith@...
and then go to the form and paste one afterthe other. It would be nice if after I pasted one, it was deleted from
CopyQ so I don't even have to go to the history and select the next
one, it's already loaded and ready to go. I think a fitting name could
be "pop mode" where after you paste
something, that entry just pop's off.
Could this be done with native paste directly? If CopyQ does not own
the paste, then it could still be implemented by using a different
key-binding. That is to say, you could allow the user to pick a
key-binding (default to
ctrl+alt+v
?) that, when called, would use thesystem's paste function and then pop off the element in CopyQ.
The text was updated successfully, but these errors were encountered: