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

add a line number argument to open_editor #119

Closed
wants to merge 1 commit into from

Conversation

vivien
Copy link
Contributor

@vivien vivien commented Feb 24, 2013

Salut Jonas!

This is the v2 of #118. I figured out that vi accepts (as many other editors do) the +num argument before the filename. So I just add it in the editor_argv, if needed.

So far, I tested vi, vim, emacs, nano, gedit, geany and they are known to work fine.

The option is applied on the diff and stage view.

Cheers,
Vivien

This patch allows opening the editor from the diff or stage view, at the
actual line number.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
@jonas
Copy link
Owner

jonas commented Feb 25, 2013

Thanks, I made a couple of improvements so it also works for blob and untracked files.
I really love this feature! :)

@jonas jonas closed this Feb 25, 2013
@vivien
Copy link
Contributor Author

vivien commented Feb 25, 2013

Great! I'm glad you like it! Thanks for merging it.

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

Successfully merging this pull request may close these issues.

2 participants