scy on Nostr: #Vim regexes can do stuff like "match on the cursor position", or "match on the ...
#Vim regexes can do stuff like "match on the cursor position", or "match on the position of mark x". What I miss dearly however is a way to "match on syntax highlight group Foo".
Things like "jump to the next heading in this Markdown file" would be almost trivial to do, and you wouldn't need to deal with things like "is this # character inside of a code block or not"; the syntax highlighting does all of the heavy lifting.
Published at
2024-06-13 14:38:09Event JSON
{
"id": "7bd5f217f8aec37a2139ec745c8be6db731004ee2abeae0828434d133bd6a0f7",
"pubkey": "a071462e960207a7a2272a3f59d042e59623bb2217b56f9365cba21e12213e3e",
"created_at": 1718289489,
"kind": 1,
"tags": [
[
"proxy",
"https://chaos.social/@scy/112609819958716613",
"web"
],
[
"t",
"vim"
],
[
"proxy",
"https://chaos.social/users/scy/statuses/112609819958716613",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://chaos.social/users/scy/statuses/112609819958716613",
"pink.momostr"
]
],
"content": "#Vim regexes can do stuff like \"match on the cursor position\", or \"match on the position of mark x\". What I miss dearly however is a way to \"match on syntax highlight group Foo\".\n\nThings like \"jump to the next heading in this Markdown file\" would be almost trivial to do, and you wouldn't need to deal with things like \"is this # character inside of a code block or not\"; the syntax highlighting does all of the heavy lifting.",
"sig": "a3e300fb071a1b61e68a8fd498a83b16b43bda007e5cdaca49d3a4efd9cb5e1c4391c5ee5502d87512453a362e51580e3e8393aef53588cd801d3d9f32f44fd9"
}