#10 patch: custom editor option with %l=linenumber and %f=file

closed-duplicate
nobody
None
5
2005-06-06
2005-01-07
No

Hello,

here's a nice little patch so that the custom editor
command variable can contain two special tags %f and %l.

the tag %f is for the file
and the placeholder %l is for the present linenumber of
the cursor!

is the editor command doesn't contain a %f tag, then %f
is simply concated to the end of the string.

diff file generated with the command
diff -e tkdiff.old tkdiff.new

lines added changed: 27

greets,
tom

Discussion

  • Thomas Dunne

    Thomas Dunne - 2005-01-07

    diff based Tkdiff version 4.0.1

     
  • Thomas Dunne

    Thomas Dunne - 2005-01-07

    Logged In: YES
    user_id=1005553

    just as a follow up:

    with this patch a person can not only supply their own
    editor command but also that the editor should jump staight
    to the present line.

    in vim this can be done with : vim +linenumber filename
    (in emacs i think the commandline is the same)

    thanks to the very neat and quick-to-figure-out code this
    patch didn't take long! :)

     
  • Thomas Dunne

    Thomas Dunne - 2005-01-07

    Logged In: YES
    user_id=1005553

    newest patch also contains an updated help text that is
    shown in the help dialog box.

     
  • Thomas Dunne

    Thomas Dunne - 2005-01-07

    diff based Tkdiff version 4.0.1, with update help text

     
  • DorothyR

    DorothyR - 2005-06-06
    • status: open --> closed-duplicate
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks