[TxMt] Insert File/Path names + open a file without using a GUI

Hans-Jörg Bibiko bibiko at eva.mpg.de
Sun Mar 11 17:57:50 UTC 2007


On 11.03.2007, at 17:03, Charley Tiggs wrote:

>
> Hans,
>
> This is awesome!  Simply awesome!  I just tried it out and it works  
> exactly the way I like to work in the terminal.
>
> One question:  Is it possible to force the plugin to always work  
> from the root of a specific directory?  For example, I have a  
> website set up as a project.  I'm never going to need any files  
> outside of the project.  Possible to be able to type control-tab  
> and start from the root of the project folder instead?
>
> Charley
>
>

Hi,

well, in principal it is possible to implement this. The question is  
how?

Suggestion:
Supposing I use the character '='. '=' will be replaced by  
TM_PROJECT_DIRECTORY if it is defined.

Project Example:

root (path='/usr/local/src/web')
|
|-css
| |- a.css
| |- b.css
|-images
| |- 1.jpg
| |- 2.jpg
|-main
| |-includes
| | |-j.js
| |-htmls
|   |-a.html

My current document is 'a.html'. I type:

'=/c' ; press CTRL+TAB ; the command will insert:  '/usr/local/src/ 
web/css'

Charley: Would be this something you can use?


regards, hans




More information about the textmate mailing list