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

Proper \n and \t in whitespace options #78

Open
kizu opened this issue Sep 12, 2013 · 1 comment
Open

Proper \n and \t in whitespace options #78

kizu opened this issue Sep 12, 2013 · 1 comment

Comments

@kizu
Copy link
Contributor

kizu commented Sep 12, 2013

We should allow users to set both \n and \t as a value for any whitespace options. However, there are currently two problems:

  1. \n is inserted as is, without the proper indent. It should be inserted always at the same level as the original line had.
  2. \t is inserted as an actual tab indent, however it would make more sense to insert it as the current indent size set. This way we could use it to place code more intelligently, so to change the overall indents we could change only one option instead of every.

Those things are already done in most text editors, so users would wait them to work in this matter, however we could introduce an option disabling this behaviour, but it should be default for the reasons I provided above.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1519079-proper-n-and-t-in-whitespace-options?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github).
@ArmorDarks
Copy link

+1

Not respectin already existing indention \n's and \t's causing a lot of issues.

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

4 participants