On Fri, Mar 13, 2015 at 6:04 PM, Edward K. Ream <[email protected]> wrote:

>
> There is a smarter way to do this:  sort the candidates (by hand) by
> destination node (in the Reference) before moving them.  I can then move
> each group en masse to its single destination node, and then fold each
> member of the group into the text.
>

​This worked well.

And then I had the idea to compare all the nodes created by the script
"Print commands & docstrings" with all the command-names in the Commands
Reference.  This is another check that all commands have been documented::

    @language python
    g.cls()
    ref = p.next()
    assert ref.h == 'Commands Reference'
    found, not_found = [],[]
    child = p.firstChild()
    for group in child.children():
        for p in group.children():
            target = p.h
            for p2 in ref.subtree():
                s = p2.b
                if s.find(target) > -1:
                    found.append(target)
                    break
            else:
                not_found.append(target)
    if 0:
        print('===== %s Found =====' % len(found))
        for z in sorted(found):
            print(z)
    if 1:
        print('===== %s Not Found =====' % len(not_found))
        for z in sorted(not_found):
            print(z)
    print('found: %s not found: %s' % (len(found),len(not_found))​


​Here is the output:

​===== 537 Not Found =====
:!
:%s
:e
:e!
:gT
:gt
:print-dot
:q
:q!
:qa
:r
:s
:tabnew
:toggle-vim-mode
:toggle-vim-trace
:toggle-vim-trainer-mode
:w
:wq
:xa
@button-jedit2py
@button-replace-g-choose
@button-write-unit-tests
@command-align-eq-signs
@command-c-to-python-clean-docs
@command-clean-all-blank-lines
@command-clean-body
@command-clean-diff
@command-clean-spellpyx
@command-count-pages
@command-create-@auto-nodes
@command-create-def-list
@command-do-after
@command-do-before
@command-flatten-script
@command-join-node-above
@command-join-node-below
@command-join-selection-to-node-below
@command-load-all-leo-files
@command-make-test
@command-preview-node
@command-preview-tree
@command-print-cmd-docstrings
@command-promote-bodies
@command-remove-newlines
@command-split-defs
abbrev-add-global
abbrev-inverse-add-global
abbrev-kill-all
abbrev-list
abbrev-read
abbrev-write
abort-edit-headline
act-on-node
advertised-undo
align-eq-signs
at-file-to-at-auto
auto-complete
auto-complete-force
back-char
back-char-extend-selection
back-page
back-page-extend-selection
back-paragraph
back-paragraph-extend-selection
back-sentence
back-sentence-extend-selection
back-to-home
back-to-home-extend-selection
back-to-indentation
back-word-extend-selection
backward-delete-char
backward-find-character
backward-find-character-extend-selection
backward-kill-paragraph
backward-kill-sentence
backward-kill-word
beginning-of-buffer
beginning-of-buffer-extend-selection
beginning-of-line
beginning-of-line-extend-selection
bookmarks-bookmark
bookmarks-bookmark-child
bookmarks-level-decrease
bookmarks-level-increase
bookmarks-mark-as-target
bookmarks-open-bookmark
bookmarks-open-node
bookmarks-show
bookmarks-switch
bookmarks-use-other-outline
buffer-append-to
buffer-kill
buffer-prepend-to
buffer-switch-to
buffers-list
buffers-list-alphabetically
c-to-python
c-to-python-clean-docs
capitalize-word
cascade-windows
center-line
center-region
chapter-convert-node-to
chapter-create-from-node
chapter-rename
check-derived-file
check-leo-file
cke-text-close
cke-text-open
cke-text-switch
cke-text-toggle-autosave
clean-all-blank-lines
clean-body
clean-diff
clean-persistence
clean-recent-files
clean-spellpyx
clear-all-caches
clear-all-uas
clear-cache
clear-extend-mode
clear-kill-ring
clear-node-uas
clone-node-to-last-node
close-others
cls
cm-external-editor
code-to-rst
context-menu-open
contract-all-other-nodes
contract-parent
count-pages
count-region
create-@auto-nodes
create-def-list
ctrl-click-at-cursor
ctrl-click-icon
cycle-focus
cycle-log-focus
dabbrev-completion
dabbrev-expands
de-hoist
delete-@button-jedit2py-button
delete-@button-replace-g-choose-button
delete-@button-write-unit-tests-button
delete-char
delete-first-icon
delete-indentation
delete-last-icon
delete-node-icons
delete-script-button-button
delete-spaces
detach-editor-toggle
detach-editor-toggle-max
digit-argument
directory-make
directory-remove
disable-autocompleter
disable-calltips
do-after
do-before
do-nothing
downcase-region
downcase-word
dump-outline
edit-headline
enable-autocompleter
enable-calltips
end-edit-headline
end-of-buffer
end-of-buffer-extend-selection
end-of-line
end-of-line-extend-selection
enter-quick-command-mode
equal-sized-panes
escape
eval-expression
exchange-point-mark
exit-named-mode
expand-all-subheads
expand-ancestors-only
expand-next-level
expand-or-go-right
expand-prev-level
expand-to-level-1
expand-to-level-2
expand-to-level-3
expand-to-level-4
expand-to-level-5
expand-to-level-6
expand-to-level-7
expand-to-level-8
expand-to-level-9
export-headlines
extend-to-line
extend-to-paragraph
extend-to-sentence
extend-to-word
file-compare-leo-files
file-delete
file-diff-files
file-insert
file-open-by-name
file-save
fill-paragraph
fill-region
fill-region-as-paragraph
find-character
find-character-extend-selection
find-clone-all
find-clone-all-flattened
find-next-clone
find-quick
find-quick-changed
find-quick-selected
find-quick-test-failures
find-quick-timeline
find-tab-hide
find-tab-open
find-word-in-line
flatten-script
flush-lines
focus-to-body
focus-to-find
focus-to-log
focus-to-minibuffer
focus-to-nav
focus-to-tree
forward-char
forward-char-extend-selection
forward-end-word
forward-end-word-extend-selection
forward-page
forward-page-extend-selection
forward-paragraph
forward-paragraph-extend-selection
forward-sentence
forward-sentence-extend-selection
forward-word-extend-selection
free-layout-context-menu
free-layout-load
free-layout-load-alternate
free-layout-load-detached-body
free-layout-load-no-log
free-layout-load-standard
free-layout-restore
free-layout-zoom
full-command
gc-collect-garbage
gc-dump-all-objects
gc-dump-new-objects
gc-dump-objects-verbose
gc-print-summary
gc-trace-disable
gc-trace-enable
global-search
go-back
go-forward
goto-char
goto-first-node
goto-first-visible-node
goto-last-node
goto-last-visible-node
goto-line
goto-next-changed
goto-next-clone
goto-next-history-node
goto-next-node
goto-next-sibling
goto-next-visible
goto-parent
goto-prev-history-node
goto-prev-node
goto-prev-sibling
goto-prev-visible
gui-all-hide
gui-all-show
gui-all-toggle
gui-iconbar-hide
gui-iconbar-show
gui-iconbar-toggle
gui-menu-hide
gui-menu-show
gui-menu-toggle
gui-minibuffer-hide
gui-minibuffer-show
gui-minibuffer-toggle
gui-statusbar-hide
gui-statusbar-show
gui-statusbar-toggle
gui-tabbar-hide
gui-tabbar-show
gui-tabbar-toggle
hide-invisibles
hide-spell-tab
history
how-many
iconify-frame
import-zim-folder
indent-relative
indent-rigidly
indent-to-comment-column
insert-child
insert-file-name
insert-hard-tab
insert-icon
insert-newline
insert-parentheses
insert-soft-tab
jedit2py
join-leo-irc
join-node-above
join-node-below
join-selection-to-node-below
keep-lines
keyboard-quit
kill-line
kill-paragraph
kill-region
kill-region-save
kill-sentence
kill-to-end-of-line
kill-word
kill-ws
line-number
load-all-leo-files
macro-call
macro-call-last
macro-end-recording
macro-load-all
macro-name-last
macro-print-all
macro-print-last
macro-save-all
macro-start-recording
make-test
menu-shortcut
minimize-all
mode-help
move-lines-down
move-lines-up
move-past-close
move-past-close-extend-selection
negative-argument
newline-and-indent
next-line
next-line-extend-selection
number-command
number-command-0
number-command-1
number-command-2
number-command-3
number-command-4
number-command-5
number-command-6
number-command-7
number-command-8
number-command-9
open-local-settings
open-myLeoSettings-leo
open-offline-tutorial
open-python-window
open-quickstart-leo
open-scripts-leo
open-spell-tab
open-url
open-url-under-cursor
open-users-guide
open-with-idle
open-with-open office
open-with-scite
open-with-word
parse-body
pdb
preview
preview-node
preview-tree
previous-line
previous-line-extend-selection
print-all-uas
print-cmd-docstrings
print-expanded-node
print-expanded-node-body
print-focus
print-marked-node-bodies
print-marked-nodes
print-node-uas
print-plugin-handlers
print-plugins-info
print-preview-expanded-node
print-preview-expanded-node-body
print-preview-marked-node-bodies
print-preview-marked-nodes
print-preview-selected-node
print-preview-selected-node-body
print-preview-selected-node-body-html
print-selected-node
print-selected-node-body
print-selected-node-body-html
print-settings
print-style-sheet
promote-bodies
read-at-auto-nodes
read-at-shadow-nodes
rectangle-clear
rectangle-close
rectangle-delete
rectangle-kill
rectangle-open
rectangle-string
rectangle-yank
refresh-from-disk
register-append-to
register-copy-rectangle-to
register-copy-to
register-increment
register-insert
register-jump-to
register-point-to
register-prepend-to
register-view
remove-blank-lines
remove-newlines
repeat-complex-command
replace-current-character
replace-g-choose
resize-to-screen
reverse-region
reverse-sort-lines
reverse-sort-lines-ignoring-case
richtext-close-editor
richtext-open-editor
richtext-switch-editor
richtext-toggle-autosave
rst3
save-all
save-buffers-kill-leo
script-button
scroll-down-half-page
scroll-down-line
scroll-down-page
scroll-outline-left
scroll-outline-right
scroll-up-half-page
scroll-up-line
scroll-up-page
select-to-matching-bracket
self-insert-command
session-clear
session-create
session-refresh
session-restore
session-snapshot-load
session-snapshot-save
set-colors
set-command-state
set-comment-column
set-extend-mode
set-fill-column
set-fill-prefix
set-font
set-insert-state
set-overwrite-state
set-replace-string
set-search-string
set-silent-mode
set-ua
shell-command
shell-command-on-region
show-calltips
show-calltips-force
show-colors
show-find-options
show-fonts
show-invisibles
sort-children
sort-columns
sort-fields
sort-lines
sort-lines-ignoring-case
sort-recent-files
sort-siblings
split-defs
split-line
style-set-selected
suspend
tab-cycle-next
tab-cycle-previous
tab-detach
tabify
tangle
tangle-all
tangle-marked
toggle-abbrev-mode
toggle-active-pane
toggle-autocompleter
toggle-calltips
toggle-case-region
toggle-extend-mode
toggle-find-collapses-nodes
toggle-input-state
toggle-invisibles
toggle-sparse-move
toggle-split-direction
transpose-chars
transpose-lines
transpose-words
typescript-to-py
universal-argument
unmark-all
untabify
untangle
untangle-all
untangle-marked
upcase-region
upcase-word
view-lossage
vr
vr-contract
vr-expand
vr-hide
vr-lock
vr-pause-play-movie
vr-show
vr-toggle
vr-unlock
vr-update
what-line
write-at-auto-nodes
write-at-shadow-nodes
write-dirty-at-auto-nodes
write-dirty-at-shadow-nodes
write-missing-at-file-nodes
write-unit-tests
yank
yank-pop
zap-to-character
found: 238 not found: 537

So there is a bit more work to do :-)

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to