mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
A Community-led Hyper-Hackable Text Editor
We are crossing the Rubicon. https://github.com/orgs/pulsar-edit/discussions/249 is a discussion of specific ways that indentation is different in JavaScript because of the new grammar. We intentionally didn’t try to preserve the indentation decisions in the old TextMate grammar, but this is (predictably) disruptive to some people. We don’t want to punt like legacy Tree-sitter did and rely on the TextMate grammar’s coarse regexes to decide what gets indented, but we can at least make the new indentation system granularly configurable. This commit makes practically every indentation decision configurable in JavaScript and TypeScript. It groups these settings under a new “Indentation” section in each package’s settings. I might decide that this goes too far and roll back the granular settings for `{`, `[`, and `(`, but the other indentation hints are absolutely matters of taste, so it’s only proper that users can choose to disable them. In the long run, we could _consider_ allowing users to swap in another indentation engine altogther, much like #895 proposes for folds. That would let us legitimately offer users a way to opt into “the way the TextMate grammar does it” without affecting other users. Another stopgap option would be to add a way for a user to disable indentation hinting altogether for a given grammar. |
||
---|---|---|
.github | ||
docs | ||
dot-atom | ||
exports | ||
hooks | ||
integration | ||
keymaps | ||
menus | ||
packages | ||
ppm@0bc207133b | ||
resources | ||
script | ||
spec | ||
src | ||
static | ||
vendor | ||
.cirrus.yml | ||
.codacy.yaml | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.nvmrc | ||
.yarnrc | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Dockerfile | ||
LICENSE.md | ||
package.json | ||
playwright.config.ts | ||
pnpm-workspace.yaml | ||
PULL_REQUEST_TEMPLATE.md | ||
pulsar.sh | ||
README.md | ||
SUPPORT.md | ||
yarn.lock |