edit only for head revision otherwise open as tempfile
#2.147 geöffnet am 22. März 2024
Repository-Metriken
- Stars
- (21.937 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 41T 9h) (6 gemergte PRs in 30 T)
Beschreibung
right now we show a edit [e] cmd for any file at any revision in file tree views. but we only open the file as it is currently on disk.
this means you don't see then what you expected when you looked at an old diff/revision. or worst case: the file is no longer present and will error.
we should only show edit [e] when you are at the head revision and otherwise two other options:
-
open [o]which will dump the revision of the file in a tempfile and open that -
go to head [g]to jump the that file in the current file-tree (if it present) -
is not as trivial and should probably be a separate issue (feel free to open that)