crimson: -------------------------------------------------------------------------------- Enhance project usage Hi, all: Since I always need to handle with many different projects, the functions of project are important to me. But the PSPad doesn't offer many useful functions for project so far. So I implement some useful jscripts for my self. Which are EzOpenFiles for quickly openning file in current project and EzCtags for cooperating with ctags to go to definition in current project. And now share to everyone who needs it. If you feel any, please let my know, thx.
Download: http://www.adrive.com/public/14c875590959bbc7e6d09fe96e114b28f30cbec047ae471e226 55d914d360e87.html ----------------------- Module: EzCtags Files: EzCtags.js, EzCtags\ctags.exe, EzCtags\ctags.html, EzCtags\EzCtags.exe, EzCtags\EzCtags.c Description: Make PSPad to cooperate with ctags to provide with going to definition for projects respectively. Requirement: 1. It needs ctags.exe and put ctags.exe in PSPad\Script\JScript\Ezctags\ctags.exe 2. PSPad\Script\JScript\EzCtags\EzCtags.exe 3. Project should be opened. 4. Configure "Project Default Directory" in Project Setting should be existed in project. 5. tags file must be existed and created by EzCreateCtags. Functions: EzCreateCtags(CTRL+=): Create tags file for current project. EzGotoDefinition(CTRL+]): Use selected text or word at cursor as token to locate the definition accroding to current project. If only one matched, then open the file and go to the definition line. If more than one matched, then list all of them in log windows. EzOpenLogIndex(CTRL+I): Open the definition which listed in log windows accroding to the input index. EzDefTraceBack(CTRL+[): Trace the EzGotoDefinition back. ----------------------- Module: EzOpenfiles Files: EzOpenFiles.js, EzOpenFiles\EzOpenFiles.exe, EzOpenFiles\EzOpenFiles.c Description: Find the specified filename in current project, and it will list all matched files in the LOG window. Requirement: 1. Create project and store project before using EzOpenFiles. 2. Enable 'Absolute paths for files' in Project Setting. 3. PSPad\Script\JScript\Ezctags\EzOpenFiles.exe must be existed. Functions: EzOpenFiles(ALT+O): Use selected text for prompt input dialog to get input text as pattern to search in project. If only one matched file name is found, it will open the matched file immediately. Else if more than one matched files are found, it will list all matched files in the LOG window, and user is responsible for identify the matched one and open it. When files are listed in LOG window, user can use EzOpenLogIndex to open specified file according to the index. EzOpenLogIndex(CTRL+I): Open the file which listed in log windows accroding to the input index. ----------------------- Module: EzDispatchLog Files: EzDispatchLog.js Description: Dispatch open log index function according to log window magic string of EzCtags or EzOpenFiles module. Function: EzDispatchLog(CTRL+I): Launch the EzOpenLogIndex function of EzCtags or EzOpenFiles module according to log window magic string. -------------------------------------------------------------------------------- This looks really interesting... Am I too late? The link doesn't seem to work. Thanks, chuckf -- <http://forum.pspad.com/read.php?2,35782,51992> PSPad freeware editor http://www.pspad.com
