Feature request: Add a "save before run" option to tasks #35728
Sevrain1
started this conversation in
Config, Settings and Keymaps
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a task that runs the current
ZED_FILEI'm working on (a Python file in my case).I also have
"autosave": "on_focus_change"set.The problem is that if I make changes to the file and then select
Rerun Last Task, the task will run the older version of the file, and not the modified buffer.Only if I choose,
Rerun last Taskagain, will Zed save/run the actual file with the changes I've made.This is quite annoying, and forces the user to needlessly run the same task twice. This is especially frustrating when the changes made to the code affect a part of the program that is only executed and visible at later stages.
Seems to me that if a user goes to the trouble of running a file, they aren't interested in running an older version of it. What's the use case for that?
I suggest adding a
save file/save before run/etc.option to tasks to solve this issue so that tasks run the actual content of files.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions