oantolin / embark

Emacs Mini-Buffer Actions Rooted in Keymaps
GNU General Public License v3.0
925 stars 56 forks source link

support targets with text properties #736

Open mooseyboots opened 6 days ago

mooseyboots commented 6 days ago

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 commented 5 days ago

(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.)