Using ctags in textpad

Instructional HowTos, posted by users. No questions here please.

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
dtoader
Posts: 15
Joined: Thu Feb 22, 2007 9:50 pm

Using ctags in textpad

Post by dtoader »

First install Cygwin / grep / awk / ctags

Start Textpad
Configure->Preferences
Tools
Create a new tool
Add -> Program

Command: C:\cygwin\bin\bash.exe
Parameters: -i -c "ctags -x -R | grep ^'$Sel ' | awk '{print $4,$3}'"

[x] Capture output
[x] Sound alert when completed

Regular expression to match output:
^([^ ]+) ([0-9]+)

Registers:
File: 1 Line: 2

Rename the tool to Ctags

[OK]

This way, you can navigate between files with Cygwin ctags.
(as you would in Cygwin NEdit, emacs, or vi)

To make the keyboard shortcut:

Start Textpad
Configure->Preferences
Keyboard
Categories: Tools
Commands: Ctags
Press new shortcut key: Ctrl+1
[Assign]
[OK]
Aeneas
Posts: 24
Joined: Fri Apr 18, 2008 6:11 am

Post by Aeneas »

Does this Cygwin method for CTAGS functionality work in a windows 7 environment, in which Textpad is being run in the native Windows 7 environment, not the Cygwin environment ?
Post Reply