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

Re: In RepoBrowser, right-click on a file open, default viewer?

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Wed, 18 Mar 2009 17:12:58 +0000

2009/3/18 Stefan Küng <tortoisesvn_at_gmail.com>:
> Markus Fischer wrote:
>> Hi,
>>
>> Stefan Küng wrote:
>>> Markus Fischer wrote:
>>>> Hi,
>>>>
>>>> when I choose a file, in my case a PHP file, it opens in notepad.
>>>> However I've set my system to open them in gVim by default. Is there a
>>>> way to tell TortoiseSVN to honor my system settings? I can choose "Open
>>>> with" and manually choose the application every time, but that feels a
>>>> bit cumbersome.
>>> The file is not 'opened' but 'edited'.
>>> That means the file is opened with the default application for the verb
>>> "edit", not the one for "open". That's because "open" means "run" for
>>> many scripts, and doing that for remote files is just too risky.
>>
>> Ok ... I'm not sure what does that mean now for me?
>>
>> Shouldn't the command be labeled "Edit" and "Edit with" then?
>
> That is up for discussion - I think that "Open" is what users expect and
> might get confused by "Edit". Maybe "Open in editor" would be best?
>
>> I checked (on my German WXP Pro system), right-click on a .php file
>> highlights "Bearbeiten" and it seems to be the so-called default action
>> because it's in bold.
>>
>> However the "Öffnen" (open) command opens the file in Notepad. Exactly
>> what I get in the RepoBrowsers. When I choose "Öffnen mit" (open with)
>> and select gVim for default, the next time choosen "Öffnen" (open) it's
>> still Notepad again.
>>
>> Seems confusing to me all in all; I'm not sure now: can this be fixed
>> and how can I fix it?
>
> Check the registry:
> HKCR\.php\(standard) shows the filetype ("phpfile" on my system)
> HKCR\phpfile\Shell\
> contains the commands for "Open" and "Edit". If there is no "Edit"
> subkey, then you can create one and copy the items from the "Open" keys.
>
> Also, TSVN uses the shell functions to open the file with the "edit"
> verb, but the shell function automatically falls back to the default
> verb (usually "open") if the "edit" verb is not set.

Can we display 'Edit' if the edit verb is present and 'Open' if not?

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1349519
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-03-18 18:13:06 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.