aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/urls.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/urls.rb')
-rw-r--r--lib/sisu/v0/urls.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/sisu/v0/urls.rb b/lib/sisu/v0/urls.rb
index 09b15f2d..2a69040a 100644
--- a/lib/sisu/v0/urls.rb
+++ b/lib/sisu/v0/urls.rb
@@ -113,6 +113,7 @@ module SiSU_urls
'h (HTML scroll)'=>@fn[:doc],
'H (HTML scroll)'=>@fn[:doc],
'I (Info file)'=>'info',
+ 'i (manpage)'=>'manpage',
'm (Document Abstraction)'=>'dal',
'N (Digests md5/sha256)'=>@fn[:digest],
'o (ODF:ODT - Open Document)'=>@fn[:odf],
@@ -137,7 +138,7 @@ module SiSU_urls
end
end
def urls_maintenance(opt,x,y)
- if x=~/^([aAbceEhHmNopwxXy])/ and opt.cmd =~/[aAbceEhHmNopwxXy]/ and x=~/^[#{opt.cmd}]/
+ if x=~/^([abchHmNopwxXy])/ and opt.cmd =~/[abchHmNopwxXy]/ and x=~/^[#{opt.cmd}]/
m=$1
f=y
tool=@editor
@@ -164,6 +165,9 @@ module SiSU_urls
if x=~/^o/ and @opt.cmd=~/o/ and x=~/^[#{@opt.cmd}]/
tool=@odf_viewer
end
+ #if x=~/^i/ and @opt.cmd=~/i/ and x=~/^[#{@opt.cmd}]/
+ #
+ #end
if x !~/^m/
tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{tool} #{@env.path.output}/#@fnb/#{y}")
tell.maintenance unless @opt.cmd =~/q/
@@ -180,7 +184,7 @@ module SiSU_urls
@pwd_stub="#@webserv_url"[m,1]
@u.each do |x,y|
if @opt.fns =~ @m_regular
- if x=~/^([aAbceEhHNopsSwxXyY])/ and @opt.cmd=~/[aAbceEhHNopsSwxXyY]/ and x=~/^[#{@opt.cmd}]/
+ if x=~/^([abchHNopsSwxXyY])/ and @opt.cmd=~/[abchHNopsSwxXyY]/ and x=~/^[#{@opt.cmd}]/
m=$1
tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#@browser #@webserv_url/#@fnb/#{y}")
tell.result unless @opt.cmd =~/q/
@@ -201,6 +205,11 @@ module SiSU_urls
tell.result unless @opt.cmd =~/q/
@opt.cmd.gsub!(/d[iu]/,'')
end
+ if x=~/^i/ and @opt.cmd =~/i/
+ tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","nroff -man #{@path.path.manpage}/#@fnb.1 |most")
+ tell.result unless @opt.cmd =~/q/
+ @opt.cmd.gsub!(/I/,'')
+ end
if x=~/^P/ and @opt.cmd =~/P/
tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x} Psql","#@pwd_stub::#{@opt.fns}",y)
tell.result unless @opt.cmd =~/q/
@@ -219,7 +228,7 @@ module SiSU_urls
tell=case x
when /^m/
SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@env.program.text_editor} ~#{y}/#@fnb.#{y}")
- when /^[aAbBcdeEhHNopswxXy]/
+ when /^[abBcdhHNopswxXy]/
tellx=SiSU_Screen::Ansi.new(@opt.cmd,"-p (LaTeX)","#{@env.program.text_editor} ~work/tex_rz/#@fnb.tex") if y=~/landscape/
SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#@browser #@webserv_url/#@fnb/#{y}")
when /^Y/