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

Don't apply translate_tabs_to_spaces to piped input. #6611

Open
mbartlett21 opened this issue Jan 31, 2025 · 3 comments
Open

Don't apply translate_tabs_to_spaces to piped input. #6611

mbartlett21 opened this issue Jan 31, 2025 · 3 comments

Comments

@mbartlett21
Copy link

Problem description

If I pipe the output of programs to subl -, tabs are translated to spaces, rather than it leaving the tabs as is.

For example, running luarocks search busted --porcelain gives nice tab-separated output, which is lost if I pipe it to Sublime.

Preferred solution

Piping data to Sublime should use it as is (maybe doing crlf normalising) rather than translating tabs.

Alternatives

Turning translate_tabs_to_spaces off works for piping data but then makes it use tabs for new documents.

Additional Information

No response

@percontation
Copy link

Join the club 😢 #6157 #4569 #4539 #1349

@mbartlett21
Copy link
Author

There was nothing for piped input, which I think should be treated as existing data.

Sublime doesn't translate stuff when you open a file that has tabs and it instead autorecognises it for that file.

@percontation
Copy link

Good point. I guess if subl just applied the trick from #6157 where translate_tabs_to_spaces is temporarily toggled off, this specific issue could be solved without resolving any underlying tabs/spaces issues.

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

No branches or pull requests

2 participants