You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After developing the patterns in #10 , I ran into some things that I'd like to have some more control over, possibly.
1. Some way to control what text is highlighted, not just everything that matches the pattern
This is so that things like the gem or brew prefix don't get highlighted. I'd still like them to be part of the target area. So this is just a cosmetic difference. It's not that big of a deal, but it'd be pretty cool.
2. The ability to pass in a function to build up the URL
I could collapse the two Dockerfile related sections in my other issue if I could control how the URL is built with a function. I could even extend it further and support custom registries fully, by calling a system command to fetch the appropriate URL.
The default version of the function should stick with the current prefix & suffix, it's good enough 90% of the time. This is more of an edge case.
3. The ability to include multiple patterns to match within a file
This is probably pretty hard, from a quick scan through the code. But, being able to include multiple patterns would be a very powerful combo with idea 2.
What do you think? I'm familiar with Lua, so I could take a shot at some of these ideas, but would like your opinion.
The text was updated successfully, but these errors were encountered:
After developing the patterns in #10 , I ran into some things that I'd like to have some more control over, possibly.
1. Some way to control what text is highlighted, not just everything that matches the pattern
This is so that things like the
gem
orbrew
prefix don't get highlighted. I'd still like them to be part of the target area. So this is just a cosmetic difference. It's not that big of a deal, but it'd be pretty cool.2. The ability to pass in a function to build up the URL
I could collapse the two Dockerfile related sections in my other issue if I could control how the URL is built with a function. I could even extend it further and support custom registries fully, by calling a system command to fetch the appropriate URL.
The default version of the function should stick with the current prefix & suffix, it's good enough 90% of the time. This is more of an edge case.
3. The ability to include multiple patterns to match within a file
This is probably pretty hard, from a quick scan through the code. But, being able to include multiple patterns would be a very powerful combo with idea 2.
What do you think? I'm familiar with Lua, so I could take a shot at some of these ideas, but would like your opinion.
The text was updated successfully, but these errors were encountered: