Skip to content
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

Feature Request: Show Date and/or Time at entries #40

Open
audaki opened this issue Mar 1, 2022 · 11 comments
Open

Feature Request: Show Date and/or Time at entries #40

audaki opened this issue Mar 1, 2022 · 11 comments
Labels
enhancement New feature or request help wanted Extra attention is needed maybe

Comments

@audaki
Copy link

audaki commented Mar 1, 2022

Great library, great addition to gnome!

As a feature request idea for the future: It would be really helpful for us if you could (as an option) see when the entries were copied. Often enough you know something like: "Yesterday afternoon I copied this token" and with this feature you could much more easily find entries like that while traversing the pagination.

@audaki audaki added the enhancement New feature or request label Mar 1, 2022
@SUPERCILEX
Copy link
Owner

It sounds to me like what you're after is search filters, or just filters in general. So for example, show me entries within this date range. Is that correct?

@Yorucode
Copy link

Yorucode commented Mar 3, 2022

I use the extension as well and sometimes I want to know if I copied someting. So for example it was around 2pm and I try to find it again. I copy a lot of stuff, sometimes the same multiple times on diffrent days. Something like a timpestamp would be enough for me when searching. So if there is no entry with a timestamp from that time I forgot to copy it.

@audaki
Copy link
Author

audaki commented Mar 3, 2022

To add here: I think I'd be too lazy to use the date/time-range filter, in most cases I find the entry in 60 seconds. With a date/time-column I'd probably find it in 15-30 seconds. Setting up a time-range filter would probably take more time than it would save.

Do you know how the Windows Download folder looks like? With divided parts for time "sessions". That for example is amazing and helps a lot with finding a file I downloaded.

Or for example when I look into my Browser History:

image

This also helps a lot with finding the website I visited in the past

rgds, Kira

@audaki audaki changed the title Feature Request: Show Date (and maybe Timestamp) at entries Feature Request: Show Date and/or Time at entries Mar 10, 2022
@audaki
Copy link
Author

audaki commented Mar 10, 2022

Since probably a lot of people don't use Windows here's an example what I meant in the Windows Download Folder:

image

or

image

Just sections like these would help so so much

@audaki
Copy link
Author

audaki commented Mar 10, 2022

And Firefox history offers both (as another example), you can select a time range left (but without having to select a time-range for a filter) and it (can) show the last visit in a column

image

auto-magic groupings like in Windows download folder or auto-magic filter like in the left side of the Firefox history would also be sufficient and I would use them a lot.

@SUPERCILEX Do you accept pull-requests theoretically? In case I have some time and would like to try to implement this myself

@SUPERCILEX
Copy link
Owner

Thank you for those examples! What you're asking for makes a lot more sense now. :)

I'm happy to accept a PR that does the UI work for this with hard coded dates and I can do the database stuff (unless you want to do that too). The hard part will be dealing with pagination: you'll need to dynamically add and remove section headers as the user goes through pages.

@SUPERCILEX
Copy link
Owner

I received an out-of-band request for this that had a simpler idea: just store the string representation of the time in the copied entry itself. Then when we paste we'd have to strip that prefix text. Something along those lines behind a settings option should be relatively easy to implement if anyone wants to take it up.

@thespencerjones
Copy link

Supercilex,
I think I was unclear in my email about a "date/time stamp". Probably the word "stamp" was misleading. I meant to request a feature where GCH can simply paste the date and/or time into whatever document I am working in. The other clipboard manager that I mentioned in my email has this as one of its menu options, similar to what I contrived in the included picture.

I use this function frequently in my journal, documentation, and file names. On the Vanilla OS forum they suggested I use the Gnome Settings > Keyboard > Keyboard Shortcuts > Custom Shortcuts function, but I could not figure out how to do that.

I think the feature requested by audaki for having the menu of entries include a date/time stamp is also a great idea, though I use the search bar at the top most often, especially for my saved entries I use repetitively.

As far as my contributing a "PR" to help with the programming of all of this..... LOL to that! Below is the extent so far of my programming skills (though I would be glad to contribute using my strengths of proofreading and checking documentation for clarity). Thanks again for your service to the computing world!

spence@dellvanos-dsj:$ date-time.sh
spence@dellvanos-dsj:$ wl-paste
2024-04-16 20:04:08.
spence@dellvanos-dsj:$ date-time.sh
/home/spence/my-bin/date-time.sh: line 5: clipboard-history: command not found
spence@dellvanos-dsj:$ wl-paste -pw wl-copy
Watch mode requires a compositor that supports wlroots data-control protocol
spence@dellvanos-dsj:$ date-time.sh
spence@dellvanos-dsj:$ wl-paste
2024-04-16 20:26:40.
spence@dellvanos-dsj:$ date-time.sh
2024-04-16 20:26:40.
spence@dellvanos-dsj:$ date-time.sh
2024-04-17 09:35:07.
spence@dellvanos-dsj:~$ wl-paste
2024-04-17 09:35:07.
GCH menu paste date time 2024-04-17 14-06-45

@SUPERCILEX
Copy link
Owner

Ohhhhh, I get it. This is really easy actually: create a custom shortcut with this command bash -c 'date +"%T" | tr -d "\n" | xclip -sel clip' for the time and another one bash -c 'date +"%D" | tr -d "\n" | xclip -sel clip' for the date. Now the date/time are in your clipboard and you can paste them as usual. You'll need to sudo apt install xclip and you can man date for all the formatting options.

@thespencerjones
Copy link

I figured out how to do it myself finally, shortly before your reply, using wl-clipboard. Is there any advantage to using xclip instead? I saw it during my search but was afraid it wouldn't work smoothly in Wayland.
Thanks!!!

Ohhhhh, I get it. This is really easy actually: create a custom shortcut with this command bash -c 'date +"%T" | tr -d "\n" | xclip -sel clip' for the time and another one bash -c 'date +"%D" | tr -d "\n" | xclip -sel clip' for the date. Now the date/time are in your clipboard and you can paste them as usual. You'll need to sudo apt install xclip and you can man date for all the formatting options.

@SUPERCILEX
Copy link
Owner

Nah, shouldn't really matter as long as ot works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed maybe
Projects
None yet
Development

No branches or pull requests

4 participants