The focus-object-table now lives in nuit-eval.
This commit is contained in:
parent
30b59e1e72
commit
53ed9fc721
|
@ -18,3 +18,12 @@
|
||||||
(map (lambda (file)
|
(map (lambda (file)
|
||||||
(make-fs-object file abs-dir))
|
(make-fs-object file abs-dir))
|
||||||
(scsh-directory-files abs-dir dotfiles?)))))
|
(scsh-directory-files abs-dir dotfiles?)))))
|
||||||
|
|
||||||
|
(define *focus-table* (make-empty-focus-table))
|
||||||
|
|
||||||
|
(define (focus-table)
|
||||||
|
*focus-table*)
|
||||||
|
|
||||||
|
(define (focus-value id)
|
||||||
|
(get-focus-object (focus-table) id))
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,6 @@
|
||||||
(define executable-completions-lock (make-lock))
|
(define executable-completions-lock (make-lock))
|
||||||
(define executable-completions #f)
|
(define executable-completions #f)
|
||||||
|
|
||||||
(define focus-table (make-empty-focus-table))
|
|
||||||
|
|
||||||
(define key-control-x 24)
|
(define key-control-x 24)
|
||||||
(define key-o 111)
|
(define key-o 111)
|
||||||
(define key-tab 9)
|
(define key-tab 9)
|
||||||
|
@ -295,7 +293,7 @@
|
||||||
(add-string-to-command-buffer
|
(add-string-to-command-buffer
|
||||||
(if (command-buffer-in-command-mode?)
|
(if (command-buffer-in-command-mode?)
|
||||||
(send (current-viewer) 'get-selection (command-buffer-in-scheme-mode?))
|
(send (current-viewer) 'get-selection (command-buffer-in-scheme-mode?))
|
||||||
(send (current-viewer) 'get-focus-object focus-table)))
|
(send (current-viewer) 'get-focus-object (focus-table))))
|
||||||
(print-command-buffer (app-window-curses-win command-window)
|
(print-command-buffer (app-window-curses-win command-window)
|
||||||
command-buffer)
|
command-buffer)
|
||||||
(move-cursor command-buffer result-buffer)
|
(move-cursor command-buffer result-buffer)
|
||||||
|
|
|
@ -234,12 +234,18 @@
|
||||||
;;; nuit evaluates the expressions entered into command buffer in this
|
;;; nuit evaluates the expressions entered into command buffer in this
|
||||||
;;; package
|
;;; package
|
||||||
|
|
||||||
(define-structure nuit-eval (interface-of scheme-with-scsh)
|
(define-structures
|
||||||
|
((nuit-eval (compound-interface
|
||||||
|
(interface-of scheme-with-scsh)
|
||||||
|
(export focus-value)))
|
||||||
|
(nuit-eval/focus-table (export focus-table)))
|
||||||
(open
|
(open
|
||||||
(modify scheme-with-scsh
|
(modify scheme-with-scsh
|
||||||
(rename (directory-files scsh-directory-files)))
|
(rename (directory-files scsh-directory-files)))
|
||||||
let-opt
|
let-opt
|
||||||
srfi-1
|
srfi-1
|
||||||
|
|
||||||
|
focus-table
|
||||||
fs-object
|
fs-object
|
||||||
pps)
|
pps)
|
||||||
(files eval))
|
(files eval))
|
||||||
|
@ -341,6 +347,7 @@
|
||||||
tty-debug
|
tty-debug
|
||||||
|
|
||||||
focus-table
|
focus-table
|
||||||
|
nuit-eval/focus-table
|
||||||
fs-object
|
fs-object
|
||||||
objects
|
objects
|
||||||
plugin
|
plugin
|
||||||
|
|
Loading…
Reference in New Issue