You are not logged in.

#1 2009-11-28 08:52:33

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[vifm] open file with...

Hello guys,

I'm quite impressed about Vifm file manager. But what I still didn't find out is how I can specify default apps for filetypes I'd like to open with vifm. For example I'd like to open images with feh and not with Vi(m) itself as it is preconfigured.

How can I change that behaviour?

Thank you. smile

Offline

#2 2009-11-28 09:14:54

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [vifm] open file with...

Add:

FILETYPE=Images=jpg,jpeg,gif,png,bmp=feh

to your .vifm/vifmrc file. That file is created the first time you run vifm and contains comments regarding FILETYPE...

vifm is a great file manager.

Offline

#3 2009-11-28 09:25:09

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [vifm] open file with...

Hello mikesd,

that's what I was looking for. Thank you.

One last question. Vifm now opens an image with feh, but I'm not able to switch to another picture that is in the same directory unless I close feh first and open another picture with it. When I start feh manually without vifm that works. How could I implement such a slideshow feature?

Last edited by orschiro (2009-11-28 09:25:40)

Offline

#4 2009-11-28 09:36:04

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [vifm] open file with...

I'm guessing that you are running feh as feh . or feh *.jpg to get that functionality. Check the section in the config file above the FILETYPE section. A line like:

COMMAND=feh=feh *.{jpg,jpeg,png}

allows you to type :feh in vifm to view images in the current directory.

Offline

#5 2009-11-28 09:47:46

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [vifm] open file with...

Simply awesome that file manager. big_smile

Works very nice.

Offline

#6 2009-12-01 06:47:22

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [vifm] open file with...

Nice!  So glad I read this.

Thanks.

Offline

#7 2009-12-01 16:02:51

Tjh_
Member
From: Waterloo, Canada
Registered: 2009-11-28
Posts: 11
Website

Re: [vifm] open file with...

Also if I use the FILETYPE to associate files, i have to use the "L" key to open a file, can i make it so <Enter> uses the open command (i.e. what <l> does now in vifm). Enter in mine just runs vim %f.

Offline

#8 2009-12-02 02:54:02

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [vifm] open file with...

Not sure what's wrong with yours.  My enter and l do the same thing.

Maybe try a fresh config file.

Offline

#9 2010-01-21 17:58:07

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [vifm] open file with...

Hello again,

the following line isn't working anymore here on my system. I didn't change anything but I can't slide through the images with feh as it was before.

COMMAND=feh=feh *.{JPG,jpg,jpeg,png}

Do you have the same problem?

Last edited by orschiro (2010-01-21 17:58:19)

Offline

Board footer

Powered by FluxBB