editor.auto-save.focus-lost should save when using ctrl+z to put helix in the background #11821
Answered
by
the-mikedavis
robinmoussu
asked this question in
Ideas
-
I was trying to set-up file autosave, and discovered when reading #2542 that you can save file automatically when helix lose focus. I would have expected that using ctrl+z (to put helix in the background) would be considered as a "focus lost" event, and thus my files would be saved. |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Oct 3, 2024
Replies: 1 comment
-
The focus lost event is about the terminal emulator window or pane rather than the application within. You should be able to rebind [keys.normal]
C-z = [":write-all", "suspend"] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robinmoussu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The focus lost event is about the terminal emulator window or pane rather than the application within. You should be able to rebind
C-z
to save and then suspend though: