Comments (8)
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.
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.
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.
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.
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)
- missing verb when cycling among verb completions
- Searching from a Root Directory will cause the search to break if first character is included in search HOT 2
- Support iTerm image protocol
- clear filer/pattern in modal input mode HOT 1
- High Quality Imagine Preview over SSH works on broot version 1.33, but breaks on version 1.34+ HOT 3
- cd on exit HOT 4
- Edit multiple filenames in a buffer (wdired-like interface) HOT 3
- .bak files excluded? HOT 1
- Mark excluded files in `toggle_git_file_info` HOT 2
- ctrl-esc/shift-esc to go back to the first match. HOT 3
- Define hardcoded shortcuts inside verbs.hjson HOT 2
- Use the nucleo_matcher crate instead of custom fuzzy search HOT 1
- Remove the minus in the help file to show hidden files HOT 3
- Release 1.41.0 fails to build on NetBSD HOT 14
- composite pattern, searching .rs files only HOT 2
- show broot version on screenshots
- `enable_kitty_keyboard` causes signficant input lag
- [feat-req?] multiple internal commands for verbs HOT 1
- Open broot with a default selected file/directory. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broot.