github unkn0wn-root/resterm v0.37.1

5 hours ago

New Keybindings in Editor

You can now enter insert mode using the full set of Vim keybindings:

  • i insert at cursor
  • a insert after cursor (append)
  • I insert at first non-blank character of line
  • A insert at end of line
  • o open a new line below and enter insert mode
  • O open a new line above and enter insert mode
  • s substitute (delete character under cursor and enter insert mode)
  • S substitute line (clear current line and enter insert mode)
  • C change to end of line (delete from cursor to end and enter insert mode)

New lines opened with o/O automatically inherit the indentation of the current line. Substituted and changed text is copied to the clipboard.

Open Files in External Editor

Press g e to open the current file in your preferred external editor. The editor is resolved from environment variables in this order:

  1. RESTERM_EDITOR
  2. VISUAL
  3. EDITOR

Set any of those in you config and restem will respect that. Quoted arguments and escape sequences are supported (e.g. RESTERM_EDITOR="code --wait). The editor command works from the file list, navigator and editor panels - whichever item is currently selected. If you have unsaved changes, a warning is shown since the external editor opens the on-disk version.

Auto-Reload on External File Changes

Files that change on disk are now automatically reloaded when the Resterm buffer is clean (no unsaved edits). When the buffer has unsaved changes and the file changes externally, a modal dialog explains the conflict and lets you choose to reload (discarding local changes) or dismiss and keep editing. If a watched file is deleted from disk, a warning modal appears and the current buffer is preserved.

Thanks @dlvhdr for inputs!

Don't miss a new resterm release

NewReleases is sending notifications on new releases.