From 0113c56a5e39fdb30cd91fc5d69ffbb045b2e4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 30 Jun 2024 17:48:12 -0700 Subject: [PATCH] move hidden flag to trash command only list, clean, and restore all always show hidden files --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 23f82d7..d6fdb0d 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,7 @@ var ( beforeCommands = func(ctx *cli.Context) (err error) { // setup filter if f == nil { - f, err = filter.New(o, b, a, g, p, ung, unp, fo, do, sh, ctx.Args().Slice()...) + f, err = filter.New(o, b, a, g, p, ung, unp, fo, do, true, ctx.Args().Slice()...) } log.Debugf("filter: %s", f.String()) return @@ -363,13 +363,6 @@ var ( DisableDefaultText: true, Destination: &do, }, - &cli.BoolFlag{ - Name: "hidden", - Usage: "operate on hidden files", - Aliases: []string{"H"}, - DisableDefaultText: true, - Destination: &sh, - }, } trashFlags = []cli.Flag{ @@ -387,6 +380,13 @@ var ( Aliases: []string{"w"}, Destination: &workdir, }, + &cli.BoolFlag{ + Name: "hidden", + Usage: "operate on hidden files", + Aliases: []string{"H"}, + DisableDefaultText: true, + Destination: &sh, + }, } alreadyintrashFlags = []cli.Flag{