jesseduffield / jesseduffield/lazygit

The {{line}} variable has stopped working

Open
#2,589 14 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
The `{{line}}` variable available for custom commands has stopped being replaced into real number when command is executed

**To Reproduce**
Steps to reproduce the behavior:

1. Add `openCommand: 'notify-send "{{filename}}:{{line}}"'` into your config
2. Open changes view of any file
3. Verify the text sent to the command

**Expected behavior**
The `{{line}}` used to be a valid way to indicate to text editor a line to focus after opening

**Screenshots**
Notice the text of notification here:
![HDMI-1-20230503-123724](https://user-images.githubusercontent.com/20520590/235895233-f0e4e1d6-244c-4e32-8a2e-8bd02804498d.png)

**Version info:**
`commit=v0.38.1, build date=2023-05-02T09:09:52Z, build source=binaryRelease, version=0.38.1, os=linux, arch=amd64, git version=2.40.1`

`git version 2.40.1`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.