Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open multiple files #444

Open
D1mon opened this issue Sep 3, 2021 · 5 comments
Open

Open multiple files #444

D1mon opened this issue Sep 3, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@D1mon
Copy link

D1mon commented Sep 3, 2021

Add files in "Staging area" then "open_stay".
In console this command like: mpv video1.mp4 video2.mp4

@Canop Canop self-assigned this Sep 3, 2021
@Canop Canop added the enhancement New feature or request label Sep 3, 2021
@evanescente-ondine
Copy link

Hi, I think it warrants its own issue.
It is impossible to open a file in the background.
I tried editing the command in the .desktop file corresponding to the application in everyway possible: no result. I close broot, it closes the application.
I can't edit handlr, it uses .desktop files.
I tried the same with broot.hjson: no result whatever either. Including with commands that do call background jobs in terminals.

@piroot01
Copy link

piroot01 commented Feb 16, 2022

I solved it so that I wrote a simple shell script nvim_open.

#!/bin/sh

st -ce nvim "$1" &>/dev/null &
broot "$1"

And in conf.hjson

    {
        invocation: edit
        key: enter
        external: "nvim_open {file}"
        leave_broot: true
        apply_to: file
    }

@Canop
Copy link
Owner

Canop commented Feb 16, 2022

What's st here ? The "simple terminal" ?

@piroot01
Copy link

yes, you could use another one, if you want

@evanescente-ondine
Copy link

No variation on "drm@DasReich ~> foot "handlr open /home/drm/2017\ High-Fat\ D
iet\ and\ Female\ Fertility\ .pdf" works, I usually have to put fish or sh first, and here the command is too long/complicated and I can't make it work. Beside foot works differently because it's not the first time my terminal and/or shell behaves in an annoying way.
I think a general solution is needed, more than a work-around... the normal syntax (with & etc) put in hjson.conf should ideally work as if executing from the shell.
Can someone try that snippet with fish and foot ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
4 participants