Re: [Komodo-beta] Local Places improvements

Eric Promislow <[email protected]> Mon, 03 May 2010 10:22:53 -0700
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
Hi Davide,

My answers inline...

On 5/2/2010 11:55 PM, Davide Ficano wrote:
> Before submitting bug/feature improvements I would discuss some ideas
> about Places
>
> I'm using Local Places on KO6 and it is very useful but I've already
> added two little improvements
>
> - new editor context menu to quickly moving Places on file directory

> - new menu item on 'Places Tools' to toggle automatically the move, like
> the Eclipse 'Link with Editor' feature

Actually we have discussed that.  They're both easy to implement.
>
> My doubt is: do you plan to add these features to final KO6 or can I
> integrate on MoreKomodo?
> If you plan to add them to the core I don't release a MoreKomodo version
> with these duplicated functionalities.
>
> API: From Places API seems not possible to select an item, suppose I
> move to the directory containing the file 'a.txt'
> and then I want to scroll to 'a.txt' and select it, how can I do that
> programmatically?
> May you add a method to ko.places.manager?

You have full access to the standard tree methods via

ko.places.viewMgr.view: nsITreeView

document.getElementById("places-files-tree").treeBoxObject: nsITreeBoxObject

So you can put them together like so:

var index = ko.places.viewMgr.view.getRowIndexForURI(url);
document.getElementById("places-files-tree").treeBoxObject.ensureRowIsVisible(index);

Note that I'm planning a refactoring of the Places API.  At some point
ko.places.viewMgr and ko.places.manager will be merged
into one ko.places.manager API.  I'll leave 'viewMgr' as a deprecated
alias for 'manager', so any code you ship will still work.

>
> Favorites: I want to modify MoreKomodo to allow Favorites to open the
> Places tab but again if you have any plan to implement a Bookmarking
> system then I can stop my work.

We do have plans there.

Thanks again,
Eric

>
> davide
>
>
>
> _______________________________________________
> Komodo-beta mailing list
> [email protected]
> http://listserv.ActiveState.com/mailman/listinfo/komodo-beta
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss