microsoft / microsoft/edit

Watch files for changes and reload them

Open
#219 1 comment 4 reactions 0 assignees View on GitHub
C-task E-help-wanted
Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

# 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).

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the editor's file-loading and keybinding handling, then determine whether the intended behavior is automatic reload, reload actions, or both. Done means the selected reload behavior is implemented without conflicting with the existing Replace shortcuts and is covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.