Comments (11)
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.
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.
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.
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:
This also helps a lot with finding the website I visited in the past
rgds, Kira
from gnome-clipboard-history.
Since probably a lot of people don't use Windows here's an example what I meant in the Windows Download Folder:
or
Just sections like these would help so so much
from gnome-clipboard-history.
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
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.
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.
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.
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.
from gnome-clipboard-history.
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 onebash -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 tosudo apt install xclip
and you canman date
for all the formatting options.
from gnome-clipboard-history.
Nah, shouldn't really matter as long as ot works.
from gnome-clipboard-history.
Related Issues (20)
- Couldn't open settings HOT 1
- Search box getting cut off. HOT 1
- Focus the 2nd last when using the menu shortcut HOT 1
- Clipboard history HOT 1
- Port to ESM (gnome 45 support) HOT 3
- Gnome 45 support? HOT 1
- Paste on selet HOT 1
- No history shown HOT 8
- Add image clipboard history HOT 3
- Cannot open clipboard panel HOT 4
- automatically clear history HOT 1
- Desktop logs out by itself HOT 1
- Suddenly content dissapear from the clipboard HOT 3
- χ ("Chi") is pasted instead of selected entry HOT 10
- Can't turn off "process primary selection" HOT 10
- Breaks on Gnome 46 HOT 19
- cant disable any keyboard shortcut HOT 2
- [BUG] Upgrading to GNOME 46 breaks the extension (version mismatch ?) HOT 5
- Deleted history
- Support GNOME Shell 3.36.9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-clipboard-history.