mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
provide section for openLink
- this helps to solve issues as in #3052 - provide an example of how to pass it to a bash script
This commit is contained in:
parent
d520d5e404
commit
bf9f9b6c04
1 changed files with 7 additions and 0 deletions
|
@ -659,6 +659,13 @@ os:
|
||||||
open: 'open {{filename}}'
|
open: 'open {{filename}}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Custom Command for Opening a Link
|
||||||
|
```yaml
|
||||||
|
os:
|
||||||
|
openLink: 'bash -C /path/to/your/shell-script.sh {{link}}'
|
||||||
|
```
|
||||||
|
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.
|
||||||
|
|
||||||
## Custom Command for Copying to and Pasting from Clipboard
|
## Custom Command for Copying to and Pasting from Clipboard
|
||||||
```yaml
|
```yaml
|
||||||
os:
|
os:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue