Code Monkey home page Code Monkey logo

Comments (8)

Canop avatar Canop commented on September 27, 2024

Filtering verbs by the kind of panel might find more use.

Something like

    {
        invocation: my_rm
        internal: trash
        panels: ["stage"]
    }

?

(edit: fixed the example)

from broot.

AndydeCleyre avatar AndydeCleyre commented on September 27, 2024

Oh, thanks! I'm looking at that filter description (docs say it should be stage) but am unclear on the behavior.

If I assign that to the invocation rm, and invoke it while the non-staging panel has focus, will that run and apply to the staging panel? And if no staging panel is open, it will continue to do the default rm thing?

from broot.

Canop avatar Canop commented on September 27, 2024

That's the idea.
But it looks like this filter is broken (implementation is missing for some verb triggering types). I'll have a look.

from broot.

Canop avatar Canop commented on September 27, 2024

With #934, if you define a rm with a panels: ["stage"] filter, it will be applied when called in the staging area, while the other one will be applied in other panel types.

from broot.

AndydeCleyre avatar AndydeCleyre commented on September 27, 2024

I think there may have been a misreading of the behavior I'm after, especially as written in my last comment. I just tested with 1.43.0 and the my_rm verb from here, with the following setup (Zsh):

$ mkdir rmtest
$ touch rmtest/do_{,not_}trash_{1,2,3}
$ br rmtest

I then mark/select the three do_trash_* files, and move focus to one of the do_not_trash_* files.

If I try my_rm here it says "verb not found" (because of the filter). I was looking for something that would act on the non-focused staging panel.

But also, when I change focus to the staging panel and try the my_rm verb, nothing happens when I hit enter (it still says "Hit enter to my_rm: :trash").

from broot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.