[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] log file preview

From: Hut
Subject: Re: [Ranger-users] log file preview
Date: Mon, 14 Apr 2014 04:00:17 +0200
User-agent: Mutt/1.5.23 (2014-03-12)


Try using only "exit 2;;".  This will make ranger use plain text previews.

case "$extension" in
    log)  exit 2;;


On Sun, Apr 13, 2014 at 07:14:09PM +0430, Arman Eshaghi wrote:
> Dear all,
> First thanks for taking the magic of python to the next level, Ranger is my
> ideal file manager with unparalleled efficiency.
> I have two questions:
> 1. I need to add log files inside scope.sh to get preview for my files with
> .log extension so this is what I do but I don't get the preview at all:
> ~/.config/ranger
>  .
> .
> .
> .
>    case "$extension"   in
>     log)
>             cat "$path" | head -n "maxln"
>             success && exit 0 || exit 1;;
> 2. I was wondering whether anyone is aware of a program that  can be used
> to show Nifti files inside terminal? I work with MRI images (medical
> images) that come with '.nii' format and would like to integrate a good
> program for this purpose inside Ranger. Would it be possible to use a
> similar trick as jpeg, etc files?
> All the best,
> Arman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]