Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit only for head revision otherwise open as tempfile #2147

Open
extrawurst opened this issue Mar 22, 2024 · 0 comments
Open

edit only for head revision otherwise open as tempfile #2147

extrawurst opened this issue Mar 22, 2024 · 0 comments
Labels

Comments

@extrawurst
Copy link
Owner

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)

  3. is not as trivial and should probably be a separate issue (feel free to open that)

@extrawurst extrawurst changed the title edit only for head revision otherwise open as temple edit only for head revision otherwise open as tempfile Mar 22, 2024
@extrawurst extrawurst added the good first issue Good for newcomers label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant