Clean up listener tool
parent
00fad429b5
commit
70a60ef237
|
@ -15,7 +15,7 @@ IN: ui.tools.listener
|
||||||
TUPLE: listener-gadget < track input output scroller ;
|
TUPLE: listener-gadget < track input output scroller ;
|
||||||
|
|
||||||
: listener-streams ( listener -- input output )
|
: listener-streams ( listener -- input output )
|
||||||
[ input>> ] [ output>> <pane-stream> ] bi ;
|
[ input>> ] [ output>> ] bi <pane-stream> ;
|
||||||
|
|
||||||
: <listener-input> ( listener -- gadget )
|
: <listener-input> ( listener -- gadget )
|
||||||
output>> <pane-stream> <interactor> ;
|
output>> <pane-stream> <interactor> ;
|
||||||
|
@ -80,14 +80,14 @@ M: listener-operation invoke-command ( target command -- )
|
||||||
|
|
||||||
GENERIC: word-completion-string ( word -- string )
|
GENERIC: word-completion-string ( word -- string )
|
||||||
|
|
||||||
M: word word-completion-string
|
M: word word-completion-string name>> ;
|
||||||
name>> ;
|
|
||||||
|
|
||||||
M: method-body word-completion-string
|
: method-completion-string ( word -- string )
|
||||||
"method-generic" word-prop word-completion-string ;
|
"method-generic" word-prop word-completion-string ;
|
||||||
|
|
||||||
M: engine-word word-completion-string
|
M: method-body word-completion-string method-completion-string ;
|
||||||
"engine-generic" word-prop word-completion-string ;
|
|
||||||
|
M: engine-word word-completion-string method-completion-string ;
|
||||||
|
|
||||||
: use-if-necessary ( word seq -- )
|
: use-if-necessary ( word seq -- )
|
||||||
over vocabulary>> over and [
|
over vocabulary>> over and [
|
||||||
|
|
Loading…
Reference in New Issue