Commit graph

10 commits

Author SHA1 Message Date
Ferenc Erki fdf156ef2f clipdel: Support getting pattern from standard input 2020-04-01 08:51:52 +02:00
Ferenc Erki 6612ade8b0 clipdel: Remove legacy comments 2020-03-29 20:18:40 +02:00
Chris Down f22fce7f04 Use a single line cache file
In c7c894a0, a per-selection line-cache was introduced in order to
overcome some of the limitations of clipmenu at the time (for example,
missing duplicate detection). However, now we have all the features we
need to have a single line cache again, and having multiple line caches
has caused more trouble than it is worth.

For example, maintaining CM_MAX_CLIPS globally is extremely cumbersome,
so we don't do it, and CM_MAX_CLIPS is actually acted on per-selection.
We also have had bugs where we perform actions on cache files without
properly consulting other line caches, and while those can be fixed, the
simplest thing to do now is just to go back to having a single line
cache.
2020-03-23 13:00:14 +00:00
Jordan Galby dc20b9c5ba Fix clipdel cutting timestamps from line cache files (#94)
Clipdel `cut`ed the timestamp column from the line cache files.

For the end-user, it fixes clipdel apparently re-ordering clipmenu
entries.
2019-04-28 09:18:59 +02:00
Jordan Galby ec86549ee7 Fix clipdel escaped only first '#' (#95)
Now escapes all occurrences of '#' in clipdel pattern.
2018-11-12 13:22:28 +00:00
Chris Down 7c3bd5060a Do $PATH lookup for bash 2018-10-31 08:12:09 +00:00
Chris Down a77c2731ba clipdel: Don't take "-d" as the pattern if only "-d" was passed 2018-04-22 10:19:25 +01:00
Chris Down 7f06b56775 clipdel: Give more helpful message if we didn't provide a pattern 2018-04-22 10:17:49 +01:00
Chris Down 0b003d4ad2 Fix errant handling of specific-file deletion 2018-03-11 20:24:37 -04:00
Chris Down 72760da7a4 Add clipdel utility 2018-03-11 20:21:00 -04:00