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

Add rule from the context menu on top/bottom of the file #153

Closed
vaclavpavek opened this issue Jul 17, 2015 · 4 comments
Closed

Add rule from the context menu on top/bottom of the file #153

vaclavpavek opened this issue Jul 17, 2015 · 4 comments
Milestone

Comments

@vaclavpavek
Copy link

Please add the possibility of setting where the rules from the context menu - at the beginning or end of the file. Ideal for user defined comment like '### Composer template'.

It would also be good to treat a situation where adding 'template' so that they do not mix templates and user-defined rules.

@vaclavpavek vaclavpavek changed the title Add rule from the shortcut menu on top of the file Add rule from the context menu on top/bottom of the file Jul 17, 2015
@hsz
Copy link
Member

hsz commented Jul 17, 2015

Hello @vaclavpavek,

I'm affraid, I don't clearly get this idea. You would be able to insert new rules from templates to the top or end of the file ? How would you to achieve it ?

@vaclavpavek
Copy link
Author

Hi
the point is to not blend templates (JetBrains, Composer, etc.) with my definition .gitignore rules.

When working manually or define .gitignore context menu (add to ignore ...) on the file.

Therefore I use 2 sections - templates and project / user custom. My choice is writing on top of the file.

I'd love to, if it was set by the plugin where to store the rules from the context menu or by using the Create section 2 comments as

'### Context / templates' = add rule from context menu's top, add a new rule templates bottom
'### Templates / context' = add rule from context menu to bottom, add a new rule templates top

@hsz
Copy link
Member

hsz commented Jul 31, 2015

What about inserting template at the cursor position ?
I think that it would be much more intuitive and flexible.

@vaclavpavek
Copy link
Author

It should be okay

@hsz hsz added this to the 1.2 milestone Jul 31, 2015
@hsz hsz closed this as completed Aug 2, 2015
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

2 participants