aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-05-15 13:28:57 +0200
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-05-15 13:28:57 +0200
commit8008d8300ea0a8de08069b7728781457412d6cc9 (patch)
tree3ecdf0ef237395bf774ac9c5391d75acbbbd55cd
parent3fca4f50b5fb25b8dfebd34d46a6a607b49eab0d (diff)
downloadscripts-8008d8300ea0a8de08069b7728781457412d6cc9.tar.gz
scripts-8008d8300ea0a8de08069b7728781457412d6cc9.zip
Added (actaully in previous commit) option to add to selection by filename.
Globbing actually always works (contrary to what claimed in previous comment) if the glob expression is quoted.
-rw-r--r--TODO2
-rwxr-xr-xsel10
2 files changed, 7 insertions, 5 deletions
diff --git a/TODO b/TODO
index 7523a93..f86b365 100644
--- a/TODO
+++ b/TODO
@@ -1,5 +1,3 @@
1* sel: fix globbing filenames with spaces; once done, remove "addall"
2
3* mblaze-extras: maybe remove script and just use aliases? 1* mblaze-extras: maybe remove script and just use aliases?
4 2
5* sfeed-browser: optionally just write link to stdout (or to xsel -i) 3* sfeed-browser: optionally just write link to stdout (or to xsel -i)
diff --git a/sel b/sel
index 5d057e8..518e697 100755
--- a/sel
+++ b/sel
@@ -18,9 +18,13 @@
18# TODO: The usage of paste(1) is a bit of a hack, and for example it does 18# TODO: The usage of paste(1) is a bit of a hack, and for example it does
19# not work if filenames contain tab characters. Fix this. 19# not work if filenames contain tab characters. Fix this.
20 20
21# Another TODO: add by filename does not work when globbing filenames with 21# Kinda bug, but it's fine: when using glob expressions, the expression must
22# space. E.g. sel add "a file.txt" works, but sel add *.txt does not. 22# be quoted when it matches filenames with spaces. For example
23# Why does this happen? 23# sel add *
24# works fine only if the are no filenames with spaces in the current folder;
25# on the other hand
26# sel add "*"
27# always works.
24 28
25# Bug (probably not fixing this, use virename): moving a file to 29# Bug (probably not fixing this, use virename): moving a file to
26# itself gives an error and rm is not run. 30# itself gives an error and rm is not run.

Generated with cgit - Back to sebastiano.tronto.net