Giter Club home page Giter Club logo

Comments (11)

SUPERCILEX avatar SUPERCILEX commented on May 24, 2024 1

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.

from gnome-clipboard-history.

SUPERCILEX avatar SUPERCILEX commented on May 24, 2024

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?

from gnome-clipboard-history.

Yorucode avatar Yorucode commented on May 24, 2024

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.

from gnome-clipboard-history.

audaki avatar audaki commented on May 24, 2024

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

from gnome-clipboard-history.

audaki avatar audaki commented on May 24, 2024

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

from gnome-clipboard-history.

audaki avatar audaki commented on May 24, 2024

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

from gnome-clipboard-history.

SUPERCILEX avatar SUPERCILEX commented on May 24, 2024

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.

from gnome-clipboard-history.

SUPERCILEX avatar SUPERCILEX commented on May 24, 2024

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.

from gnome-clipboard-history.

thespencerjones avatar thespencerjones commented on May 24, 2024

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

from gnome-clipboard-history.

thespencerjones avatar thespencerjones commented on May 24, 2024

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.

from gnome-clipboard-history.

SUPERCILEX avatar SUPERCILEX commented on May 24, 2024

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

from gnome-clipboard-history.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.