Re: How to change the defaults for file highlighting?

2009-11-29 Thread Theodore Kilgore



On Sun, 29 Nov 2009, Yury V. Zaytsev wrote:


On Sun, 2009-11-29 at 12:35 -0600, Theodore Kilgore wrote:


So from what I understand you have now made this more permanent by
providing a tie-in to the ini file?

If so, then that's great. We can all be happy.


Yes, from now on you should be able to specify a default of your liking
in the ini-file.



Yuri,

Thanks. Now if someone can specify exactly which code version this is and 
exactly where to get it?



Theodore Kilgore

___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: How to change the defaults for file highlighting?

2009-11-29 Thread Yury V. Zaytsev
On Sun, 2009-11-29 at 13:39 -0600, Theodore Kilgore wrote:

 Thanks. Now if someone can specify exactly which code version this is and 
 exactly where to get it?

[Midnight-Commander]
select_flags = ...


/* selection flags */
typedef enum {
SELECT_FILES_ONLY = 1  0,
SELECT_MATCH_CASE = 1  1,
SELECT_SHELL_PATTERNS = 1  2
} select_flags_t;

 
-- 
Sincerely yours,
Yury V. Zaytsev

___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: How to change the defaults for file highlighting? (fwd)

2009-11-29 Thread Theodore Kilgore


Oops. I didn't reply to the list. Fixed, now.

-- Forwarded message --
Date: Sun, 29 Nov 2009 22:44:02 +0100
From: Yury V. Zaytsev y...@shurup.com
To: Theodore Kilgore kilg...@banach.math.auburn.edu
Subject: Re: How to change the defaults for file highlighting?

On Sun, 2009-11-29 at 15:52 -0600, Theodore Kilgore wrote:


Sorry, that is not exactly what I meant.  I meant where do I get it? Which
version, precisely? An rc version? The main development tree? OK with me
whichever one it is. Just point me in the right direction.


I guess it should be in -pre4 tarball already, but, of course, in latest
master git branch as well.


The thing is, we all have to specialize. I am more or less a consumer of
what you are producing, though, I hope, a somewnat informed one.


I am no better informed than you, I'm not a coder, but rather a
packager. I've just searched the trac, git and the source code to gather
this information for you.

--
Sincerely yours,
Yury V. Zaytsev
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: How to change the defaults for file highlighting?

2009-11-29 Thread Theodore Kilgore



On Sun, 29 Nov 2009, Yury V. Zaytsev wrote:


On Sun, 2009-11-29 at 13:39 -0600, Theodore Kilgore wrote:


Thanks. Now if someone can specify exactly which code version this is and
exactly where to get it?


[Midnight-Commander]
select_flags = ...


/* selection flags */
typedef enum {
   SELECT_FILES_ONLY = 1  0,
   SELECT_MATCH_CASE = 1  1,
   SELECT_SHELL_PATTERNS = 1  2
} select_flags_t;


I guess I am not out of the woods, yet. Two things:

1. I updated the git tree, re-compiled, and re-installed. No problem about 
that. But then I looked in my ini file, and I see no such option as


select_flags =

The only thing which comes up when searching the file for select is

editor_persistent_selections=1

which would seem quite irrelevant.

OK, so I thought perhaps extreme measures ought to be tried. I downloaded 
a clean copy of the git tree, and I did make uninstall on the old one and 
did make install on the new one. Then, on trying to make it work, I got an 
error message, that /usr/libexec/mc/mc-wrapper.sh can not be found. So 
apparently there is some funny business with the installer not putting a 
crucial file where it is supposed to be.


Fortunately, I have a Slackware tarball of an older version which works, 
so I am not left entirely without one of my favorite programs.


In any event, I could never find out how to enable the specific feature we 
have been discussing. Finding the lines in the code which you quoted 
earlier were not a big help in that regard.


Thus, not much progress, I am sorry to say.

Theodore Kilgore
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: How to change the defaults for file highlighting?

2009-11-29 Thread Andrew Borodin
On Sun, 29 Nov 2009 12:35:12 -0600 (CST) Theodore Kilgore wrote:
 On Sun, 29 Nov 2009, Andrew Borodin wrote:
  Since 11/18/2009 all options of Select/Unselect group dialog are
  saved in 'select_flags' ini option (see 
  http://www.midnight-commander.org/ticket/1776).

 1. Precisely to which version of the code does this patch pertain?
 I see there 4.70 and 4.70-pre4

mc-4.7.0-pre4 was released before 11/18/2009. You should use the snapshot
of current git master branch or just wait for a week (or two) for final
4.7.0 release.

 2. How will things be different after the patch, exactly? What happens
 right now is:
 
 First time I open MC and do a highlighting, it by default marks
 everything, including directories. Then I have to tick the box for
 Files only, and it gets remembered for the entire session. I mean, if I
 later on do a highlighting again, my previous choice is remembered,
 though not recorded anywhere that I can find.
 So from what I understand you have now made this more permanent by
 providing a tie-in to the ini file?

Yes. If option Auto save setup is off, ~/.mc/ini file will not be
rewritten after quit from mc, and your settings will be stored
permanently.

-- 
Andrew.
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


How to change the defaults for file highlighting?

2009-11-28 Thread Theodore Kilgore


Until very recently in the history of MC, file highlighting with 
Keypad-Plus highlighted only files. Now this behavior has been changed. A 
dialog box comes up which has a couple of useful features and one feature 
which from my perspective is both useless and irritating, especially 
since I became used to the opposite behavior for the previous ten years 
of constant desktop use of MC. This one


 [ ] Files only

Since it has been decided that a dialog for this feature has to be 
there, is there any configuration option by which one can change the 
default choice to be


 [x] Files only

instead of

 [ ] Files only

?

If there is such an option, I have not succeeded in finding it.

Theodore Kilgore
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc