From: Jesse P. <jp...@al...> - 2007-05-26 01:05:51
|
Hello, I would like to have code completion for jEdit that understands both CamelCase (IAE -> InvalidAccessException) and underscore separation (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I thought the best way to do this would be to use the output of Ctags as my token list. First, I'd hate to be duplicating effort here--is there any plugin that does this currently? If not, do you think the best way to proceed would be: 1. Work on the CtagsSidekick code to add completion of that sort. 2. Write a new code-completion plugin altogether. Thanks for any advice! ~Jesse |
From: Dale A. <da...@gr...> - 2007-05-26 01:33:15
|
Option #1 is best. Contact the author of the CTagsPlugin and see if you can help add code completion support. Code completion is a feature of the SideKick framework that CTagsPlugin is based on. Many of the SideKick plugins don't implement code completion because it is not trivial to do so, but if you're willing, I'm sure your help would be greatly appreciated. Dale Jesse Pavel wrote: > Hello, > > I would like to have code completion for jEdit that understands both > CamelCase (IAE -> InvalidAccessException) and underscore separation > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I > thought the best way to do this would be to use the output of Ctags as > my token list. > > First, I'd hate to be duplicating effort here--is there any plugin that > does this currently? > > If not, do you think the best way to proceed would be: > > 1. Work on the CtagsSidekick code to add completion of that sort. > 2. Write a new code-completion plugin altogether. > > Thanks for any advice! > > ~Jesse > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > |
From: Jesse P. <jp...@al...> - 2007-05-26 07:23:35
|
Thanks for the advice--and I'll make the word-delimeters configurable, too. ~Jesse Dale Anson wrote: > Option #1 is best. Contact the author of the CTagsPlugin and see if you > can help add code completion support. Code completion is a feature of > the SideKick framework that CTagsPlugin is based on. Many of the > SideKick plugins don't implement code completion because it is not > trivial to do so, but if you're willing, I'm sure your help would be > greatly appreciated. > > Dale > > > > |
From: Slava P. <sl...@fa...> - 2007-05-26 03:15:07
|
Also dashes, like f-b-b => foo-bar-baz. Make this configurable. On 25-May-07, at 9:04 PM, Jesse Pavel wrote: > Hello, > > I would like to have code completion for jEdit that understands both > CamelCase (IAE -> InvalidAccessException) and underscore separation > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I > thought the best way to do this would be to use the output of Ctags as > my token list. > > First, I'd hate to be duplicating effort here--is there any plugin > that > does this currently? > > If not, do you think the best way to proceed would be: > > 1. Work on the CtagsSidekick code to add completion of that sort. > 2. Write a new code-completion plugin altogether. |
From: Alan E. <al...@je...> - 2007-05-26 19:47:36
|
Each sidekick parser can also offer a completion service, and CtagsSideKick doesn't offer one yet, so that seems like the obvious choice of where to put the code. I'd like to see this added to ctagssidekick, over placing this in another plugin. On 5/25/07, Jesse Pavel <jp...@al...> wrote: > > Hello, > > I would like to have code completion for jEdit that understands both > CamelCase (IAE -> InvalidAccessException) and underscore separation > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I > thought the best way to do this would be to use the output of Ctags as > my token list. > > First, I'd hate to be duplicating effort here--is there any plugin that > does this currently? > > If not, do you think the best way to proceed would be: > > 1. Work on the CtagsSidekick code to add completion of that sort. > 2. Write a new code-completion plugin altogether. > > Thanks for any advice! > > ~Jesse > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > |
From: Shlomy R. <sre...@gm...> - 2007-05-27 06:13:55
|
Note that CtagsSideKick is a sidekick parser, which means it runs Ctags only on the current buffer. Hence, the completion it can provide (using the same execution of Ctags) is limited to the tags defined in the current buffer, and such completion is already provided by the TextAutoComplete plugin, which I use in my everyday work, and it works great. I don't see any added value in adding such a completion feature to CtagsSideKick. I do think of adding a more complex C/C++ code completion feature that will also be based on Ctags, but will be project-wide and context-sensitive - i.e. the list of possible completions will be based not only on the part of the word that has already been typed, but also on the context in which the completion was requested. For example, in a member function of class X, the completions will be taken from the members of X, and in a member function of class Y (even in the same buffer), the completions will be taken from the members of Y. And it gets much more complex, handling completions like 'v->...' where the completion feature should detect the type of 'v' in order to decide which completions to offer (and this kind of information is not provided by Ctags). In any case, such a complex completion feature is not in the scope of CtagsSideKick; it should be part of the Tags plugin or some other, larger-scope plugin. I'll be glad to hear what others think of this. Shlomy On 5/26/07, Alan Ezust <al...@je...> wrote: > > Each sidekick parser can also offer a completion service, and > CtagsSideKick doesn't offer one yet, so that seems like the obvious choice > of where to put the code. I'd like to see this added to ctagssidekick, over > placing this in another plugin. > > > On 5/25/07, Jesse Pavel <jp...@al...> wrote: > > > > Hello, > > > > I would like to have code completion for jEdit that understands both > > CamelCase (IAE -> InvalidAccessException) and underscore separation > > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I > > thought the best way to do this would be to use the output of Ctags as > > my token list. > > > > First, I'd hate to be duplicating effort here--is there any plugin that > > does this currently? > > > > If not, do you think the best way to proceed would be: > > > > 1. Work on the CtagsSidekick code to add completion of that sort. > > 2. Write a new code-completion plugin altogether. > > > > Thanks for any advice! > > > > ~Jesse > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > -- > > ----------------------------------------------- > > jEdit Developers' List > > jEd...@li... > > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > |
From: Shlomy R. <sre...@gm...> - 2007-05-27 06:26:10
|
Sorry, I might have missed a major part of the question. I'm not familiar with CamelCase, in my reply I assumed you only want to complete words that are part of the Ctags output. If you're referring to another feature, I'll be glad to learn what it is. Shlomy On 5/27/07, Shlomy Reinstein <sre...@gm...> wrote: > > Note that CtagsSideKick is a sidekick parser, which means it runs Ctags > only on the current buffer. Hence, the completion it can provide (using the > same execution of Ctags) is limited to the tags defined in the current > buffer, and such completion is already provided by the TextAutoComplete > plugin, which I use in my everyday work, and it works great. I don't see any > added value in adding such a completion feature to CtagsSideKick. > > I do think of adding a more complex C/C++ code completion feature that > will also be based on Ctags, but will be project-wide and context-sensitive > - i.e. the list of possible completions will be based not only on the part > of the word that has already been typed, but also on the context in which > the completion was requested. For example, in a member function of class X, > the completions will be taken from the members of X, and in a member > function of class Y (even in the same buffer), the completions will be taken > from the members of Y. And it gets much more complex, handling completions > like 'v->...' where the completion feature should detect the type of 'v' in > order to decide which completions to offer (and this kind of information is > not provided by Ctags). > In any case, such a complex completion feature is not in the scope of > CtagsSideKick; it should be part of the Tags plugin or some other, > larger-scope plugin. > > I'll be glad to hear what others think of this. > > Shlomy > > On 5/26/07, Alan Ezust <al...@je...> wrote: > > > Each sidekick parser can also offer a completion service, and > > CtagsSideKick doesn't offer one yet, so that seems like the obvious choice > > of where to put the code. I'd like to see this added to ctagssidekick, over > > placing this in another plugin. > > > > > > On 5/25/07, Jesse Pavel <jp...@al... > wrote: > > > > > > Hello, > > > > > > I would like to have code completion for jEdit that understands both > > > CamelCase (IAE -> InvalidAccessException) and underscore separation > > > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I > > > thought the best way to do this would be to use the output of Ctags as > > > my token list. > > > > > > First, I'd hate to be duplicating effort here--is there any plugin > > > that > > > does this currently? > > > > > > If not, do you think the best way to proceed would be: > > > > > > 1. Work on the CtagsSidekick code to add completion of that sort. > > > 2. Write a new code-completion plugin altogether. > > > > > > Thanks for any advice! > > > > > > ~Jesse > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > -- > > > ----------------------------------------------- > > > jEdit Developers' List > > > jEd...@li... > > > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > -- > > ----------------------------------------------- > > jEdit Developers' List > > jEd...@li... > > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > > > |
From: Vampire <Vam...@gm...> - 2007-05-27 08:47:01
|
CamelCase just means that a "word" has upper case characters in the middle, which looks like the "hills" on the back of a camel. What is requested here is that you don't have to type the beginning of a word and get the completion, but that you can type the upper case characters and that it will complete that. So that you e. g. can type NPE and let that expand to NullPointerException. And the same for "words" that are not seperated by the case, but by underscores or dashes. Shlomy Reinstein wrote: > Sorry, I might have missed a major part of the question. I'm not > familiar with CamelCase, in my reply I assumed you only want to > complete words that are part of the Ctags output. If you're referring > to another feature, I'll be glad to learn what it is. > > Shlomy > > On 5/27/07, *Shlomy Reinstein* <sre...@gm... > <mailto:sre...@gm...>> wrote: > > Note that CtagsSideKick is a sidekick parser, which means it runs > Ctags only on the current buffer. Hence, the completion it can > provide (using the same execution of Ctags) is limited to the tags > defined in the current buffer, and such completion is already > provided by the TextAutoComplete plugin, which I use in my > everyday work, and it works great. I don't see any added value in > adding such a completion feature to CtagsSideKick. > > I do think of adding a more complex C/C++ code completion feature > that will also be based on Ctags, but will be project-wide and > context-sensitive - i.e. the list of possible completions will be > based not only on the part of the word that has already been > typed, but also on the context in which the completion was > requested. For example, in a member function of class X, the > completions will be taken from the members of X, and in a member > function of class Y (even in the same buffer), the completions > will be taken from the members of Y. And it gets much more > complex, handling completions like 'v->...' where the completion > feature should detect the type of 'v' in order to decide which > completions to offer (and this kind of information is not provided > by Ctags). > In any case, such a complex completion feature is not in the scope > of CtagsSideKick; it should be part of the Tags plugin or some > other, larger-scope plugin. > > I'll be glad to hear what others think of this. > > Shlomy > > On 5/26/07, *Alan Ezust* < al...@je... <mailto:al...@je...>> > wrote: > > Each sidekick parser can also offer a completion service, and > CtagsSideKick doesn't offer one yet, so that seems like the > obvious choice of where to put the code. I'd like to see this > added to ctagssidekick, over placing this in another plugin. > > > On 5/25/07, *Jesse Pavel* <jp...@al... > <mailto:jp...@al...>> wrote: > > Hello, > > I would like to have code completion for jEdit that > understands both > CamelCase (IAE -> InvalidAccessException) and underscore > separation > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming > in C. I > thought the best way to do this would be to use the output > of Ctags as > my token list. > > First, I'd hate to be duplicating effort here--is there > any plugin that > does this currently? > > If not, do you think the best way to proceed would be: > > 1. Work on the CtagsSidekick code to add completion of > that sort. > 2. Write a new code-completion plugin altogether. > > Thanks for any advice! > > ~Jesse > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express > and take > control of your XML. No limits. Just data. Click to get it > now. > http://sourceforge.net/powerbar/db2/ > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > <mailto:jEd...@li...> > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > <mailto:jEd...@li...> > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ > |
From: Shlomy R. <sre...@gm...> - 2007-05-27 08:56:38
|
How would the completion feature know how to expand the upper case characters into whole words? It will try to match them against existing words in the file? E.g. NPE will not be expanded into NullPointerException if the later doesn't exist in the buffer? If that's the idea - using another algorithm to find matches in the existing buffer words than just looking for prefix - maybe it would be better to add this feature to the TextAutoComplete plugin (as an option) rather than CtagsSideKick. I don't see how this is related to Ctags at all. The fact that this happens to be common in C/C++ doesn't make it related to Ctags. Adding it to TextAutoComplete would allow many other uses of this feature. Shlomy On 5/27/07, Vampire <Vam...@gm...> wrote: > > CamelCase just means that a "word" has upper case characters in the > middle, which looks like the "hills" on the back of a camel. > What is requested here is that you don't have to type the beginning of a > word and get the completion, but that you can type the > upper case characters and that it will complete that. So that you e. g. > can type NPE and let that expand to NullPointerException. > And the same for "words" that are not seperated by the case, but by > underscores or dashes. > > Shlomy Reinstein wrote: > > Sorry, I might have missed a major part of the question. I'm not familiar > with CamelCase, in my reply I assumed you only want to complete words that > are part of the Ctags output. If you're referring to another feature, I'll > be glad to learn what it is. > > Shlomy > > On 5/27/07, Shlomy Reinstein <sre...@gm...> wrote: > > > > Note that CtagsSideKick is a sidekick parser, which means it runs Ctags > > only on the current buffer. Hence, the completion it can provide (using the > > same execution of Ctags) is limited to the tags defined in the current > > buffer, and such completion is already provided by the TextAutoComplete > > plugin, which I use in my everyday work, and it works great. I don't see any > > added value in adding such a completion feature to CtagsSideKick. > > > > I do think of adding a more complex C/C++ code completion feature that > > will also be based on Ctags, but will be project-wide and context-sensitive > > - i.e. the list of possible completions will be based not only on the > > part of the word that has already been typed, but also on the context in > > which the completion was requested. For example, in a member function of > > class X, the completions will be taken from the members of X, and in a > > member function of class Y (even in the same buffer), the completions will > > be taken from the members of Y. And it gets much more complex, handling > > completions like 'v->...' where the completion feature should detect the > > type of 'v' in order to decide which completions to offer (and this kind of > > information is not provided by Ctags). > > In any case, such a complex completion feature is not in the scope of > > CtagsSideKick; it should be part of the Tags plugin or some other, > > larger-scope plugin. > > > > I'll be glad to hear what others think of this. > > > > Shlomy > > > > On 5/26/07, Alan Ezust < al...@je...> wrote: > > > > > Each sidekick parser can also offer a completion service, and > > > CtagsSideKick doesn't offer one yet, so that seems like the obvious choice > > > of where to put the code. I'd like to see this added to ctagssidekick, over > > > placing this in another plugin. > > > > > > > > > On 5/25/07, Jesse Pavel <jp...@al... > wrote: > > > > > > > > Hello, > > > > > > > > I would like to have code completion for jEdit that understands both > > > > CamelCase (IAE -> InvalidAccessException) and underscore separation > > > > (GLBI -> GTK_LIST_BOX_ITEM), particularly for programming in C. I > > > > thought the best way to do this would be to use the output of Ctags > > > > as > > > > my token list. > > > > > > > > First, I'd hate to be duplicating effort here--is there any plugin > > > > that > > > > does this currently? > > > > > > > > If not, do you think the best way to proceed would be: > > > > > > > > 1. Work on the CtagsSidekick code to add completion of that sort. > > > > 2. Write a new code-completion plugin altogether. > > > > > > > > Thanks for any advice! > > > > > > > > ~Jesse > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > -- > > > > ----------------------------------------------- > > > > jEdit Developers' List > > > > jEd...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > -- > > > ----------------------------------------------- > > > jEdit Developers' List > > > jEd...@li... > > > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > > > > > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > > |