mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
fix: add key to remove sort
This commit is contained in:
parent
bcad0e5696
commit
05d2146b97
1 changed files with 1 additions and 1 deletions
|
@ -3431,7 +3431,7 @@ class Viv:
|
||||||
if cli.is_file():
|
if cli.is_file():
|
||||||
to_remove.append(cli)
|
to_remove.append(cli)
|
||||||
|
|
||||||
to_remove = list(set(to_remove))
|
to_remove = sorted(set(to_remove), key=lambda p: p.is_file())
|
||||||
if confirm(
|
if confirm(
|
||||||
"Remove the above files/directories?",
|
"Remove the above files/directories?",
|
||||||
"\n".join(f" - {a.red}{p}{a.end}" for p in to_remove) + "\n",
|
"\n".join(f" - {a.red}{p}{a.end}" for p in to_remove) + "\n",
|
||||||
|
|
Loading…
Reference in a new issue