CV: .filetags may contain mandatory options
novoid opened this issue · 3 comments
novoid commented
Controlled vocabulary files may contain a list of command line options that are mandatory.
Example: #options --recursive --filebrowser thunar
always uses functions recursive and opens results in thunar (instead of a different default browser).
FIXXME:
- What about contradicting CLI options?
- example 1:
--filebrowser thunar
in .filetags and--filebrowser geeqie
in command line? - example 2:
--tagtrees-depth 3
in .filetags and user just wants to tag a file (which does not allow/need tagtrees at all and results in an error)
- example 1:
tuxlifan commented
Yes, please!
ad ex.1: CLI options should win through higher specificity (with possibly a warning being displayed).
ad ex.2: filetags --tagtrees-depth 3 foo
seems to work without problem to just add a tag here? In case of conflicting modes I think that again CLI input should win as it signifies the current intent of the user.
jm2c