[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Re: Re: Feature request: Choose editor

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-08-11 17:53:05 CEST

Duncan Booth wrote:

> I suspect I wasn't clear enough.
>
> Say I'm browsing a log and there is a .js file. If I select the 'Open' menu
> item it will attempt to run this file using windows scripting host. If I
> want to edit it I have to select 'Open with...' and find my editor.
>
> I was suggesting that there should be an 'Edit' option in addition to or
> instead of the 'Open' option. Taking a default from
> HKEY_CLASSES_ROOT\Unknown\shell\edit\command would probably be useful for
> this. Also, assuming it is possible, it should check the result of either
> open or edit and not just fail silently as it currently does.

I've changed it to NULL instead of 'open'. By passing NULL to the
ShellExecute() API, Windows opens it with the default verb and then the
other verbs (verbs like 'open', 'edit', ...).

I know for executable files this isn't really what you want, but if I
change it to use 'edit', then many others would object.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Aug 11 17:53:26 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.