Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate %(file) when cursor over diffstat information in commit view #404

Closed
dustymabe opened this issue Apr 24, 2015 · 0 comments
Closed

Comments

@dustymabe
Copy link

When my cursor is over a filename in the diffstat (like below) then can we have %(file) be populated for calling external tig bindings? If I have my cursor over the actual diff of the file then %(file) is populated, but not when I have it over the diffstat.

afile.txt | 16 ++++++++--------

tig version: 2.0.3

vivien added a commit to vivien/tig that referenced this issue Apr 26, 2015
This commit moves the code used to find the corresponding diff header
from a diff stat to its own function. This will allow to retrieve the
filename from a diff stat, even if the filename is truncated.

Refs jonas#404

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
vivien added a commit to vivien/tig that referenced this issue Apr 26, 2015
When selecting a diff stat, Tig assigns the %(file) and %(lineno)
variables. So reuse them when the user requests the editor, instead of
trying (and failing) to find the corresponding filename.

Refs jonas#404

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
@jonas jonas closed this as completed in 99e4b4a Apr 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant