mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
shoe: print tab options less eagerly
Turns out that having these pop up on every tab-press is really annoying, and you usually only want them when it didn't manage to autocomplete anything.
This commit is contained in:
parent
a6f09727ef
commit
d4b4fe67f3
@ -267,7 +267,6 @@
|
||||
[%det clear]
|
||||
==
|
||||
::
|
||||
::NOTE cargo-culted
|
||||
++ tab
|
||||
|= pos=@ud
|
||||
^- (quip card _cli-state)
|
||||
@ -287,7 +286,9 @@
|
||||
%+ add pos
|
||||
(met 3 (fall forward ''))
|
||||
=| cards=(list card)
|
||||
=? cards ?=(^ options)
|
||||
:: only render the option list if we couldn't complete anything
|
||||
::
|
||||
=? cards &(?=(~ to-send) ?=(^ options))
|
||||
[(effect %tab options) cards]
|
||||
|- ^- (quip card _cli-state)
|
||||
?~ to-send
|
||||
|
Loading…
Reference in New Issue
Block a user