The Wayback Machine - https://web.archive.org/web/20200910175126/https://github.com/dborzov/lsp/issues/14
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 print headings for empty sections #14

Open
langston-barrett opened this issue Jul 10, 2015 · 0 comments
Open

Don't print headings for empty sections #14

langston-barrett opened this issue Jul 10, 2015 · 0 comments

Comments

@langston-barrett
Copy link
Contributor

@langston-barrett langston-barrett commented Jul 10, 2015

For example, in the LSP repo, using lsp -l results in

lsp ➤ lsp -l
-------------------------------------------------------------------------------

                                --Regular files--

                                  --Text Files--
                           .travis.yml  
                            .gitignore  
                          arguments.go  
                     arguments_test.go  
                       CONTRIBUTING.md  
                                fmt.go  
                           fileinfo.go  
                           filelist.go  
                        investigate.go  
                               LICENSE  
                               main.go  
                              paths.go  
                             README.md  
                               sort.go  
                            tty_win.go  
                           traverse.go  
                               trie.go  
                           tty_unix.go  
                              utils.go  
-------------------------------------------------------------------------------
lsp "~/Dropbox/workspace/pulls/lsp", 20 files, 0 directories
 git repo (remote at https://github.com/siddharthist/lsp.git)

Where there are no 'regular files'. Therefore, there is no reason to print 'regular files'. Strangely, this behavior doesn't apply to the executable files heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.