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

Make ls output respond to width of terminal #1

Open
nfischer opened this issue Jan 20, 2017 · 1 comment
Open

Make ls output respond to width of terminal #1

nfischer opened this issue Jan 20, 2017 · 1 comment

Comments

@nfischer
Copy link
Owner

We can improve ls().inspect() by making it format output like:

$ ls
file1.txt   file2.txt   file3.txt

Instead of putting newlines between all of them. Output would break on word boundaries once the entire column-width is taken up. Cash has an implementation of this in its ls command.

@nfischer nfischer self-assigned this Jan 20, 2017
@nfischer
Copy link
Owner Author

We may be able to detect if it's coming from ls output by checking Array.isArray(this)

@nfischer nfischer removed their assignment Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant