Comments (6)
Huh, apparently there is something going on with firefox, I was able to open chat with chromium, nevermind 👍
Thanks for the suggestions, dcd is so close to it, but there is a slight catch here I guess:
Currently there is no way to "just print the filename after I choose over TUI".
I've defined following verb:
[[verbs]]
name = "print"
invocation = "_"
execution = "echo {file}"
# leave_broot = false # this didn't work as I expected here anyway :)
and triggered it via broot --cmd "myfile :_"
, it successfully printed the first match, but I what I'm trying to achieve is to be able to select on the terminal (since my target can be another match which I can see when I run broot --cmd "myfile"
) so broot can echo that file's name when I enter and quit.
Or maybe I should ask something else. Can I assign "enter" to another verb? 😄
from broot.
To do this you need to use the shell integration (see https://dystroy.org/broot/documentation/installation/#installation-completion-the-br-shell-function )
You could also define a function directly opening a file with a fuzzy name (calling br --cmd "yourname :e"
).
It's very similar to what I do go to dirs with dcd: https://dystroy.org/broot/documentation/tricks/#dcd-deep-fuzzy-cd
As for the chat link I'm surprised it doesn't work for you. There are already people discussing in https://miaou.dystroy.org/3490
from broot.
Do I correctly understand that the remaining problem is that you know have to type :_<enter>
instead of just doing <enter>
?
And that the problem wouldn't exist at all for you if you could configure the verb mapped to <enter>
on files ?
from broot.
Do I correctly understand that the remaining problem is that you know have to type
:_<enter>
instead of just doing<enter>
?
I am not sure what you mean by that, so I'll go with no :) I'll try again.
What I wanted get from broot is: In some way, after I press enter on the selection window, it exits and prints the path of selected file to the stdout. Nothing more.
I assume dcd would benefit from that also. Instead of "I'm feeling lucky" mode, you can run dcd foldername
and broot can open its interface to show you all matching folders and let you select the one you'd like to cd into.
And that the problem wouldn't exist at all for you if you could configure the verb mapped to
<enter>
on files ?
Yes, this way I can map enter button to "echo {file}" so it should work anyway.
Thanks for the patience 😄
from broot.
This related issue might clarify things: #25
Note that the problem with termion might be solved in a near future as I'm currently rewriting broot to use crossterm instead of termion (and by the way allow windows compatibility).
from broot.
Aaah alright. That's exactly what I meant.
I thought it should be trivial since its just printing a generated string to stdout, didn't realize a deeper library problem.
I'll follow the other issue then, thanks! :)
from broot.
Related Issues (20)
- br can't be launched in a kitty startup session HOT 3
- Optionally use system trash implementation when using `rm` HOT 1
- Pressing `right` to open file leaves a `xdg-open` zombie process HOT 2
- shell command without quitting HOT 1
- For a symlink to another partition, opening it in a new panel shows a wrong fs size HOT 6
- broot --install on Windows PowerShell updates the wrong Profile.ps1 file HOT 6
- broot hangs on a large nested directory HOT 1
- actions on new panel broken on windows since 1.30 HOT 2
- When creating a new pane under Windows, the path contains garbage HOT 3
- Keep working directory of broot process in sync with directory of its currently focused panel HOT 7
- not a known internal: cp HOT 5
- :trash internal doesn't work in staging area HOT 2
- Character inputs that require the Alt key are not working HOT 4
- Changing drive letter on Windows HOT 4
- br shell function does not escape file path HOT 5
- Error when closing broot (from 'br') in nushell (due to a deprecated instruction) HOT 1
- Open with functionality
- Please answer: do you use the br shell function for anything else than cd ? HOT 1
- Add a --verb-output launch argument HOT 6
- nushell :open_leave not working HOT 8
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.