Re: multiple configs
On Sat, 28 Nov 2009, Yury V. Zaytsev wrote: To: /dev/rob0 r...@gmx.co.uk From: Yury V. Zaytsev y...@shurup.com Subject: Re: multiple configs On Sat, 2009-11-28 at 13:42 -0600, /dev/rob0 wrote: On Sat, Nov 28, 2009 at 02:08:53PM -0500, MK wrote: Is it possible to start mc with an alternate .ini file? Judging by the man page, I suspect not, but I have to ask. I found out with a simple experiment: $ mkdir mc-test # not strictly necessary but it helps $ HOME=$HOME/mc-test mc What about creating a hard link in the .mc/ directory to the required configuration file in same directory. Name the hard-link 'ini' and point it mc-ini-whatever? I tried this and it works. The only thing is when you edit and save the ini file in using mc itself, using the 'hard link' the following message appears: ┌── Warning ───┐ │ File has hard-links. Detach before saving? │ │ │ │ [ Yes ] [ No ] [ Cancel ] │ └┘ Kind Regards, Keith Roberts - Websites: http://www.karsites.net http://www.php-debuggers.net All email addresses are challenge-response protected with TMDA [http://tmda.net] Where will you spend Eternity? http://www.fellowshiptractleague.org/tract_pdf/english/130.pdf -___ Mc mailing list http://mail.gnome.org/mailman/listinfo/mc
Re: multiple configs
On Sat, 2009-11-28 at 19:46 -0500, MK wrote: I just have this feeling I would do a little less ctrl-t if they were, for example, different colors. I might be wrong, but it's worth a try. Also different listing modes might be useful. The only justification I would be convinced with is e.g. using different color schemes for mc's running from different user accounts (blue for main, red for root, green for limited users etc.), but this is already possible. Create a ticket with the justification on the trac if Rob's suggestion of using the HOME hack does not work for you, we shall see what the others have to say about this. -- Sincerely yours, Yury V. Zaytsev ___ Mc mailing list http://mail.gnome.org/mailman/listinfo/mc
Re: How to change the defaults for file highlighting?
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?
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: multiple configs, and --program-prefix
My problem w/ rob0's method is that, as Yuri points out, the subshell now thinks ~ is something it is not, which for starters means copying or symlinking .bashrc, etc. I could not find a configure option for this, so in the src/ directory of the tarball I tried this: perl -pi -e's/\.mc/.mc2/g' *.* and then compiled normally and ran make, but not make install -- I just renamed the executable mc2 (nb. I do not use the internal editor!) and copied into /usr/local/bin next to the original mc. I used the same source for both -- which brings up another question or issue. I was going to use the latest 4.7, configured --program-prefix=2, but after the make, all the binaries still had the normal name. Does make install add the prefixes? It does not appear to me from the Makefile that it will, so I did not try. mc2 appears to run fine and it uses ~/.mc2 as it's config directory. Yay! I suppose it may take a few days to see if it will work out, but I don't think there will be a problem. I think this would be a nice option and very easy to impliment as a command line option -- I could write a patch for it myself, if that is desired and allowed (who should I talk to?). -- MK halfcountp...@intergate.com C/perl/web programmer ___ Mc mailing list http://mail.gnome.org/mailman/listinfo/mc
Re: multiple configs, and --program-prefix
On Sun, 2009-11-29 at 15:03 -0500, MK wrote: I could not find a configure option for this, so in the src/ directory of the tarball I tried this: CFLAGS='-DMC_USERCONF_DIR=\.mc2\' is your friend. I think this would be a nice option and very easy to impliment as a command line option -- I could write a patch for it myself, if that is desired and allowed (who should I talk to?). Join the discussion: http://www.midnight-commander.org/ticket/1851 -- Sincerely yours, Yury V. Zaytsev ___ Mc mailing list http://mail.gnome.org/mailman/listinfo/mc
Re: Mc Digest, Vol 67, Issue 20
Hello, I've been lurking in this mailing list for some time now and would like to proceed on some of this now. Is this an acceptable means to introduce a question? I really do not understand the mechanics of it, being new to mailing lists. Again my first question is how do I use this medium to post a question? Thanks for your comment and cheers, - Original Message - From: mc-requ...@gnome.org To: mc@gnome.org Sent: Sunday, November 29, 2009 3:47 PM Subject: Mc Digest, Vol 67, Issue 20 Send Mc mailing list submissions to mc@gnome.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.gnome.org/mailman/listinfo/mc or, via email, send a message with subject or body 'help' to mc-requ...@gnome.org You can reach the person managing the list at mc-ow...@gnome.org When replying, please edit your Subject line so it is more specific than Re: Contents of Mc digest... Today's Topics: 1. Re: multiple configs (Yury V. Zaytsev) 2. Re: How to change the defaults for file highlighting? (Andrew Borodin) 3. Re: How to change the defaults for file highlighting? (Theodore Kilgore) 4. Re: How to change the defaults for file highlighting? (Yury V. Zaytsev) 5. Re: How to change the defaults for file highlighting? (Theodore Kilgore) 6. Re: How to change the defaults for file highlighting? (Yury V. Zaytsev) 7. Re: multiple configs, and --program-prefix (MK) 8. Re: multiple configs, and --program-prefix (Yury V. Zaytsev) 9. Re: How to change the defaults for file highlighting? (Theodore Kilgore) 10. Re: How to change the defaults for file highlighting? (Yury V. Zaytsev) -- Message: 1 Date: Sun, 29 Nov 2009 13:44:11 +0100 From: Yury V. Zaytsev y...@shurup.com To: MK halfcountp...@intergate.com Cc: mc@gnome.org Subject: Re: multiple configs Message-ID: 1259498651.7347.4.ca...@mypride Content-Type: text/plain On Sat, 2009-11-28 at 19:46 -0500, MK wrote: I just have this feeling I would do a little less ctrl-t if they were, for example, different colors. I might be wrong, but it's worth a try. Also different listing modes might be useful. The only justification I would be convinced with is e.g. using different color schemes for mc's running from different user accounts (blue for main, red for root, green for limited users etc.), but this is already possible. Create a ticket with the justification on the trac if Rob's suggestion of using the HOME hack does not work for you, we shall see what the others have to say about this. -- Sincerely yours, Yury V. Zaytsev -- Message: 2 Date: Sun, 29 Nov 2009 16:33:43 +0300 From: Andrew Borodin aboro...@vmail.ru To: mc@gnome.org Subject: Re: How to change the defaults for file highlighting? Message-ID: web-882845...@box.vrn.ru Content-Type: text/plain;charset=koi8-r On Sat, 28 Nov 2009 15:04:29 -0600 (CST) Theodore Kilgore wrote: 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. It's controversial issue. Something is useless for you, but that is useful for me. Previous ten years I used 2-step way to select all stuff in a directory: 1st step to select files and 2nd step to select directories. Now I can do that by one action. If there is such an option, I have not succeeded in finding it. 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). -- Andrew -- Message: 3 Date: Sun, 29 Nov 2009 12:35:12 -0600 (CST) From: Theodore Kilgore kilg...@banach.math.auburn.edu To: Andrew Borodin aboro...@vmail.ru Cc: mc@gnome.org Subject: Re: How to change the defaults for file highlighting? Message-ID: alpine.lnx.2.00.0911291202390.2...@banach.math.auburn.edu Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Sun, 29 Nov 2009, Andrew Borodin wrote: On Sat, 28 Nov 2009 15:04:29 -0600 (CST) Theodore Kilgore wrote: 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. It's controversial issue. Something is useless for you, but that is useful for me. Previous ten years I used 2-step way to select all stuff in a directory: 1st step to select files and 2nd step to select directories. Now I can do that by one action. Andrew, And now what I became accustomed to do with one action I have to do with two :( Most of the time, I want to deal with files, not with subdirectories. So from my point of view this is an irritating inconvenience. Worse. If I do not look twice, I ended up doing something that I really did not want to do, at all, and there may or may not be a way to undo it. Worst-case
Re: Mc Digest, Vol 67, Issue 20
On Sun, 2009-11-29 at 14:58 -0600, Merrill Jensen wrote: Again my first question is how do I use this medium to post a question? Just send an email to mc@gnome.org . -- 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)
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?
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?
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