mc-filebindings (Anwendung bei bestimmtem dateityp öffnen)

Du hast Probleme mit Deinem eMail-Programm, Webbrowser oder Textprogramm? Dein Lieblingsprogramm streikt?
Antworten
schwedenmann
Beiträge: 5528
Registriert: 30.12.2004 15:31:07
Wohnort: Wegberg

mc-filebindings (Anwendung bei bestimmtem dateityp öffnen)

Beitrag von schwedenmann » 07.05.2019 20:17:28

Hallo


In der welcher 3 dateien muß ich was eintragen,. um mir im mc z.B. pdf - xpdf, Grfdaik - geeqie Video - VLC anzeigen zu lassen ?


In der /*.mc/mc.ext habe ich Einträge f0r xpdf das wird aber ignoriert.
# PDF
type/^PDF
# #Open=/usr/lib/mc/ext.d/doc.sh open pdf
Open=(xpdf %f >/dev/null 2>&1 &)
View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view pdf
oder
include/video
Open=(vlc %f >/dev/null 2>&1 &)
#Open=(gtv %f >/dev/null 2>&1 &)
#Open=(xanim %f >/dev/null 2>&1 &)

Was muß man da was eintragen, das die entsprechende Applikation geladen wird?

mfg
schwedenmann

willy4711

Re: mc-filebindings (Anwendung bei bestimmtem dateityp öffnen)

Beitrag von willy4711 » 07.05.2019 21:50:42

Wenn du daraus schlau wirst aus der manpage:

Code: Alles auswählen

Parameters for external editor or viewer
       Midnight Commander provides a way for specify an options for external editors and viewers. Midnight Commander tries to search the "[External ed‐
       itor  or  viewer  parameters]" section in the system initialization file (the mc.lib file located in Midnight Commander's library directory) and
       then in the ~/.config/mc/ini file. The option name should be equal to the name (full pathname) of external editor or viewer.  The  option  value
       can contain following variables:

       %filename
              The filename to edit/view.

       %lineno
              The start line in the opening file.

       For example:

       [External editor or viewer parameters]
           vi=%filename +%lineno
           joe=%filename +%lineno
           more=%filename +%lineno

       Start line is passed to the external editor/viewer only if it is called from the Find file results window.

       If external editor/viewer is launched via F4/F3 keys, MC hopes that program (at least "joe", but probably others too) has an own feature that by
       default opens the file where it was last open. MC doesn't prevent external editor/viewer to save and restore position in opened files.
Ansonsten gibt es da noch die /lib/mc/ext.d/doc.sh ob man da was ändern kann ? Bin da aber schlichtweg überfragt.

Antworten