-
Notifications
You must be signed in to change notification settings - Fork 621
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
[REQUEST] Allow output of Type=Link
files' URL
in drun-display-format
#1914
Comments
Please test above commit. |
It works amazingly for me! Glad to finally be able to search for the URLs of my Links! 😄 |
I don't think that was requested? |
Should work now. |
It wasn't explicitly requested, but by including it in drun-display-format, it became searchable |
not until the last commit. |
Oh! You seem to be correct. My mistake. I've set the Comment field in my Links to the same as the URL as a hack for this previously, so I didn't realize it was still matching due to that. |
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. |
Before opening a feature request
What is the user problem or growth opportunity you want to see solved?
I would like to display the
URL
of my desktop files withType=Link
while using drun.How do you know that this problem exists today? Why is this important?
I've tried the intuitive way of displaying the '{exec}' field, but this is a null field when using URLs. I've also searched the source, hoping for an (undocumented) way to do this, but the code only checks for
dr->exec
(NULL), thusly this is currently impossible.rofi/source/modes/drun.c
Lines 1338 to 1341 in 9cea843
Note: it seems there may be a bug in the current implementation. Shouldn't
dr->exec
be escaped too (like name, comment, and generic_name)?Who will benefit from it?
Anyone who wants to know what pressing a button would do (typically the same people that would display the
{exec}
field)Rofi version (rofi -v)
Version: 1.7.1 (and HEAD)
Configuration
https://gist.github.com/aarondill/b809c4954f2d1147a2cfeebb83d20c20
Additional information
One of two implementations could be chosen:
{url}
field, null if using Type=Application, like{exec}
is for Type=Link{exec}
field to the URL when using Type=Link (more intuitive IMO)The text was updated successfully, but these errors were encountered: