Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-21 Thread Gilles
On Thu, 20 Oct 2011 15:56:43 +0200, Kohn Bernhard
bernhard.k...@ait.ac.at wrote:
http://imageshack.us/photo/my-images/830/fastexplorerfos.png

I notice that none of the commands you added to the menu use
parameters.

I wanted to add gdiff --from previous %1, but I can't get Fast
Explorer to send the full path to the file if it contains spaces :-/

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-21 Thread Gilles
On Fri, 21 Oct 2011 13:15:14 +0200, Gilles
gilles.gana...@free.fr wrote:
I wanted to add gdiff --from previous %1, but I can't get Fast
Explorer to send the full path to the file if it contains spaces :-/

Problem solved: I thought FastExplorer sent all the parameters as a
single string, while it sends each as an independent parameter, so
that we must loop through them in the application that sits between
Fast Explorer and fossil.exe.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-20 Thread Kohn Bernhard
Dear Gilles,

I have used the fast explorer to achieve a menu entry just beneath 7zip 
explorer entry. You should try the Submenu Items selection on the left side of 
fast explorer.
But I use only the type File Folder.

Best regards
  Bernhard

-Ursprüngliche Nachricht-
Von: fossil-users-boun...@lists.fossil-scm.org 
[mailto:fossil-users-boun...@lists.fossil-scm.org] Im Auftrag von Gilles
Gesendet: Mittwoch, 19. Oktober 2011 15:00
An: fossil-users@lists.fossil-scm.org
Betreff: Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

On Wed, 19 Oct 2011 09:33:15 +0200, Kohn Bernhard bernhard.k...@ait.ac.at 
wrote:
thanks for sharing the idea using Fast Explorer. I find it very good!

Actually, it's not that good because...
- it requires installing Fast Explorer
- it requires adding a fossil.bat just to call pause to keep the DOS box open 
after fossil.exe exits
- fossil gdiff --from previous myfile.txt doesn't work because %1%
returns the full path
- the gdiff above is called for All Files, which means that this item is not 
displayed in the Fossil group like the other items

I haven't found how to add a group + items in the context menu à la 7zip. It 
seems like we must write a COM DLL for this.

For my personal use I have written a small .net program FossilCmd for opening 
a windows command console and sending fossil commands to it.

Sound good. Could you upload it so we can check it out?

Thank you.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-20 Thread Kohn Bernhard
Hello Tomek,

you are right, this would be the best solution. But there exist a problem with 
shell extension and .net. As far as I know it is not officially supported by 
Microsoft.
First they said, that with the .net Framework 4.0 it should be available, but 
it is not announced (but may be I am wrong, if anybody knows better, please 
mail).

The thing I liked with the fast explorer approach one can customize the options 
to the own needs, I my self only use very little commands of all the available 
ones, so I can configure it, to those things I really need, with very low 
amount of time.

Best regards
  Bernhard


Von: fossil-users-boun...@lists.fossil-scm.org 
[mailto:fossil-users-boun...@lists.fossil-scm.org] Im Auftrag von Tomek Kott
Gesendet: Mittwoch, 19. Oktober 2011 17:23
An: Fossil SCM user's discussion
Betreff: Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

For windows users, there is already an effort to get fossil extended to the 
explorer context menu. At the moment, the C# library for fossil commands is 
being written. See Ingo's SharpFossil library implementation for .NET 
purposes: 
http://repository.mobile-developers.de/cgi-bin/ikoch/sharpfossil/wiki?name=SharpFossil+Library.

I think that the library currently has most of the commonly used functions 
written, so there might be an opportunity to start coding a explorer extension 
using that library.

Just some cents...

Tomek
On Wed, Oct 19, 2011 at 8:59 AM, Gilles 
gilles.gana...@free.frmailto:gilles.gana...@free.fr wrote:
On Wed, 19 Oct 2011 09:33:15 +0200, Kohn Bernhard
bernhard.k...@ait.ac.atmailto:bernhard.k...@ait.ac.at wrote:
thanks for sharing the idea using Fast Explorer. I find it very good!
Actually, it's not that good because...
- it requires installing Fast Explorer
- it requires adding a fossil.bat just to call pause to keep the DOS
box open after fossil.exe exits
- fossil gdiff --from previous myfile.txt doesn't work because %1%
returns the full path
- the gdiff above is called for All Files, which means that this item
is not displayed in the Fossil group like the other items

I haven't found how to add a group + items in the context menu à la
7zip. It seems like we must write a COM DLL for this.

For my personal use I have written a small .net program FossilCmd for opening 
a windows command console and sending fossil commands to it.
Sound good. Could you upload it so we can check it out?

Thank you.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.orgmailto:fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-20 Thread Kohn Bernhard
Hello Gilles

 Actually, it's not that good because...
 - it requires installing Fast Explorer
 - it requires adding a fossil.bat just to call pause to keep the DOS box 
 open after fossil.exe exits
 - fossil gdiff --from previous myfile.txt doesn't work because %1%
 returns the full path
 - the gdiff above is called for All Files, which means that this item is not 
 displayed in the Fossil group like the other items

 I haven't found how to add a group + items in the context menu à la 7zip. It 
 seems like we must write a COM DLL for this.

 For my personal use I have written a small .net program FossilCmd for 
 opening a windows command console and sending fossil commands to it.

 Sound good. Could you upload it so we can check it out?

I will make it available next week, when I am back in office

Best regards
  Bernhard
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-20 Thread Gilles
On Thu, 20 Oct 2011 12:39:43 +0200, Kohn Bernhard
bernhard.k...@ait.ac.at wrote:
I have used the fast explorer to achieve a menu entry just beneath 7zip 
explorer entry. You should try the Submenu Items selection on the left side of 
fast explorer.
But I use only the type File Folder.

That's why: It doesn't seem possible to add an item to a group that is
only called when right-clicking on a file while the other items are
called when right-clicking on a folder. The former will be displayed
outside the Fossil group :-/

A picture being worth a thousand words...

http://img543.imageshack.us/img543/8620/fossilfastexplorer.png

I did some research, but the Registry doesn't seem to allow this, so
coding a COM DLL seems the way to add a menu and items that can be
called on either folders or files.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-20 Thread Gilles
On Thu, 20 Oct 2011 15:56:43 +0200, Kohn Bernhard
bernhard.k...@ait.ac.at wrote:
it works. You just have to add a new submenu item with the same name but 
different File Type. To this submen you can add a item.

http://imageshack.us/photo/my-images/830/fastexplorerfos.png

Thanks much for the tip :-)

I'll look around how to have the batch file remove the drive letter +
replace backslashes with frontslashes:

Parameters=gdiff --from previous %1

C:\My Projects\fossil.exe gdiff --from previous C:\My
Projects\Form1.vb
C:\fossil.exe: fossil.exe: unknown command: gdiff --from previous
C:\My Projects\Form1.vb
fossil.exe: use help for more information

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-19 Thread Kohn Bernhard
Hi Gilles,

thanks for sharing the idea using Fast Explorer. I find it very good!
For my personal use I have written a small .net program FossilCmd for opening a 
windows command console and sending fossil commands to it.
The windows command console remains open until I close it directly. If there is 
already an open windows command console for this particular working directory, 
the command is send to this window, so there will no cluttering of serval open 
windows command consoles, only one per working directory (this is achieved by 
searching the _FOSSIL_ file in the parent directories).
With the fast explorer I build an explorer menu (only for directories) and call 
the program (e.g. FossilCmd changes %1, where %1 is the directory I selected in 
explorer). This is pretty nice working (just used it for one day).

If this is of any use for others, I can make this public available.

Best regards
  Bernhard
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-19 Thread Gilles
On Wed, 19 Oct 2011 09:33:15 +0200, Kohn Bernhard
bernhard.k...@ait.ac.at wrote:
thanks for sharing the idea using Fast Explorer. I find it very good!

Actually, it's not that good because...
- it requires installing Fast Explorer 
- it requires adding a fossil.bat just to call pause to keep the DOS
box open after fossil.exe exits
- fossil gdiff --from previous myfile.txt doesn't work because %1%
returns the full path
- the gdiff above is called for All Files, which means that this item
is not displayed in the Fossil group like the other items

I haven't found how to add a group + items in the context menu à la
7zip. It seems like we must write a COM DLL for this.

For my personal use I have written a small .net program FossilCmd for opening 
a windows command console and sending fossil commands to it.

Sound good. Could you upload it so we can check it out?

Thank you.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-19 Thread Tomek Kott
For windows users, there is already an effort to get fossil extended to the
explorer context menu. At the moment, the C# library for fossil commands is
being written. See Ingo's SharpFossil library implementation for .NET
purposes:
http://repository.mobile-developers.de/cgi-bin/ikoch/sharpfossil/wiki?name=SharpFossil+Library
.

I think that the library currently has most of the commonly used functions
written, so there might be an opportunity to start coding a explorer
extension using that library.

Just some cents...

Tomek

On Wed, Oct 19, 2011 at 8:59 AM, Gilles gilles.gana...@free.fr wrote:

 On Wed, 19 Oct 2011 09:33:15 +0200, Kohn Bernhard
 bernhard.k...@ait.ac.at wrote:
 thanks for sharing the idea using Fast Explorer. I find it very good!

 Actually, it's not that good because...
 - it requires installing Fast Explorer
 - it requires adding a fossil.bat just to call pause to keep the DOS
 box open after fossil.exe exits
 - fossil gdiff --from previous myfile.txt doesn't work because %1%
 returns the full path
 - the gdiff above is called for All Files, which means that this item
 is not displayed in the Fossil group like the other items

 I haven't found how to add a group + items in the context menu à la
 7zip. It seems like we must write a COM DLL for this.

 For my personal use I have written a small .net program FossilCmd for
 opening a windows command console and sending fossil commands to it.

 Sound good. Could you upload it so we can check it out?

 Thank you.

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-19 Thread Gilles
On Wed, 19 Oct 2011 11:22:38 -0400, Tomek Kott
tkott.s...@gmail.com wrote:
For windows users, there is already an effort to get fossil extended to the
explorer context menu.

I think there's a need for a simple group + items that we can simply
use through file managers like Windows Explorer without launching a
full-fledged application.

www.zhacks.com/2010/03/10/edit-7-zip-right-click-shell-context-menu/

Can someone confirm/infirm that a COM DLL is required for a group +
items to be part of Windows' context menu?

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-14 Thread Gilles
On Thu, 13 Oct 2011 16:19:58 +0200, Gilles
gilles.gana...@free.fr wrote:
2. Is there a way to tell Fossil to pause after running a command, so
the user has some feedback before the DOS box closes, which it does
when running commands that don't prompt the user for more such as
revert or undo?

As a work-around, I built a simple fossil.bat which is called by the
context menu, and prevents the DOS from closing right after running
fossil, which happens when fossil doesn't prompt the user for eg.
typing a comment after commiting changes:

c:\fossil.bat
fossil.exe %1%
pause

I think it'd be useful for all commands to include an option to
somehow prompt the user to hit ENTER, so this little batch file would
no longer be necessary.

HTH,

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding Fossil to Windows Explorer context menu?

2011-10-13 Thread Gilles
On Wed, 12 Oct 2011 18:03:55 +0200, Gilles
gilles.gana...@free.fr wrote:
I read this article about Fast Explorer 2008 which lets the user edit
the items found in the popup menu that is displayed when
right-clicking in Windows Explorer:

www.ghacks.net/2010/08/15/add-custom-items-to-windows-explorer-context-menu/

I was wondering if someone has tried using this to add Fossil, so that
we can at least add/commit changes by just right-clicking in Windows
Explorer?

I played with it today, and it seems to work fine.

1. Through its Submenu Items section, I added a new Item Fossil
that will be called when right-clicking on folders (File Type =
Folder)
2. After selecting the Fossil menu, I clicked on the Item button, and
proceeded to add four items to the menu, each using c:\fossil.exe as
the application but each having their own Parameters (without the
quotes): commit, add %1, revert, and undo.

I can now perform those tasks from within Total Commander instead of
having to open a DOS box and typing the commands.

I have a couple of questions:

1. In Windows, what is the difference between Folder and File
Folder? Fast Explorer provides those two choices, and I have no idea
what the difference is

2. Is there a way to tell Fossil to pause after running a command, so
the user has some feedback before the DOS box closes, which it does
when running commands that don't prompt the user for more such as
revert or undo?

3. In Fast Explorer, does anyone have an idea what the difference is
between Static Items and Shell Extensions? It looks like the
former are just pointers to applications while the latter are pointers
to COM-based DLLs.

Thank you.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users