Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 2.05 KB

plugin_repom.plugin.clipboard.generated.md

File metadata and controls

48 lines (34 loc) · 2.05 KB

Clipboard

This module provides a repository actions to copy specific (evaluated) text to the clipboard using the action provider type clipboard-copy.

To use this module, make sure it is enabled in RepoM by opening the menu and navigate to 'Plugins'. After enabling or disabling a plugin, you should restart RepoM.

Configuration

This plugin has no configuration.

This module contains the following methods, variables and/or constants:

clipboard-copy@1

This action makes it possible to copy text to the clipboard.

Properties:

  • name: Name of the menu item. (Text)
  • text: The text to copy to the clipboard. (Text)
  • context: The context in which the action is available. (Context)
  • active: Whether the menu item is enabled. (Predicate)

Example

- type: clipboard-copy@1
  name: Copy static text when feature branch
  text: 'static text'
  active: 'repository.branch | string.starts_with "feature/"'

snippet source | anchor

- type: clipboard-copy@1
  name: Copy git checkout command to clipboard
  text: 'git checkout -b branch {{ repository.branch }}'

snippet source | anchor