Re: What is audio/x-wav D)download or C)cancel anyway?

2013-09-03 Thread Andrew Borodin
On Mon, 2 Sep 2013 19:41:17 -0500 (CDT) Theodore Kilgore wrote:
 
 and why do I get a black screen with this mysterious message at the bottom 
 when I am attempting to play a WAV file in MC running in a terminal (not 
 in X!)? And, of course, I just get this message, no music. What in the 
 world is happening, here?

MC supports system-wide file bindings using xdg-open.

 Just upgraded to Slackware Current on my old eeepc netbook, decided to 
 play a piece of music afterward to relax, and I confronted this.
 
 I looked into the extension editor, and it says about wav files and other 
 sound files that it follows what is in /usr/libexec/mc/ext.d/sound.sh
 
 That file does not seem to contain anything of the kind. It says it is 
 going to use play in the terminal (which is what I expected) and it says 
 it wants to use xmms in X.

Look at the end of sound.sh:

86 open)
87 ${MC_XDG_OPEN} ${MC_EXT_FILENAME} 2/dev/null || \
88 do_open_action ${filetype}

To disable xdg-open in mc, you can define MC_XDG_OPEN=/bin/false.

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


Re: Disabling file highlighting for some types?

2013-09-03 Thread Andrew Borodin
On Fri, 30 Aug 2013 09:34:03 +0200 Dominik Vogt wrote:
 and filehighlight.ini has this section I want to disable:
 
 --
 [temp]
 extensions=tmp;$$$;~;bak
 extensions_case=false
 regexp=(^#.*|.*~$)
 --
 
 How can I disable these predefined rules in the user specific
 configuration?

Copy /etc/mc/filehighlight.ini to ~/.config/mc/ and modify it as you wish.

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


Re: What is audio/x-wav D)download or C)cancel anyway?

2013-09-03 Thread Theodore Kilgore


On Tue, 3 Sep 2013, Andrew Borodin wrote:

 On Mon, 2 Sep 2013 19:41:17 -0500 (CDT) Theodore Kilgore wrote:
  
  and why do I get a black screen with this mysterious message at the bottom 
  when I am attempting to play a WAV file in MC running in a terminal (not 
  in X!)? And, of course, I just get this message, no music. What in the 
  world is happening, here?
 
 MC supports system-wide file bindings using xdg-open.
 
  Just upgraded to Slackware Current on my old eeepc netbook, decided to 
  play a piece of music afterward to relax, and I confronted this.
  
  I looked into the extension editor, and it says about wav files and other 
  sound files that it follows what is in /usr/libexec/mc/ext.d/sound.sh
  
  That file does not seem to contain anything of the kind. It says it is 
  going to use play in the terminal (which is what I expected) and it says 
  it wants to use xmms in X.
 
 Look at the end of sound.sh:
 
 86 open)
 87 ${MC_XDG_OPEN} ${MC_EXT_FILENAME} 2/dev/null || \
 88 do_open_action ${filetype}
 
 To disable xdg-open in mc, you can define MC_XDG_OPEN=/bin/false.

Andrew,

I suppose I can do that. But, OTOH what exactly am I supposed to do 
actually to make this xdg-open actually to do its work and not to go 
crazy instead?

It occurs to me that the problem I had on my main computer a few months 
ago was somehow similar, in that a recent upgrade of MC on the main 
computer was adopting the crazy and extremely inconvenient practice of 
trying to open everything using the web browser, no matter what the file 
was and no matter whether I had an appropriate application installed on 
the computer or not. It seemed at the time that something was suddenly 
needed which had never been needed before, and was not specifically 
explained in any related documentation. We had a discussion about this, 
and it was suggested to create a $HOME/.mime.types file and to put stuff 
in it as needed.

I also corresponded with Patrick Volkerding about this and asked him what 
the problem was. He said, essentially, that there is not supposed to be 
any problem, and probably he is right if one were doing a fresh and clean 
install. There is, he averred, support for mime types in Slackware. The 
problem thus seems to boil down to xdg-open trying to look in some default 
location for that information, and on an older and previously running 
system that particular, default location might not be present because 
whatever software package it happens to be in was never needed for 
anything at all on that particular machine. The man 
page for xdg-open does not provide any enlightenment about this either. 
So, do you happen to know exactly where the information is supposed to be 
which xdg-open is supposed to find, so that xdg-open can be stopped from 
going crazy and forcing every file to be opened in the browser if one is 
in an X session, and other really weird stuff to happen if one is in a 
terminal? What application is it that I do not have installed on the 
netbook which it is somehow just assumed that everybody has installed, on 
which xdg-open is relying?

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


Re: Vim's modeline support

2013-09-03 Thread Andrew Borodin
On Sat, 31 Aug 2013 17:32:28 +0200 Tomasz Wasilczyk wrote:
 Hi,
 
 I recently needed indentation styles set per-file (not globally). Such
 feature is supported by vim with modeline mod enabled, but my favorite
 editor is mcedit. So, I've just wrote modeline support for mcedit.
 
 Here is the patch against current git: http://pastebin.com/99anc269
 
 This is rather a proof-of-concept, than final pull request. If you
 find it useful to add its support to official mcedit, I could polish
 this commit (I guess, mc_findinfile should be moved somewhere and
 named differently).

Yes, it is useful. Please create a ticket on www.midnight-commander.org.

 By the way: how to enable BlockShiftLeft/BlockShiftRight? I tried
 editing mc.keymap, but none of locations where i put it didn't worked.

System-wide in /etc/mc/keymap, section [editor]. For reference:
BlockShiftLeft = alt-shift-left
BlockShiftRight = alt-shift-right

For user only, the same is in ~/.config/mc/mc.keymap.

Both cases are work for me.

Be sure that shortcuts you choose are supported in your terminal.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel