blog/templates/month_archive.htm - header
24.11.2023 23:58:50

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 allowes 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.

In this case you are able to just select some text (e.g. everything in a text-field), right-click, click services > your service name and start editing the selected text in macvim. As soon as you are finished you write the file and quit, and the service takes the resulting content and replaces the selected text with it.

It is absolutely amazing and I haven't seen this kind of functionality in other operating systems so easily available. Well done, Apple!


Erstellt von Jerri | Permalink | Kategorie: apple | Kommentare