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

Reread file when exiting editor invoked by e to see new changes automatically #638

Open
Joseph-D-Bradshaw opened this issue Aug 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Joseph-D-Bradshaw
Copy link

Is your feature request related to a problem? Please describe.
I find it a bit tedious that when I press e to edit a file, I edit the file in Neovim etc. And when I quit out, my file doesn't reflect the changes I just made to the file.

Describe the solution you'd like
I would like the file to reflect what I have just saved when I quit out of the editor, perhaps when returning focus to glow, it does a reread?

Describe alternatives you've considered
I can't really think of an alternative, I know watch is on the horizon, but it would be nice to have a hotkey to refresh the document or have glow refresh itself (both would be great honestly, so it can be reread if you edited the file from something not invoked by glow)

Additional context
I'm using neovim, so I guess this applies to anything defined by $EDITOR, I am not sure if this is generally applicable for external editors.

@Joseph-D-Bradshaw Joseph-D-Bradshaw added the enhancement New feature or request label Aug 22, 2024
@meowgorithm
Copy link
Member

Good catch. We should absolutely be doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants