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

support targets with text properties #736

Open
mooseyboots opened this issue Oct 10, 2024 · 1 comment
Open

support targets with text properties #736

mooseyboots opened this issue Oct 10, 2024 · 1 comment

Comments

@mooseyboots
Copy link

mooseyboots commented Oct 10, 2024

i'm an embark newb, it's a ripsnorter, thanks.

i've made my own category, keymap, and a few actions (for https://codeberg.org/martianh/consult-search).

i'm interested in acting on a target's text properties, so i don't have to display info that i nonetheless would like to act on. e.g. currently i have to extract the URL to copy or load from the target string using regexes. whereas with text properties i could just grab shr-url. is there a reason targets have no properties?

@mooseyboots
Copy link
Author

(car (embark--targets)) returns targets with text properties. but the target my action functions are called on is a plain text string. (i'm not sure how it is fed the target.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant