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

Re: [TSVN] Questions, polish bugs, feature request

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-07-15 18:47:38 CEST

Valik wrote:
> I've got a couple little polish bugs I've noticed recently.
>
> The first was with the 1.2.1 installer. It didn't seem to pick up the
> installation location of the previous installer. I don't install to
> C:\Program Files by default but that is where it wanted to install the
> new version to. I would like to see it auto-detect the previous
> installation directory and default to it if found.

I don't know if that's possible with msi's.
But feel free to mess around with our WiX script - maybe you can get it
to do that.

> The second concerns the commit dialog (Probably any other input
> controls, too). When you paste a block of text into the edit control,
> spell-checking does not occur immediately. It's necessary to press
> insert/remove a character via the keyboard before spell-checking becomes
> active. I would like to see spell-checking activated on pasting text,
> too.

filed as issue 116:
http://tortoisesvn.berlios.de/issues/index.php?do=details&id=116

> I also have a feature request. I would like to see drag-and-drop from
> the Repository Browser to the file-system become possible. I see that
> this has already been discussed on the issue tracker, however, I'm not
> sure from the comments if the idea on there is to allow checking out a
> file/folder via the browser or if it means the same thing as the "Save
> As" context menu entry. The latter is the approach I would like to see.

Sure, this would be a great feature. Problem is: we either block both
explorer and the repobrowser while the data transfer is done, or we'd
have to implement IAsyncOperation. Something which I don't quite know
how to do right.
And since it's not possible to check out single file, it of course would
be the same as the "save as..." function.

> The last thing I have is a question. How have you done the keyword
> auto-completion for languages like C++? Is this a hard-coded feature
> you've written or are you leveraging Scintilla somehow? I'm curious as
> to the extendibility of this feature for other languages.

Check the file autolist.txt in the TSVN installation bin folder.
There you'll see that this is done with regex strings.

(MULTILINE) .h, .hpp = ^\s*class\s*([\w_]+)|([\w_]+)\(
   regex file the regex string to extract the keywords
   over extension
   multiple to apply
   lines the regex

I've written a small tool to test regex strings and apply them to files.
http://tortoisesvn.tigris.org/files/documents/406/20668/RegExpTest.exe

Just enter your regex there and drag the file you want to test it with
on the dialog. Then you'll see which keywords are extracted and used for
autocompletion.

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 Fri Jul 15 18:48:42 2005

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