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

Empty line below snippet? #18

Open
peteruithoven opened this issue Jan 14, 2015 · 3 comments
Open

Empty line below snippet? #18

peteruithoven opened this issue Jan 14, 2015 · 3 comments

Comments

@peteruithoven
Copy link

Currently a empty line is added below the snippet. Shouldn't this be optional somehow?
Shouldn't adding the empty line below be dependent on the content of the snippet? If there is a empty line in the snippet it's added and otherwise it's not?

@zaggino
Copy link
Member

zaggino commented Jan 14, 2015

Current state should be that it adds an empty line only in a case that next line is non-empty to prevent double empty lines. We could make this optional through meta-data but from my usage it seemed like a best solution.

@zaggino
Copy link
Member

zaggino commented Feb 3, 2015

Note to self: add meta attribute inline which would disable adding any lines after the snippets

@rhbecker
Copy link

FWIW, I +one this request and would prefer a combination of what you are both saying (pseudo code):

if ( !metatag.inline && nextLine.notEmpty) { addLineBreak(); }

In case it's helpful, my use case is for a "task" snippet - i.e. a shortcut to add TODO, FIXME, etc. comments above code I want to return to:

// @{{$1:type}}: {{!cursor}} -- @rhbecker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants