Commit 16410ac
committed
res/void-docs: don't show picker for only 1 result
Makes for weird UX. This was implemented for fzf and skim with their
'-1' flag, but it's pretty simple to add a general implementation that
works for all pickers, including pick(1), which is what we ship with the
void-docs-browse package. In addition, we can simplify the code by
using head(1) as the fallback 'picker'.
Bug reported and fixed by mason from IRC.1 parent 304990b commit 16410ac
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
0 commit comments