-
Notifications
You must be signed in to change notification settings - Fork 69
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
feat request: make layer_legend_map
update layer headers
#148
Comments
Hey, original request came from @thazhemadam and they were using SVG glyphs, which led me to think the layer headers maybe should stay as the original non-mapped variants.1 On second thought, I can see it going either way, with mapping them making a bit more sense. I think I was aware of hyperlink being broken when I implemented it but considered it low priority. What do you (want to) use as the layer legend map? It'd be good to more example usages to decide which way makes more sense. (As an aside, I think setting Footnotes
|
Good point about glyphs, I hadn't thought about those. My use case is less relevant in comparison. I wanted to tweak the naming of layer names for the drawing and would have preferred to keep all of that in one place. But since I can also set Re: linking, maybe the more general solution here would be to allow for custom layer-activator maps. This could also be useful for things like custom_layer_activators:
# Simple usage: 'layer-name: custom-activator-label'
# Note: to fix the glyph issue, this should work regardless of how '< 1 X' is labeled
Nav: '< 1 X'
# Advanced usage: Additional config option so activator works also on taps
Num: {'binding': '&numword', 'requires-hold': 'false'} |
I guess using Regarding custom behaviors, I see the point in letting them customize layer activators. While the recursive parsing logic works fine for built-in behaviors (i.e. anything that resolves down to As an aside, if you have any custom behaviors that you'd prefer to convert the legends in a canonical way (like hold-taps resolving to |
Edit: This wasn't super well thought out, I will try to elaborate my thoughts better on #158 Footnotes |
layer_legend_map
doesn't update the layer headers, making them no longer match the key labelsBoth are pretty minor but I think adding this would be a nice qol improvement
The text was updated successfully, but these errors were encountered: