Reduce to only one command
Closed this issue · 2 comments
FichteFoll commented
From: http://www.sublimetext.com/forum/viewtopic.php?p=49635#p49635
I suggest an on_pre_save
handler that creates the dir if the save location set in a specific setting (set when opening the view via this command) is the same as view.file_name()
. This would reduce the need of 2 separate commands because now you can just save the file if you want to and it will only then create the dirs automatically (to not make ST spit errors).
skuroda commented
Good idea, I really should use those event listeners more. Also thanks for creating an issue for it. Always easier to keep track of issues here rather than in a forum post on the ST page.