You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specify the external command to invoke when opening URL links (i.e. creating MR/PR in GitLab, BitBucket or GitHub). `{{link}}` will be replaced by the URL to be opened. A simple shell script can be used to further mangle the passed URL.
657
659
658
660
## Custom Command for Copying to and Pasting from Clipboard
661
+
659
662
```yaml
660
663
os:
661
664
copyToClipboardCmd: ''
662
665
```
666
+
663
667
Specify an external command to invoke when copying to clipboard is requested. `{{text}` will be replaced by text to be copied. Default is to copy to system clipboard.
664
668
665
669
If you are working on a terminal that supports OSC52, the following command will let you take advantage of it:
For tmux you need to wrap it with the [tmux escape sequence](https://github.com/tmux/tmux/wiki/FAQ#what-is-the-passthrough-escape-sequence-and-how-do-i-use-it), and enable passthrough in tmux config with `set -g allow-passthrough on`:
For the best of both worlds, we can let the command determine if we are running in a tmux session and send the correct sequence:
684
+
678
685
```yaml
679
686
os:
680
687
copyToClipboardCmd: >
@@ -686,10 +693,12 @@ os:
686
693
```
687
694
688
695
A custom command for reading from the clipboard can be set using
696
+
689
697
```yaml
690
698
os:
691
699
readFromClipboardCmd: ''
692
700
```
701
+
693
702
It is used, for example, when pasting a commit message into the commit message panel. The command is supposed to output the clipboard content to stdout.
694
703
695
704
## Configuring File Editing
@@ -960,6 +969,7 @@ In situations where certain naming pattern is used for branches, this can be use
0 commit comments