Open salahoued opened 1 month ago
--preview
did a different thing, but I have decided to change it to be more inline with the fzf, so now you can run ls | sweep --preview 'cat {}'
it should work as expected. For now only colored output is supported, I will add more functionality in the futuresweep.py
assumes python3.12
and higher. Thanks again for your hard work; Yes, it works just fine.
For a fun story
, I pulled
the latest git version
, compiled with cargo and run the example ls | sweep --preview 'cat {}'
, and got : Error parsing option '--preview' with value 'cat {}': provided string was not true or false
.
wandering why it didn't work was about to report it, until I remembered that I did run it with old version. :)
Last, I couldn't start the demo
again with python3.12 -msweep demo
, I got:
usage: sweep.py [-h] [-p PROMPT] [--prompt-icon PROMPT_ICON] [--query QUERY] [--nth NTH] [--delimiter DELIMITER] [--theme THEME] [--scorer SCORER] [--tty TTY] [--height HEIGHT]
[--sweep SWEEP] [--json] [--no-match {nothing,input}] [--keep-order] [--input INPUT] [--tmp-socket] [--log LOG] [--border BORDER]
sweep.py: error: unrecognized arguments: demo
And I tried ls | python3.12 -msweep
and did run correctly.
Thanks again.
To run the demo you need to run it from sweep-py
directory
Sorry about that,
I've come across this project by pure chance, after looking into the
pywayland
project, I was looking for arusty
fzf
to replace the now dormantskim
, it was happy surprise for me.I can see that
sweep
offers good functionalities the like of whichfzf
has, but I couldn't get some to work for me, like the--preview
option, I couldn't find the proper way for it to work. Is it likefzf
:--preview 'bat {}'
or is there any other way.I tried to run the demo
python -msweep demo
, it didn't workFrom this output I couldn't figure out the problem, is it some dependency missing?
I use
opensuse Tumblweed
andpython-3.11
Thank for all your hard work, you've put into this utility