summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-09-18 02:20:26 +0300
committerMarius <mariausol@gmail.com>2013-09-18 02:20:26 +0300
commit28ca2f4e9846c23692b1a88f3bb941a5b84ce95f (patch)
tree9dfd92a292b4caf7d407490c4cd4d8a45e6f6047 /scripts
parenteb70e25dec7a24bfc6a395a2896f4aec97177f59 (diff)
downloadcontext-28ca2f4e9846c23692b1a88f3bb941a5b84ce95f.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