austenc/blade-spacer

spacer on save.

Closed this issue · 7 comments

ctf0 commented

can u also add the option so the plugin will add spaces on save if the {{}} doesn't have ?

Interesting idea, but I think this could cause some issues in corner cases. I'm also not a big fan of files automatically being modified (potentially in several places) on save. I'll think about it, but I'm leaning towards not including this.

ctf0 commented

how about u make just as an optional cmnd to be executed from the quick panel ,and this way for someone like me it would be just a matter of adding it to a hook if i want it to run on save or on whatever.

@ctf0 that's a great, non-intrusive way to handle it. I'll look into making this happen. Should have some time later this week to work on it.

ctf0 commented

sweet 👍

ctf0 commented

just incase someone was after the same ,using with hooks
blade_spacer_format_file wont work
instead
blade_spacer_format will ,once again thanx.

Oh, yep. I thought of adding a key binding but didn't want to interfere with any existing plugins / bindings. I meant to add something like that to the docs but it was late when I pushed that. :) Thanks for the idea, hope it helps you, cheers!

ctf0 commented

no prop ,its all good :).