summaryrefslogtreecommitdiffstats
path: root/krusader/select_from_file.js
blob: 3d00c3257b51e5adf786410806d00f095a50520e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
   This is an extension for the Krusader filemanager
   http://krusader.sourceforge.net/
   
   Author: Dirk Eschler <deschler@users.sourceforge.net>
   
   Reads a file that contains a list of files separated by newline and builds
   a list separated by whitespace from it.
   
   The script is supposed to be used in conjunction with the select_from_file
   user action: http://www.kde-files.org/content/show.php?content=54518   
*/
var filelist = shell("cat " + file).replace(/\n/g, ' ') || "";