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

Indentation by default #292

Open
supakeen opened this issue Nov 15, 2024 · 1 comment
Open

Indentation by default #292

supakeen opened this issue Nov 15, 2024 · 1 comment
Labels
question Further information is requested

Comments

@supakeen
Copy link
Owner

supakeen commented Nov 15, 2024

In #277 a default indentation level was implemented for all types of pastes. I've had some remarks that this isn't wanted and as such I'm reverting the change temporarily in #293. This issue was raised in #288. I want to test the behavior as well so that's being tracked in #294.

Let's have a discussion if we want this behavior back again. I'll poke @divSelector as they created the implementation for the defaults and probably have their reasoning.

To recap what this indentation does:

  • Typing a tab character into the text area converts it to a configured number of spaces.
  • Pressing enter will prefix the new line with the number of leading spaces of the previous line.

I'm in favor of reinstating this behavior for all languages, how about others?

@supakeen supakeen added the question Further information is requested label Nov 15, 2024
supakeen added a commit that referenced this issue Nov 15, 2024
We had enabled indentation and tab-conversion by default. Let's discuss
that further as it seems to be controversial-ish.

See: #292

Signed-off-by: Simon de Vlieger <[email protected]>
supakeen added a commit that referenced this issue Nov 15, 2024
We had enabled indentation and tab-conversion by default. Let's discuss
that further as it seems to be controversial-ish.

See: #292

Signed-off-by: Simon de Vlieger <[email protected]>
@The-Compiler
Copy link

FWIW this will probably break for some languages that enforce tabs (Makefiles come to mind).

Other than that, I'm surprised that people actually type code right in the pastebin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants