Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: arp242/elles Loading
base: v0.1.0
Choose a base ref
...
head repository: arp242/elles Loading
compare: master
Choose a head ref
  • 17 commits
  • 25 files changed
  • 1 contributor

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    ea9f5a5 View commit details
    Browse the repository at this point in the history
  2. Fix tests on Windows

    arp242 committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    9620db4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f680e1 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Allow -width to be given more than once

    This way you can use something like:
    
    	alias ls='elles -Fo, -trim -w60'
    
    And then use "-ls -w0" to override that when needed.
    arp242 committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    b4eeeb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e44b070 View commit details
    Browse the repository at this point in the history
  3. Try running CI on macOS again

    arp242 committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    5247e40 View commit details
    Browse the repository at this point in the history
  4. Make -W sort by codepoint length, rather than byte length

    GNU ls sorts by display width:
    
    	% =ls -1 --sort=width
    	d
    	€
    	zz
    	bbb
    	cccc
    	aaaaa
    	'a'$'\n''b'
    
    Maybe that's better? Not sure. But this is easier because we format
    stuff after the sort, so we'd have to refactor a bit to make it work
    like GNU.
    arp242 committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    6d54b2e View commit details
    Browse the repository at this point in the history
  5. List as much as possible on stat failures

    Just because we can't get more information doesn't mean we should skip
    the entire file.
    
    Before:
    
    	% elles dir
    	elles: lstat dir/link: permission denied
    	elles: lstat dir/file: permission denied
    
    	% elles -l dir
    	elles: lstat dir/link: permission denied
    	elles: lstat dir/file: permission denied
    
    After:
    
    	% elles dir
    	file  link
    	elles: lstat dir/link: permission denied
    	elles: lstat dir/file: permission denied
    
    	% elles dir
    	 ??? │ ????-??-?? │ file
    	 ??? │ ????-??-?? │ link → ???
    	elles: lstat dir/link: permission denied
    	elles: lstat dir/file: permission denied
    
    Also run the tests as a regular user for BSD and illumos, rather than
    the default of root.
    arp242 committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    4cb1559 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2024

  1. Convert some more tests

    arp242 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    2002b5f View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Add standard -L behaviour, remove "don't show symlink targets"

    Mostly inspired by https://news.ycombinator.com/item?id=40691108, which
    seems like a valid use case.
    
    "Don't show symlink targets" isn't that useful any more now that we have
    -trim and -w to control the column sizes.
    arp242 committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    3a39ec0 View commit details
    Browse the repository at this point in the history
  2. Fix -d when path ends in /

    Fixes #3
    arp242 committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    95b7871 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Output reset before trimming lines

    Otherwise any text properties that may be set will overflow to the next
    line.
    
    Fixes #4
    arp242 committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    7a54d93 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Fix colouring when "ls -C" text gets trimmed

    Bug in termtext.Slice() caused the opening escape sequence being lost.
    arp242 committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    b8e9b42 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Don't warn if statfs fails with EACCESS or EPERM

    So we don't get spam for this:
    
    	% ./elles -l -BS
    	elles: statfs "/run/docker/netns/f49599de79ed": permission denied
    	elles: statfs "/run/docker/netns/d482894ce1e1": permission denied
    arp242 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    762e646 View commit details
    Browse the repository at this point in the history
  2. Don't count padding for last column

    It would also count the padding for the last column, which means that
    sometimes it would use fewer columns than can actually fit.
    arp242 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    440c691 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Add -m/-min to set minimum column width

    I find this more convenient than using -w to set the width, as that's
    kind of a guessing game.
    arp242 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    5d69604 View commit details
    Browse the repository at this point in the history
  2. Tweak README

    arp242 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9f3dd3f View commit details
    Browse the repository at this point in the history
Loading