Re: Per-directory editor settings

Hello Pavel,

On Mon, 4 Sep 2006 16:35:33 +0300 (EEST) Pavel Tsekov <ptsekov gmx net> wrote:


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

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.



Attachment: signature.asc
Description: PGP signature

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