question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option for configurable tab width?

See original GitHub issue

xterm.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:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
vincentwoocommented, Jan 19, 2017

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.

1reaction
vincentwoocommented, Jan 20, 2017

I am fine with whatever nomenclature you deem appropriate!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found