summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-09-18 01:14:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-09-18 01:14:00 +0200
commita72a9463a78650d028b891fe8eb6dcbb093bdee2 (patch)
tree10d7cca7a73d7bdd45c5b6a70fe3f54c9ba09b55 /scripts
parentdff826c2db3ce210786c0b99ff39bac799d8450c (diff)
downloadcontext-a72a9463a78650d028b891fe8eb6dcbb093bdee2.tar.gz
beta 2013.09.18 01:14
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-tools.lua1
-rw-r--r--scripts/context/ruby/base/pdf.rb10
2 files changed, 10 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-tools.lua b/scripts/context/lua/mtx-tools.lua
index 19b7458a1..a38e9d7e6 100644
--- a/scripts/context/lua/mtx-tools.lua
+++ b/scripts/context/lua/mtx-tools.lua
@@ -31,6 +31,7 @@ local helpinfo = [[
<flag name="recurse"><short>recurse into subdirecories</short></flag>
<flag name="stripname"><short>take pathpart of given pattern</short></flag>
<flag name="longname"><short>set name attributes to full path name</short></flag>
+ <flag name="downcase"><short>lowercase names</short></flag>
</subcategory>
<subcategory>
<flag name="pattern"><short>glob pattern (default: *)</short></flag>
diff --git a/scripts/context/ruby/base/pdf.rb b/scripts/context/ruby/base/pdf.rb
index 5aec06fc5..6be0d3f98 100644
--- a/scripts/context/ruby/base/pdf.rb
+++ b/scripts/context/ruby/base/pdf.rb
@@ -5,16 +5,24 @@ module PDFview
@closecalls = Hash.new
@allcalls = Hash.new
- @method = 'default' # 'xpdf'
+ # acrobat no longer is a valid default as (1) it keeps crashing with pdfopen due to a dual acrobat/reader install (a side effect
+ # of the api changing every version, and (2) because there are all these anyoing popups with respect to signed, review, online
+ # this and that stuff ... hardly useable as fast previewer, and (3) sumatra is faster and nicer and doesn't block (okay, we have to
+ # get rid of this horrible yellow bg-coloring buts that is doable
+
+ @method = 'sumatra' # 'default' # 'xpdf'
@opencalls['default'] = "pdfopen --file" # "pdfopen --back --file"
@opencalls['xpdf'] = "xpdfopen"
+ @opencalls['sumatra'] = 'start "test" sumatrapdf.exe -reuse-instance -bg-color 0xCCCCCC'
@closecalls['default'] = "pdfclose --file"
@closecalls['xpdf'] = nil
+ @closecalls['sumatra'] = nil
@allcalls['default'] = "pdfclose --all"
@allcalls['xpdf'] = nil
+ @allcalls['sumatra'] = nil
def PDFview.setmethod(method)
@method = method