May 06, 2010 Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lutger | On 07/05/10 06:30, Lutger wrote:
>
> Yes it's very useful. How about also including the source in the examples
> directory?
That's a good idea, seeing as most of the examples are either for Windows, or outdated.
|
May 07, 2010 Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 05/07/2010 01:48 AM, Andrei Alexandrescu wrote: > I wonder if this is of enough general utility to warrant inclusion within the D distribution, along with rdmd. Thoughts? That's my pleasure, actually! > One small suggestion, Masahiro: you may want to replace the file reading > loop in main() with simply std.file.readText(args[1]). Done, thank you for the advice. I'm considering an enhancement: "d2tags <DIRECTORY>" reads all JSON files in the directory. However I'm not sure if it should recurse into subdirectories. |
May 07, 2010 Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format | ||||
---|---|---|---|---|
| ||||
Posted in reply to MIURA Masahiro | MIURA Masahiro wrote:
> I'm considering an enhancement: "d2tags <DIRECTORY>" reads
> all JSON files in the directory. However I'm not sure if it
> should recurse into subdirectories.
I think simpler is better. There are already tools like find on all Linux shells that could do the recursion.
Ali
|
May 07, 2010 Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | "Ali Çehreli" <acehreli@yahoo.com> wrote in message news:hs0332$cdc$1@digitalmars.com... > MIURA Masahiro wrote: > >> I'm considering an enhancement: "d2tags <DIRECTORY>" reads all JSON files in the directory. However I'm not sure if it should recurse into subdirectories. > > I think simpler is better. There are already tools like find on all Linux shells that could do the recursion. > I'd say "d2tags <DIRECTORY>" is a lot simpler than figuring out Linux's find and combining it with d2tags. |
May 07, 2010 Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | On 05/07/2010 01:36 AM, Robert Clipsham wrote:
> I love it! I don't suppose you have a guide for how to get it set up and
> working in vim do you? I've never managed to get ctags working, even
> with C/C++ :/
The only tag-related configuration in my Vim setup is:
set tags=./tags;
in ~/.vimrc (Note the semicolon: it makes Vim look for tags file upward to the root directory).
|
May 07, 2010 Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | Nick Sabalausky, el 7 de mayo a las 00:13 me escribiste: > "Ali Çehreli" <acehreli@yahoo.com> wrote in message news:hs0332$cdc$1@digitalmars.com... > > MIURA Masahiro wrote: > > > >> I'm considering an enhancement: "d2tags <DIRECTORY>" reads all JSON files in the directory. However I'm not sure if it should recurse into subdirectories. > > > > I think simpler is better. There are already tools like find on all Linux shells that could do the recursion. > > I'd say "d2tags <DIRECTORY>" is a lot simpler than figuring out Linux's find and combining it with d2tags. Add a -R option, this way it will work just like exuberant-ctags =) -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Please could you stop the noise, I'm trying to get some rest From all the unborn chicken voices in my head What's that...? (I may be paranoid, but not an android) |
Copyright © 1999-2021 by the D Language Foundation