55f316f028
- Move Command enum to commands/mod.rs with NAMES, from_name, takes_path_arg - Replace manual match in CommandAPI::execute with Command::from_name - Derive canonical names for completion from Command::NAMES (first per variant) - Simplify complete() to use Command::takes_path_arg instead of complete_path_arg - Fix bug: 'h' was incorrectly listed as alias for both help and finder
1.6 KiB
1.6 KiB
TODO
Bugs
- typing a tab literal is jacked up, fix
Input options
- need to implement expandtab option
EditorAction Improvements
- Have the colon character pop up a command palette window
- General refactor of EditorAction type
- HidePane should probably not do buffer manipulation itself
- Individual actions for inserting/deleting large amounts of text?
- On save, a status message should be displayed, using the same EditorAction framework
AddOverlayaction is defined and handled but never constructed externally — wire it up so commands and scripts can emit overlays via the action systemPanePosition::Main { tab }field is unused — implement tab ordering for the main editing areaOverlayLifetime::Persistentis unused — use it for long-lived status indicators (e.g. unsaved-changes marker, read-only indicator)
Help
- Make help text more sophisticated — dynamically generated from keybindings and command definitions rather than a static string; could include sections for current mode, available commands with their aliases, and key bindings
Styling
Themeis never constructed — wireTheme::default_theme()into the renderer soStyleNamevariants resolve to actualTextAttrsinstead of being looked up at each call siteStyleName::Error,Warning,Hint, andDefaultvariants are unused — use them for command output errors, LSP diagnostics, and default buffer text once the theme is wired upColorandTextAttrsare unused — these become live once the renderer usesTheme::resolve()to translateStyleNameto terminal attributes