Share

FindTag - Ctags Add-on for TextPad

Tracker: Feature Requests

5 Secondary Path only allows 1 entry - ID: 810353
Last Update: Comment added ( daveanderson )

Hi,

I specifed as secondary path:

C:\WinNT\Java\Classes;"C:\Program Files\VC\include"

but it seems that only a single path is allowed.
Now what am I expected to do when I frequently
switch between Java and C++? I suggest that
Secondary Path is changed to parse for
; and " characters and thus checks multiple paths.
Or do I misunderstand some concept here?

I already tried to create one large "tags" file
that contains both the C++ and the Java definitions
(I merged and sorted them manually). But when
I did that, nothing works at all.

Thx
Christophe Thalet
christophe.thalet@web.de


Nobody/Anonymous ( nobody ) - 2003-09-22 01:34

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2008-03-02 09:44
Sender: daveanderson


I had a somewhat similar problem. I have several codelines to work with,
all of them use common public libs and common custom libs, with some
variations. I created a batch file to create a separate tags file for each
codeline, in each case using several invocations of ctags with various
paths, exclude options, etc to reflect that codeline's convoluted
requirements. Then what I did was add a batch file as a "Tool"
in Textpad that swaps my "tags" files around(Note that I tried to make it
a little friendly so I could distribute it among others in my
organization). Maybe this general approach could be integrated into the
FindTags UI somehow.

Selectively enabling/disabling paths as suggested by the author would be
too much of a pain IMHO, at least for my use cases. For example, in some
codelines I need to generate tags for c:\foo (excluding bar) then append
tags for c:\foo\bar\baz, another is similar but instead of baz I use
c:\foo\bar\biff. In yet other codelines I want to index c:\foo and exclude
bar entirely.

-----[Batch File]-----
@echo off
:Begin
cls
SET isAll=
SET isAS=
SET isTT=
SET isGB=
SET isIC=
SET ismain=
SET SourceDir=
echo.
echo.
echo.
echo Choose a codeline to load ctags tagfile for:
echo.
echo 0) All codelines
echo 1) AS
echo 2) TT
echo 3) GB
echo 4) IC
echo 5) main
echo.
echo Q) Quit

echo.
echo.

SET /P keypress=" Type a number then press <Enter>: "

IF /i %keypress% == q (
GOTO EOF
)
IF %keypress% == 0 (
SET isAll=*
SET SourceDir=All
GOTO Verify
)
IF %keypress% == 1 (
SET isAS=*
SET SourceDir=AS
GOTO Verify
)
IF %keypress% == 2 (
SET isTT=*
SET SourceDir=TT
GOTO Verify
)
IF %keypress% == 3 (
SET isGB=*
SET SourceDir=GB
GOTO Verify
)
IF %keypress% == 4 (
SET isIC=*
SET SourceDir=IC
GOTO Verify
)
IF %keypress% == 5 (
SET ismain=*
SET SourceDir=main
GOTO Verify
)

GOTO Reset
:Verify

cls
echo.
echo.
echo.
echo Is "%SourceDir%" the codeline to load ctags tagfile
for?
echo.
echo 0)%isAll%All codelines
echo 1)%isAS%AS
echo 2)%isTT%TT
echo 3)%isGB%GB
echo 4)%isIC%IC
echo 5)%ismain%main

echo.
echo Q) Quit
echo.
echo.

SET /P keypress=" [y/n] then <Enter>: "

IF /i %keypress% EQU q (
GOTO EOF
)
IF /i %keypress% EQU y (
GOTO doit
)

:Reset
cls
echo.
echo.
echo OK, back to the beginning...
sleep 1
goto Begin

:DoIt
echo Doing it!
echo.
copy C:\DOCUME~1\%USERNAME%\APPLIC~1\ctags\%SourceDir%\tags
C:\DOCUME~1\%USERNAME%\APPLIC~1\ctags\
sleep 2
:EOF


Date: 2003-09-26 09:57
Sender: ffesProject Admin

Logged In: YES
user_id=169016

You're right it does support only one path. I think a list of
secondary paths that can be en/disabled would be better.

The problem is not only with different languages, but when
you use a separate SDK or UI framework you have similar
problems.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.