• tags in forth : ctags gvim

    From albert@albert@spenarnc.xs4all.nl to comp.lang.forth on Tue Sep 17 17:39:07 2024
    From Newsgroup: comp.lang.forth

    In my develop directory :
    ~/PROJECT/ciforths/ciforth: ls *.frt | wc
    321 321 3703
    ~/PROJECT/ciforths/ciforth: ls [a-d]*frt
    a.frt alloctest.frt ansi1.frt beer2.frt bl2.frt branchbag.frt chs.frt coins1.frt crcnew.frt dictspeed.frt doerror.frt aap.frt an.frt aq.frt
    beer3.frt bl3.frt bug.frt cidigit.frt col.frt curly.frt digit.frt
    doit.frt aapje.frt analyser.frt ascii.frt belasting.frt blanks.frt
    bug1.frt class.frt colg.frt debug-re.frt digitnew.frt
    dollar_backslash.frt add-alloc.frt analyseras.frt asgen.frt
    benchspeed.frt blocks.frt calculator.frt class1.frt color.frt
    decorator.frt dirtylocals.frt dollar_slash.frt addbreak.frt
    analyserconfig.frt asi386.frt big.frt blocks51.frt cat.frt cleanup.frt condcomp.frt dectest.frt dll.frt doloop.frt adddlf.frt
    analyserdebug.frt asi586.frt binsearch.frt blocksmerge.frt cf.frt
    clone1.frt cquote.frt dectest64.frt dlshift.frt donothing.frt
    ahead.frt analysermain.frt assmeblerspeed.frt bits.frt blockwolf.frt
    chal.frt cls.frt crash.frt def.frt do.frt dowant.frt allocate2.frt
    ansi.frt bag.frt bl1.frt bnf.frt challenge.frt coins.frt crc32.frt
    diagnose.frt do2.frt dynamicstring.frt

    I made a dogs dinner out of it.

    Now try
    ctags --language=forth *.frt
    The extension fth is recognized automatically.

    creating a file tags

    And now start gvim
    gvim coins1.frt

    Select a word by double clicking, select the tools tab and the first entry. e.g. cut-off-denomination
    (Or use g^] )

    You see where this word is defined. If it is defined several times you
    can select and you are in that file, pronto!
    In this case it was defined also coins.frt.

    I have discovered it while fooling around with edwin editor, that has
    a key programmed (^Nh) that does the same.

    I thought it was not well known.

    Groetjes Albert
    --
    Temu exploits Christians: (Disclaimer, only 10 apostles)
    Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall
    Art For Home, Office And Garden Decor - Perfect For Windows, Bars,
    And Gifts For Friends Family And Colleagues.
    --- Synchronet 3.20a-Linux NewsLink 1.114