Option for configurable tab width?
See original GitHub issuexterm.js
inherits from term.js
the default tab width of 8 characters:
for (; i < this.cols; i += 8) {
this.tabs[i] = true;
}
I think it would be very useful, especially for space-constrained web applications, to be able to set this width to a lower setting.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Configurable tab size setting | Bitbucket Cloud - Jira
Many users have requested a way to permanently set the tab size at either (or all of) the repository, team, or user level....
Read more >Configurable tab-size for project/repo UI (#26768) - GitLab.org
A user wants to set a site-wide minimum and maximum tab width. This overrides general user/group settings, but not per-project settings.
Read more >TAB: 2, 4 or 8 spaces. Make it configurable and 4 as default
Tab width may be specified by parameter TabWidth in section [Lister] of wincmd.ini file. So, it is already configurable. ... You may read...
Read more >set tab width for less output - Unix & Linux Stack Exchange
Yes, it is possible with less -x or less --tabs , e.g. less -x4 will set the tabwidth to 4. You can configure...
Read more >Support tabs for indentation · Issue #34 · prettier/prettier - GitHub
I'm open to this, particularly because we have the --tab-width option and we can probably repurpose that. My goal is to have no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s certainly possible to change tabwidth from within a normal TTY: https://linux.die.net/man/1/tabs
This is more difficult on the web unless you want to have terminals secretly run the specific commands emitted by a program like
tabs
. I think saner is to configure default tab stop width.Any program that does any kind of tricky spaced display almost certainly does not depend on hard tabs.
I think a feature as simple as
options.initialTabStopWidth
defaulting to 8 would work nicely.I am fine with whatever nomenclature you deem appropriate!