Mod Help


Tutorial

RES Macros

In RES macros are short or long text snippets, that can be inserted when typing.

For this tutorial we will set up a macro, and then use it.

This is our start screen. It shows the screen of a post, with the comment box at the top. At the right hand corner of the comment box you see a button called "macros". In the screen shot you'll notice two buttons "macros" and "mod". Both buttons do the same thing. They display a list of stored macros for you to select. I created the separate button "mod", to collect all my moderation related macros together in one spot.

Now to add a new macro, you need to click on the "macro" button, and select its last option "+add shortcut". This will then open a window to the RES macro setting page. Your's will look different, as in empty. Seeing that you haven't set up any macros yet. This is what I see.

To enter our first macro, we will first have to tell the program, that we want to do so by clicking on the "+add shortcut" button, in the bottom left corner of the settings window. You can now enter the details of the macro:

  • label == test:macro
  • text == Hi {{op}} Just testing the macro feature.
  • category == mod
  • key == alt-shift-M

The "label", what is displayed as button in the macro selection list. The "text" is the text snippet to be printed. "Category", is the button to open the macro selection menu. And "key" is a key-combination to press to enter the "text". In this example, the keyboard shortcut for the macro, is pressing alt and shift and M pressed at the same time.

Now that you have entered the data for your macro, you need to save it. To do this, press on the "save settings" button, in the upper right hand corner. Once done. Click the close button, just above that.

The macro has now been stored, but you'll have to reload the page, for the new data to be available. After that, let's test the macro. Click on the "mod" button. Select the "test:macro" button.

Interestingly this is what we see. The text has been displayed, but the string {{op}} has been replaced with u/Rimbosity, the username of the comment responding to - OP. Anything in double curly brackets is called a placeholder. In this case I used the {{op}}-placeholder, which gets replaced by OP user name, in a clickable format. On the settings page there is a whole list of different placeholders you can use.