[Solved] Tool Properties: run with associated app

Started by Stefan, December 01, 2008, 09:43:21 PM

Previous topic - Next topic

Stefan

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

alex

Fixes in 557.
I have fixed problem with project. Now if it is not found, empty project would be loaded (without any message, like wiht open files).
In addition I have changed the path to be stored as relative. In non portable scenario, I think, there would be no difference, but with portable you get benefits if files are stored in same drive where HE located.

I would try to convert all stored pathes to be relative, but would do this step by step. If you would notice something (but probably after next version), tell me.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

#17
i must report now this Issue with Tool Properties, it strikes me again:

If i modify "Command" the "Title" is instantly modify too.

I think you have an code like:  title.text = command.text

I suggest you to do this only if the title is empty:

IF title.text = ""
     title.text = command.text
End If


---
EDIT: 
the "Title"  for syntax related help have no recommendation, 
Here title could be pre-filled with "<syntax name> + help" ?





-------------------------  2:

I have added an folder with an command line tool to the %PATH%
PATH=%path%;C:\Python30

If i open an DOS-Box and type in the exe name, the tool starts.
C:\>python
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>


If i write this launch expression "python %FileName%"
into TOOLS Command: -box, HE didn't  make "[] Capture output" available to enable this.

Should'nt  HE trust me and find then "python.exe"  on the PATH?

EDIT: after two tries it seams as HE has detect the python.exe.
Maybe it needs some time till the sys vars gone valid? Or it was only because i had entered the full path just an minute before?
Now python.exe is in the registry 'App Path'.  Was it there before too?  I have to investigate ... :D
And i have to put %FileName% into the Arguments field.
"Command: python %FileName%"  didn't works,..... but this is OK!  I have simple to do the right setup!



-----------------------------------------------  3:

If i had opened an new file from the templates,...... then this file have no path.

If i execute an tool where i have set "save current doc before executing",..... the this is not done, because this fresh new file is not modified yet.
But an interpreter (the extern tool) can't find this file.

Maybe you want to check in addition to if it is dirty ,  if the file has an path-part too?
(maybe check simple  If an '\' is in the %filename%, if not ask to save the file first)

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

alex

Hello Stefan,

1) It is a bug. Would be fixed. Default for Help items title - I woudl think. This can be also file name, if this is a file name or site name for URL, because you can have a lot of <syntax> helps...

2) this is not a bug. You should place %FileName% in arguments field, then I can find a icon. Only if this is special case without executable name you can place it into Command field. Otherwise you can place what ever inside of parameters and waht I need to parse ;)

3) This is also by design. The file loaded form template, works as standard untitled, which by default is not modified. You need to do some changes in it to get it modified. Generally I am explicitly remove modified flag from the document after loading it from template. Form my point of view it is consistent and correct, but if you have hard arguments you can convince me :)
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]