Vlad You and @seventhwave are right, I just looked at what DDG does but didn't think it through, using a bang for settings is not orthogonal and has the same problem as for regions.
Ok looking at boolean options: I think you would need a way to turn them off as well as on, right? I see the syntax o:verbatim
works well to turn it on, but do you want to give users the ability to disable it as well? In which case what would you use? o:noverbatim
or o:verbatimoff
... ?
So my idea is to have variable_name:value
, for booleans the values are on
and off
.
So we have one boolean option, safe search, which is a toggle in the settings. For this we have:
safe:on
safe:off
Then we have named drop-down menus in the search interface, e.g. time. For this we have:
time:24h
time:week
time:month
time:year
Verbatim is interesting because it could be a boolean but it exists as a drop-down with two options. Is this so Kagi can add a third option later? Anyway to match the interface we'd have:
results:all
results:verbatim
But if it really is a boolean you could equally have:
verbatim:on
verbatim:off