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

Keep extra blank lines while postfix completion #185

Open
ss005 opened this issue Dec 1, 2020 · 1 comment
Open

Keep extra blank lines while postfix completion #185

ss005 opened this issue Dec 1, 2020 · 1 comment
Labels
needs work in IDEA Needs changes in IDEA before we can continue

Comments

@ss005
Copy link

ss005 commented Dec 1, 2020

Hi @xylo,
Thank you for the plugin.

The only thing bugging me is - this plugin removes extra blank lines after the current editing line.

e.g. Suppose we've one python file with 30 lines. I want to write on 31th line. I just added few blank lines (20 e.g.) so that I can keep my current line or cursor on top of the editor.
Now if I do any postfix completion like 5/0.tryf, the plugin adds try..except..finally which is fine but it also removes all the blank lines which I added below current editing lines and my cursor goes to bottom of the editor, this is bit annoying.
Please let me know if I'm missing any setting.

output

Thanks!

@ss005 ss005 changed the title Avoid removing extra blank lines while postfix completion Keep extra blank lines while postfix completion Dec 1, 2020
@xylo
Copy link
Owner

xylo commented Nov 13, 2022

I'm sorry that the application of the postfix templates lead to this behavior. However, the postix expansion itself is handled by IDEA. Thus if the blank lines get removed during the postfix expansion IDEA's postfix completion will most probably have the same issue. In this case, please file a bug report on youtrack.

@xylo xylo added the needs work in IDEA Needs changes in IDEA before we can continue label Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs work in IDEA Needs changes in IDEA before we can continue
Projects
None yet
Development

No branches or pull requests

2 participants