edit only for head revision otherwise open as tempfile
- Ngôn ngữ chính
- Rust
- Star
- 22.5k
- Fork
- 773
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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:
1. `open [o]` which will dump the revision of the file in a tempfile and open that
2. `go to head [g]` to jump the that file in the current file-tree (if it present)
2. is not as trivial and should probably be a separate issue (feel free to open that)
Hướng dẫn đóng góp
Hướng nghiên cứu
Start in the file-tree view handling for the existing `edit [e]` command and trace how a selected revision is opened. Limit the change to showing edit only at the head revision and opening older revisions through the proposed `open [o]` tempfile behavior; treat `go to head [g]` as separate work. Done means old revisions open successfully without depending on the current on-disk file.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- git, rust
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100