edit icon indicating copy to clipboard operation
edit copied to clipboard

Watch files for changes and reload them

Open ankddev opened this issue 7 months ago • 1 comments

Description

I often edit files and then run linter/formatter in other terminal tab. Some editors automatically reload files from disk on changes, while others provide keybinding to do this. So, I want to see this functionality in Edit.

Possible solutions

  1. Automatically reload files on external changes
  2. Provide actions for this:
    • Add File -> Reload From Disk action and (maybe) keybinding
    • Add File -> Reload All From Disk action and (maybe) keybinding

Many editors use CTRL-R keybinding to reload files. I don't know which keybindings we can use since CTRL-R is already used for Replace and CTRL-SHIFT-R also calls it (#218).

ankddev avatar May 22 '25 11:05 ankddev

Ctrl+R is the same as backspace in the VT model, so we can't use it for a reload keybinding.

I think watching files for changes is easy enough to do and worth adding as a feature, so we should do that. I'm not sure about adding an action for reloading files, so perhaps that may come at a later time.

lhecker avatar May 22 '25 12:05 lhecker