Today I learned how to use "services" on MacOS and it is awesome
I was struggling today editing some text fields in Firefox and became desperate to be able to edit them with vim. Searched the net and found this page
https://www.kerrybuckley.org/2013/09/05/quick-and-dirty-edit-text-in-vim-mac-service/
I was absolutely stunned by the easyness of this trick. “Services” are a builtin functionality of MacOS and allows you to easily extend the functionality of the gui.
In principle a service in MacOS allows you to take something (text, file, etc.) and push it through a “filter”. The output of the filter can be used to replace the original element. Or you can just react on the content and do something else with it.