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

Rofi as a open selector #1923

Closed
2 tasks done
pzant opened this issue Nov 23, 2023 · 3 comments
Closed
2 tasks done

Rofi as a open selector #1923

pzant opened this issue Nov 23, 2023 · 3 comments

Comments

@pzant
Copy link

pzant commented Nov 23, 2023

Before opening a feature request

  • I checked the next branch to see if the feature has already been implemented
  • I searched existing reports to see if it is already requested.

What is the user problem or growth opportunity you want to see solved?

It would be great if I could use rofi to select the application that will open the file specified in one of the arguments.

How do you know that this problem exists today? Why is this important?

I haven't figured out how to do this via dmenu, so I'm asking for advice.

Who will benefit from it?

A function that could replace "Open With" in file managers and replace xdg-open for the terminal.

Rofi version (rofi -v)

Version: 1.7.5

Configuration

default

Additional information

No response

@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Nov 23, 2023

I haven't figured out how to do this via dmenu, so I'm asking for advice.

Is the discussion forum then not the better place?

To pick an application in ""dmenu"" mode:

 rofi -show drun -modes drun -run-command 'echo {cmd}'

Then you can get the result and launch it ?

rofi has a file picker build in, so if you run rofi -show drun select your application, hit ctrl-l (kb-mode-complete) it switches to file browser (if the application indicates it can open a file in its desktop file) allow you to select the file and launch it using the selected application (also works in run mode).

@pzant
Copy link
Author

pzant commented Nov 24, 2023

@DaveDavenport Perhaps a discussion would be a better place. File picker is not quite suitable for this task. The above solutions is suitable. Thank you.

@pzant pzant closed this as completed Nov 24, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants