skim icon indicating copy to clipboard operation
skim copied to clipboard

Is it possible to sort an input list?

Open rnag opened this issue 2 years ago • 1 comments

This might be a silly question, but I was wondering if it's possible to sort an input list of choices alphabetically using sk currently.

for example:

echo 'abc\ntwo\none' | sk

the ideal output would be like:

  two
  one
> abc 

Thanks

rnag avatar Apr 02 '22 01:04 rnag

Why not let sort do its job?

$ echo -e 'abc\ntwo\none' | sort | sk`
   two
   one
>  abc 

btwiuse avatar Apr 08 '22 09:04 btwiuse