OpenFileWithTag
From Niki
I started liking ctags so much with my big heirarchy of files that I wanted to be able to use it as my open dialog!
CTRL-D in nedit usually only looks up text selected in the buffer. If you want to open an arbitrary file on the basis of a tag name you know, a workaround is to type the text in the buffer, highlight it, press CTRL-D, and delete the dummy tag...or install this script! If you map over the usual nedit ctags key then this performs as before but with the additional behavior of asking you for a tag in a dialog if you have not highlighted anything.
If you are working with big heirarchies of files, I also suggest SuperGrep and FindAndOpen.
define open_file_with_tag {
if ($selection_start != -1)
find_definition(get_selection())
else {
tag_name = string_dialog("Enter tag name", " OK ", " Cancel ")
if (tag_name != "" && $string_dialog_button==1)
find_definition(tag_name)
}
}
