Re: feature request



On 23 December 2013 16:13, Roshan Singh <singh roshan08 gmail com> wrote:
Hi all,
First of all let me thank you for creating such a wonderful project. A
friend told me about this project a year back and I have been using it
daily. I use it on ubuntu(13.04).

I would like to request two small enhancements:

1. Remember last opened git repo and show it on default instead of manually
selecting it.

I can't imagine how we'd do this while being consistent with other
apps and people's expectations. When someone launches the app I don't
think they generally expect their last comparison to happen again,
particularly since this can be quite slow in some cases.

Is there a reason that just using the recent comparisons menu doesn't
do what you want?

2. A refresh button to reload if I have reverted some file from command
line.

There is already a menu item for this with a shortcut... I personally
don't think the action really needs to be any more prominent than
that.

Ideally we'd actually just monitor directories and VC metadata files
and update when they changed, but that seems like a *lot* of work.

I would like to implement these features if you can help me in getting
started. I could not find any guide on the project page.

Yeah, sorry... there's really no 'getting started' guide. However,
Meld isn't a huge codebase as it stands. Some areas are more imposing
(and/or are older code) than others.

In case you wanted to implement either of your ideas for your own use:
 * Reopening the last opened comparison should be a matter of getting
a GtkRecentManager to tell you what is the most recent Meld-associated
file (see recent.py, RecentFiles.__str__) and then opening it (see
meldapp.py, parse_args, the options.comparison_file handling).
 * Adding a Refresh button is very simple. There's already an action
for it defined, so just adding the "Refresh" action to the Toolbar
group in meldapp-ui.xml should do the trick.

cheers,
Kai


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]