[email protected]
[Top] [All Lists]

Re: Per-directory editor settings

Subject: Re: Per-directory editor settings
From: wwp
Date: Mon, 4 Sep 2006 16:07:04 +0200
Hello Pavel,


On Mon, 4 Sep 2006 16:35:33 +0300 (EEST) Pavel Tsekov <[email protected]xx> wrote:

> Hello,
> 
> On Sat, 26 Aug 2006, wwp wrote:
>   
> > Do you think it would be a hard job to write a patch (for me) to allow
> > loading a .mceditrc file (that would allow only editor_* options) if such
> > file exists in the directory where mcedit wants to open a file, though?  
> 
> I really cannot tell that :) Why don't you give it a try ?  

Thanks for your reply!

In fact I started working on a small patch for it, but gave up quickly
because I'm really busy elsewhere. I'll see how I can complete a minimalist
patch though.

What came to my mind is the complexity of such feature, towards the ini file.
See: when loading a file (that hook I already found it), I check if a .mcedit
file resides in the file's dir. Now.. there are few points:

1) only allowing editor settings only in that file might need to separate the
ini loading functions of mcedit to split the loading of editor settings a
bit. I'll see if this can be done or we'll have some badly factorized funcs.
To check.

2) now what about the ini saving? If a per-directory .mcedit file has been
loaded, when saving or autosaving-when-quitting, we should save to this ini
file.

3) what about a button in the prefs dialog to load settings from the user's
home or save them there. I wonder..

I'll do that work step by step, first implementing the hook and loading prefs
in a first time. I'll keep you informed.


Regards,

-- 
wwp
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc
<Prev in Thread] Current Thread [Next in Thread>