Skip to content

Make tabs flexible in code - #4520

Merged
zurfyx merged 3 commits into
mainfrom
tab-again
May 19, 2023
Merged

zurfyx merged 3 commits into
mainfrom
tab-again

Conversation

@zurfyx

@zurfyx zurfyx commented May 19, 2023

Copy link
Copy Markdown
Member

For some reason, I badly interpreted that tabs were hardcoded spaces in code in #4436.

This is not true for the popular code editors:

VSCode IntelliJ
Screen.Recording.2023-05-19.at.10.10.10.AM.mov
Screen.Recording.2023-05-19.at.9.17.54.AM.mov
Sublime CodeMirror
Screen.Recording.2023-05-19.at.9.18.14.AM.mov
Screen.Recording.2023-05-19.at.9.18.32.AM.mov

So the new behavior in Code resembles outside copy and the editors above (tab-size can still be adjusted separately with CSS tab-size)

Screen.Recording.2023-05-19.at.10.16.16.AM.mov

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 19, 2023
@vercel

vercel Bot commented May 19, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2023 3:20pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2023 3:20pm

@github-actions

github-actions Bot commented May 19, 2023 •

Copy link
Copy Markdown

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 27.25 KB (0%) 546 ms (0%) 250 ms (-9.06% 🔽) 795 ms
packages/lexical-rich-text/dist/LexicalRichText.js 38.2 KB (0%) 765 ms (0%) 493 ms (+25.49% 🔺) 1.3 s
packages/lexical-plain-text/dist/LexicalPlainText.js 38.18 KB (0%) 764 ms (0%) 318 ms (+13.21% 🔺) 1.1 s

margin-bottom: 8px;
overflow-x: auto;
position: relative;
tab-size: 4;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.. or I can make 2 I guess 👀

@zurfyx
zurfyx merged commit 665ed38 into main May 19, 2023
@zurfyx
zurfyx deleted the tab-again branch May 19, 2023 15:19
vuamitom pushed a commit to bitbriks/lexical that referenced this pull request May 19, 2023
This was referenced May 23, 2023

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — f7dfdd63 Deployed May 19, 2023 by vercel[bot]
Preview – lexical — f7dfdd63 Deployed May 19, 2023 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants