Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

cbDiff plugin

<< < (3/6) > >>

daniloz:
First of all, great job!!! This is a really nice plugin... Thank you!!!

I like the new features... However I found some bugs:

- when I use the File|Diff files... menu entry, I got a new tab, but empty. I only get the diff if I resize the tab. I think it's just a refresh missing... :-)

- if I use the "Diff with..." context menu here, nothing happens, i.e. no new tab opened after I select the other file in the list.

And have some suggestions also:

- for me, it would be more natural to have the "Diff with..." context menu when clicking on the tab, instead of on the editor (I'm ok in having both, of course).

- is it possible to have a last entry in the file selection list (from the context menu) to browse for a file? I mean, I'd like to compare an opened file with one that is outside the project, so I'd like to browse the disk for it...

- how difficult it is to have the mouse wheel working on the file selection list (from the context menu)?

Thank's in advance!

GeO:

--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- when I use the File|Diff files... menu entry, I got a new tab, but empty. I only get the diff if I resize the tab. I think it's just a refresh missing... :-)
- if I use the "Diff with..." context menu here, nothing happens, i.e. no new tab opened after I select the other file in the list.

--- End quote ---
Which OS do you use? Both of them work for me on Ubuntu, it's probably a Windows problem. I'll look in to.

Now to the suggestions:

--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- for me, it would be more natural to have the "Diff with..." context menu when clicking on the tab, instead of on the editor (I'm ok in having both, of course).

--- End quote ---
Yes, this was javmss suggestion too, but i didn't found a possibility to access this menu from a plugin. I'll look again, maybe i can find another way

--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- is it possible to have a last entry in the file selection list (from the context menu) to browse for a file? I mean, I'd like to compare an opened file with one that is outside the project, so I'd like to browse the disk for it...

--- End quote ---
Well, i could make a general diff menu, used by all context menus, where you have all three options.
It would something like this: Diff with... -> Open file.. -> submenu with all open files
                                                                 -> Project file.. -> submenu with all project files
                                                                 -> Disk file... -> file selection dialog


--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- how difficult it is to have the mouse wheel working on the file selection list (from the context menu)?

--- End quote ---
As far as i know this is not possible, because wxWidget uses the native menus.

daniloz:

--- Quote from: GeO on January 13, 2011, 02:05:26 pm ---
--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- when I use the File|Diff files... menu entry, I got a new tab, but empty. I only get the diff if I resize the tab. I think it's just a refresh missing... :-)
- if I use the "Diff with..." context menu here, nothing happens, i.e. no new tab opened after I select the other file in the list.

--- End quote ---
Which OS do you use? Both of them work for me on Ubuntu, it's probably a Windows problem. I'll look in to.

--- End quote ---
Yeah... Windows Vista 32bit here... :-(


--- Quote from: GeO on January 13, 2011, 02:05:26 pm ---
--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- is it possible to have a last entry in the file selection list (from the context menu) to browse for a file? I mean, I'd like to compare an opened file with one that is outside the project, so I'd like to browse the disk for it...

--- End quote ---
Well, i could make a general diff menu, used by all context menus, where you have all three options.
It would something like this: Diff with... -> Open file.. -> submenu with all open files
                                                                 -> Project file.. -> submenu with all project files
                                                                 -> Disk file... -> file selection dialog

--- End quote ---
That would be a pretty good solution...


--- Quote from: GeO on January 13, 2011, 02:05:26 pm ---
--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- how difficult it is to have the mouse wheel working on the file selection list (from the context menu)?

--- End quote ---
As far as i know this is not possible, because wxWidget uses the native menus.

--- End quote ---
Pitty... :-)

Anyway, thank you again for the plugin and for the support... ;-)

GeO:

--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- when I use the File|Diff files... menu entry, I got a new tab, but empty. I only get the diff if I resize the tab. I think it's just a refresh missing... :-)
- if I use the "Diff with..." context menu here, nothing happens, i.e. no new tab opened after I select the other file in the list.
- is it possible to have a last entry in the file selection list (from the context menu) to browse for a file? I mean, I'd like to compare an opened file with one that is outside the project, so I'd like to browse the disk for it...

--- End quote ---
fixed and implemented in 1.1.1 (see startpost!)


--- Quote from: daniloz on January 13, 2011, 10:35:53 am ---- for me, it would be more natural to have the "Diff with..." context menu when clicking on the tab, instead of on the editor (I'm ok in having both, of course).

--- End quote ---
I looked in to the source of codeblocks, but now there is no way to access this contextmenu.
However, it could be made accessible by:
*adding a new ModuleType(mtEditorTab) in globals.h
*adding the method "Manager::Get()->GetPluginManager()->AskPluginsForModuleMenu(mtEditorTab, &pop);" in editormanager.cpp's OnPageContextMenu

That would be a simple task, but maybe the devs don't want that plugins can access this menu, because else it will be overloaded just like the editors context menu.

oBFusCATed:
Probably no one have asked this feature, so there is no way to access it :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version