Keywords with dot

Started by Stefan, March 27, 2009, 11:06:27 PM

Previous topic - Next topic

Stefan

Hi,

i can use keywords like

FSO_BuildPath
FSO_CopyFile
FSO_CopyFolder
FSO_CreateFolder


and if i type FSO_ and press C+Sp i get an list of all keywords starting with FSO_ (this is good)



But if i use an dot like

FSO.CreateTextFile
FSO.DeleteFile
FSO.DeleteFolder"
FSO.Drives

and type FSO. followed by C+Sp i get no list.

Question:
can i set up an sytyle to use keywords like FSO. ?

--------------------

As addition it would be nice to have an option to see only the part after the dot,
like if i  had this keywords

FSO.CreateTextFile
FSO.DeleteFile
FSO.DeleteFolder"
FSO.Drives

and if i type FSO.

i would get this list
  CreateTextFile
  DeleteFile
  DeleteFolder"
  Drives


Perhaps something like
<Keyword text="DeleteFile" ShowOnlyFor="FSO."
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Quoteand if i type FSO_ and press C+Sp i get an list of all keywords starting with FSO_ (this is good)
This works because, symbol _ is part of Words definition (see Specification section of the xml). If you add . to words it should work. But in this case all operations on words would assume that . is also part of word (for example selection of current word, or Ctrl + click selection). And I do not think that you want this.

QuotePerhaps something like
<Keyword text="DeleteFile" ShowOnlyFor="FSO."
Hm, that would be not so easy for me.. Because this rule to be used for auto completion, but Styles generally used for syntax highlighting. And I do not have curerntly a way to somehow use it when collecting completion words. I am trying to reuse as much definitions from styles as possible for code completion but this is still missing. I think there would be also problems with lead_with for keyword. This rule would not be taken into account on completion. But maybe I can think about fixing this, and then you can try to use it also for purpose you want.

But I would tell you that what you want to achive, is intellectual completion. Something like intellisence. When I was thinking about such possibilities for languages, my decision was - this shoul be done by special language/syntax specific completion/intelisence plugin. Because it is really impossible to have whole completion logic described only with syntax rules...

So, I need to check my priorities once more and decide what is more important in future developments.

Best regards,
Alex
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

Many thanks for your support.
Of course an dedicated plugin/engine would be much better.
I was just trying what can be done with current possibilities :D
Since you have this already on todo list ... no extra work needed to support my idea.

CU
Stefan
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Some when I have seen an idea how to do suggestion better.

The thing is that . is defined in schema as hierarchy separator (member accessor). And idea was to search for another Object. (ending with .) and see what is after it, when tring to find a suggestion based on another occurances. And this is already in my todo list :)

But probably this can be only done for code completion (Ctrl+Space), because Code hints use only already availbale information, and I could not do parsing of the document every time - then it would be too slow to type :) ...
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]