Global scripts

This is the most powerful feature of Perun2. We can prepare a wall of global scripts and call them anytime anywhere in the File Explorer by just two mouse clicks.

Let us start from the beginning. To open the Perun interface, press the button Perun2 Here. You can find it in the File Explorer by right click.

Now write some code in the GUI. It can be something like that:

hide files
  where extension != 'pdf'

In order to turn it into a global script, press the key sequence Ctrl + G or enter the top menu item File -> Turn into global script. A new window similar to this one below should appear.

The name you write will appear in the context menu of the File Explorer. That's all. The script is ready to use.

If you are looking for inspiration, go here to see more code samples. If you want to use Python, here is a page about it.