This is a fairly simple idea that I think would be quite useful but I have been unable to figure out a clean way to implement this given the current functions available in Avy.
The idea is that this could be easily used to limit Avy's context to make selection quicker. E.g. one could select within a specific symbolic expression in Lisp, within a paragraph, or within any other construct that can be selected using Emacs and available packages or functions.
This would make Avy more flexible.
I have tried a few things to implement this, but haven't figured out how to do this yet. Ideally a clean way to add in this functionality could be added that doesn't break the compatibility with existing code (e.g. an additional conditional branch somewhere that is controlled by a new variable which people can then let bind to create "region bound" versions of Avy commands.
If anyone has suggestions or ideas on how this could be done (short of rewriting everything) it would be much appreciated.
This is a fairly simple idea that I think would be quite useful but I have been unable to figure out a clean way to implement this given the current functions available in Avy.
The idea is that this could be easily used to limit Avy's context to make selection quicker. E.g. one could select within a specific symbolic expression in Lisp, within a paragraph, or within any other construct that can be selected using Emacs and available packages or functions.
This would make Avy more flexible.
I have tried a few things to implement this, but haven't figured out how to do this yet. Ideally a clean way to add in this functionality could be added that doesn't break the compatibility with existing code (e.g. an additional conditional branch somewhere that is controlled by a new variable which people can then let bind to create "region bound" versions of Avy commands.
If anyone has suggestions or ideas on how this could be done (short of rewriting everything) it would be much appreciated.