Skip to content

Templatr is a generic templating application for a quick copy & paste action with easy to search templates maintained in YAML format with support for comments.

Notifications You must be signed in to change notification settings

ihortom/templatr

Repository files navigation

Templatr

Templatr is a generic templating application built with Electron and React for a quick copy & paste action with easy to search templates maintained in YAML format and with support for comments.

  1. First install dependencies: npm install
  2. To start Electron app in DEV mode: npm start
  3. Run npm run make to package application for Mac

To add templates, select "Edit Templates" from the menu to open the default YAML editor. Add your one-line or multi-line templates. The templates could be accompanied by standard YAML comments, which will be conveyed to UI as well. Add _VAR_ to the templates whenever you need to be flexible with values. They could be easily replaced with actual value from UI. Once saved, restart the application (could be achieved from "Relaunch App" menu).

The substitute values themselves could be optionally saved as a YAML list for a quick _VAR_ substitution. To create such a list, select "Edit Substitutes List", and restart the application on completion. Once created, the substitute values will be present in the dropdown box under "Substitute value" if the match found when starting to type. You still can use any string as _VAR_ substitution even if it is not in the substitute values list. It gives the flexibility of using either the predefined value or a custom one typed or pasted from the clipboard.

Example of templates configuration:

Templates type 1:
    - Copy me with _VAR_ value # Just click on it to copy to clipboard
    - The _VAR_ could be replaced from UI with the actual value
Templates type 2:
    - Templates are grouped by type in UI
    - They are easily searched with a keyword or filtered by types
Templates type 3:
    - "Templates made up
      of multiple lines are also supported.
      
      Add an empty line to see this line on the new line. # This is a comment of the multiline template

The current version has only been created with macOS in mind.

Templatr

About

Templatr is a generic templating application for a quick copy & paste action with easy to search templates maintained in YAML format with support for comments.

Resources

Stars

Watchers

Forks