ranger-users
[Top][All Lists]
Advanced

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

Re: [Ranger-users] Scanning all directories at once


From: Hut
Subject: Re: [Ranger-users] Scanning all directories at once
Date: Mon, 7 Apr 2014 19:53:23 +0200
User-agent: Mutt/1.5.22 (2013-10-16)

Hi, thank you very much, and yes, with some python magic:

:eval for dir in fm.thisdir.files: dir.load_content(schedule=True) if 
dir.is_directory else 0

You can turn it into a command with
:alias preload eval for dir in fm.thisdir.files: 
dir.load_content(schedule=True) if dir.is_directory else 0
:preload

or a keybinding with
:map x eval for dir in fm.thisdir.files: dir.load_content(schedule=True) if 
dir.is_directory else 0

hut

On Sun, Apr 06, 2014 at 07:48:24PM +0530, vikas kanhaua wrote:
> Hello All,
> First of all, thanks Hut for this awesome file manager.
> Been my default for a long time now.
> 
> My problem here is that the hard drive of my laptop is slow. So while
> browsing a directory tree with ranger, it scans a particular directory
> only when I reach it via cursor or selection.
> 
> Is is possible to scan all directories under a directory (not
> recursively) with some command or key binding ?
> 
> For example, suppose I have directories from B to E under A and once
> I go inside A, I execute a command so that ranger scans all B-E
> directories and stores the result into cache speeding up the display
> when I actually reach one of the directories.
> 
> -- 
> Vikas Kanhaua
> GPG: 0xFB1F92DB





reply via email to

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