Page 1 of 1

Using ctags in textpad

Posted: Wed Nov 04, 2009 7:42 pm
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]

Posted: Mon Aug 01, 2011 7:43 am
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 ?