News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Shell Extension plugin: win32 plugin binaries

Started by dmoore, August 08, 2007, 07:47:24 PM

Previous topic - Next topic

dje

Quoteyou mean right clicking in the opened files list? not so easy because as far as I can tell the opened files list doesn't call BuildModuleMenu
Far more simple  :)
When I open a file through the explorer, I think it should be added to the recent files list of the file menu.

Quotewell it already exists now. you can right click on a directory in the tree and click add to favorites. you can manage the list of favorites with "view->manage favorites" (rather strange location for the option admittedly)
Yes, I know it. I think it is better to have to controls : one for history, the second for favorites. It's cleaner.

Concerning icons, it doesn't matter. I was surprised to select SVN Decorators and see nothing in my C::B project, even an advertisement.
I did not find the problem immediatly because SVN is used through TortoiseSVN.

Really good works !

Dje

dje

Features propositions:
- navigation keys to go back and forward in navigation history
- When you select a favorite directory, it is set as root. I'd like to use backspace or left key on the root to be able to switch back to "standard" disk tree and go back into parent folder.
- could you handle relative paths in the path text control ?

Dje

dmoore

Quote from: dje on August 09, 2007, 07:11:57 PM
- navigation keys to go back and forward in navigation history

yes, but just like having a favorites button it means more space is taken up by navigation controls.

Quote
- When you select a favorite directory, it is set as root. I'd like to use backspace or left key on the root to be able to switch back to "standard" disk tree and go back into parent folder.

yes. I just need to figure out how to intercept keystrokes correctly.

Quote
- could you handle relative paths in the path text control ?

yes, I will definitely implement this.

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dje

3 propositions, 3 yes ! Nice to deal with you  :wink:

Concerning space, you could propose as an option the buttons display.
I think they could be added on the Wildcard row, which is, to my mind, less useful than path text control.
Another option could be a toolbar.

Dje

dje

Bug ?

When I double click on a file, I get the "What to do ?" window.
When I click on enter with the same file selected, I get the following message in the Code::Blocks log :
QuoteERROR: Could not open file ''.
The registered handler (Files extension handler) could not open it.

Win XP SP2
SVN 4361

Dje

dmoore

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dmoore

#21
looks like it affects all files. definitely a bug.

EDIT: I think I made the mistake of assuming the event.GetItem() would always contain the selected item, but it looks like this is only true for double clicking, not pressing enter on win32 (works on Linux, though)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dje

I use GetItem in a tree control on my PC and it works on my wxTreeEvent with my SP2.

Dje

mariocup

Hi Damien,

the screenshot is one of my favorite programs Krusader (krusader.sf.net).

mariocup

Hi Damien,

I thought about how to manage the favorites and an idea come to my mind. What would be nice to manage favorites like virtual folders/categories. For examples you have a category documentation and under this category you have different favorites e.g. d:\documents\, n:\doc and network shares. This could be something like a bookmark manager in web browser. Just think about it. :D

mariocup

Hi Damien,

as I am using your file explorer every day I have a feature request. :D
If I mark one file in the file explorer and open the context menu I get Open in CB Editor, but if I mark several files I do not get this context menu entry. I would be nice to open several files with just one click to enchance working.

Bye

dmoore

#26
yes, I'll put it on my todo list. I haven't had a lot of time to work on the plugin lately and recently lost my development machine (motherboard failure). I'll get to this sometime in the next few weeks, though...

the biggest weakness with the plugin right now is the polling for files on the main thread (this is especially slow when polling for file states in directories under version control). I've sketched out some prototype code to do the file listening in a background thread and hopefully get an opportunity to implement that soon.

also here's an extension to try: when you want to use the native file explorer to browse a folder that is listed in the tree add an extension "Explore" that spawns the command "explorer $dir" (for windows explorer, substitute your favourite File Manager...)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

roshi

Hi,
is this thing or something similar available for the linux build?

Thanks

dmoore

it works on linux but you have to compile from source (available from the project svn - link to project in my sig). It's slightly painful to build because I haven't created makefiles (I have supplied ShellExtensions-unix.cbp project files but that assumes you have compiled CB itself from source from within CB using the supplied codeblocks-unix.cbp files). makefile patches welcome!
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]