vimsheet.command_completer

Tab-completion engine for command mode.

Completion contexts

  1. Command name :w<tab> :fetch<tab>

  2. File / path arg :w /tmp/<tab> :e ./dat<tab>

  3. Range + command :A1:B5 fetch<tab> :A1 sort<tab>

  4. Formula function =@SU<tab> (inside insert/edit buffer)

  5. Sheet name :delsheet <tab> :renamesheet <tab>

  6. Theme name :load theme <tab>

  7. Sort order :sort A <tab>

  8. Plot type :plot <tab>

class vimsheet.command_completer.CommandCompleter(app)[source]

Bases: object

Stateful tab completer for the command buffer.

Call tab() each time Tab is pressed; call reset() on any non-Tab key so the next Tab re-analyses the current buffer.

Parameters:

app (VimSheetApp)

__init__(app)[source]
Parameters:

app (VimSheetApp)

Return type:

None

reset()[source]
Return type:

None

tab(buf)[source]

Return the next completed buffer, cycling on repeated presses.

Parameters:

buf (str)

Return type:

str