Brian,

I typical line in ctags generated by jtags look like this, I denoted
the hidden tab as ^I

boxopen^I./main/stdlib.ijs^I/^boxopen=: <^:(L.=0:)$/;"^Id

This is the jtags that I hacked from Martin's work. Hopefully it will
not be mal-formatted by email.


#!/bin/sh

dir="$1"
: "${dir:=.}"

cd "$dir"
find . -iname '*.ijs' -print0 | xargs -0 awk '
/([a-zA-Z][a-zA-Z0-9_]*)[ \t]*=:/ {
  tag=$0; sub (/[ \t]*/, "", tag) ; sub (/=:.*/, "", tag)
  printf ("%s\t%s\t/^%s$/;\"\td\n", tag, FILENAME, $0)
}' | LC_COLLATE=C sort > tags

I think TAGS is convention used in emacs but it does not matter
anyway.  What is your output for " :set tags? " with an j file
opened in buffer?  I also put the following autocmd in ~/.vimrc where
~/share/jsoftware/j602/system/tags is my tag for j system, while
~/project/jproject/tags is the tag for my j project folder

if has("autocmd")
  augroup filetypedetect
    au!
    au! BufEnter ~/project/jproject/* setlocal 
tags+=~/project/jproject/tags,~/share/jsoftware/j602/system/tags
    au! BufRead,BufNewFile *.ijs  setlocal 
tags+=~/share/jsoftware/j602/system/tags
  augroup END
endif

I use 'exuberant ctags' instead of jtags to generate tags for j
scripts because it run a little bit faster.

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to