Re: Can someone explain ctags to me?

2011-09-25 Thread ascarter
On Wednesday, September 21, 2011 6:07:34 AM UTC-7, Alex Popescu wrote: Lesson learned: don't use the tags generation script as a documentDidSave event, except you can filter an actual source file save. 2. The conclusion above made me think that a better event to attach the tags

Re: Can someone explain ctags to me?

2011-09-21 Thread Alex Popescu
I'm reviving this thread to post some more updates and also ask for some help. 1. As mentioned previously I've used ascarter's script as a Document.documentDidSave. After doing it BBEdit started to freeze even if I wasn't just navigating through a project. The reason for BBEdit freezing was

Re: Can someone explain ctags to me?

2011-09-08 Thread François Schiettecatte
The tags file is there and has stuff in it which all looks right. It is the root directory of my project directory hierarchy and I have created a bbedit project and added the files I needed, and the tags is located further up in the hierarchy. François On Sep 7, 2011, at 2:08 PM, ascarter

Re: Can someone explain ctags to me?

2011-09-07 Thread Alex Popescu
On Sep 6, 2:58 pm, Alex Satrapa gr...@goldweb.com.au wrote: On 6 Sep 2011, at 14:17, Oliver Taylor wrote: [✄..clipped .. ✄] 3) type bbedit --maketags . The important bit, of course, is that you'll need to repeat that process any time you modify your code. Now when you look at your code

Re: Can someone explain ctags to me?

2011-09-07 Thread François Schiettecatte
You could use cron/crontab: # man 5 crontab François On Sep 7, 2011, at 3:26 AM, Alex Popescu wrote: On Sep 6, 2:58 pm, Alex Satrapa gr...@goldweb.com.au wrote: On 6 Sep 2011, at 14:17, Oliver Taylor wrote: [✄..clipped .. ✄] 3) type bbedit --maketags . The important

Re: Can someone explain ctags to me?

2011-09-07 Thread ascarter
See the BBEdit manual - attach an AppleScript to documentDidSave event. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to

Re: Can someone explain ctags to me?

2011-09-07 Thread François Schiettecatte
? Thanks François On Sep 6, 2011, at 7:58 AM, Alex Satrapa wrote: On 6 Sep 2011, at 14:17, Oliver Taylor wrote: Can someone explain ctags to me? I gather that it is a list of words which BBEdit looks for matches against when doing text coloring, populating the function menu, and completion

Re: Can someone explain ctags to me?

2011-09-07 Thread ascarter
No you shouldn't need to restart BBEdit. Do you see a tags file in the root of your project? Are you running in project mode in BBEdit? You can also open the tags file (it's just text) and see that it has your symbols in it. -- You received this message because you are subscribed to the

Re: Can someone explain ctags to me?

2011-09-07 Thread ascarter
And here's a script that you can run in BBEdit to build the tags file for the currently active project. I tried adding it as an attachment script for documentDidSave but it didn't seem to fire. https://github.com/ascarter/BBEdit-ApplicationSupport/blob/master/Scripts/Maketags.applescript --

Re: Can someone explain ctags to me?

2011-09-07 Thread David Kelly
On Wed, Sep 07, 2011 at 11:08:05AM -0700, ascarter wrote: No you shouldn't need to restart BBEdit. Do you see a tags file in the root of your project? Are you running in project mode in BBEdit? You can also open the tags file (it's just text) and see that it has your symbols in it. Its easy

Re: Can someone explain ctags to me?

2011-09-07 Thread François Schiettecatte
Not at my end, it created the tags file without a dot at the end of the command, it was silent though, maybe a verbose mode... François On Sep 7, 2011, at 4:25 PM, David Kelly wrote: On Wed, Sep 07, 2011 at 11:08:05AM -0700, ascarter wrote: No you shouldn't need to restart BBEdit. Do you see

Re: Can someone explain ctags to me?

2011-09-07 Thread Alex Popescu
On Sep 7, 9:09 pm, ascarter ascar...@gmail.com wrote: And here's a script that you can run in BBEdit to build the tags file for the currently active project. I tried adding it as an attachment script for documentDidSave but it didn't seem to fire.

Re: Can someone explain ctags to me?

2011-09-07 Thread David Kelly
On Wed, Sep 07, 2011 at 05:10:47PM -0400, Fran?ois Schiettecatte wrote: Not at my end, it created the tags file without a dot at the end of the command, it was silent though, maybe a verbose mode... So it does. Didn't see the tags file the first time but duped the directory, nuked the tags

Re: Can someone explain ctags to me?

2011-09-07 Thread John Delacour
At 14:45 -0700 07/09/2011, Alex Popescu wrote: 3. when saving the script make sure that it is saved as Script + Run only (nb: according to the documentation the script must be compiled and I assume Run only option means it is compiled) I have not experimented with the application under

Can someone explain ctags to me?

2011-09-06 Thread Oliver Taylor
Can someone explain ctags to me? I gather that it is a list of words which BBEdit looks for matches against when doing text coloring, populating the function menu, and completion - but beyond that I'm clueless. I tried to look at the ctags docs and knew instantly my kung-fu was too weak

Re: Can someone explain ctags to me?

2011-09-06 Thread Alex Satrapa
On 6 Sep 2011, at 14:17, Oliver Taylor wrote: Can someone explain ctags to me? I gather that it is a list of words which BBEdit looks for matches against when doing text coloring, populating the function menu, and completion - but beyond that I'm clueless. I tried to look at the ctags docs