about summary refs log blame commit diff stats
path: root/res/config.toml
blob: 32e390e5b3b4073c7cc68720857904587a08cefb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
       
                            
                   

                


           

                                                        
                        

                              



                    



                    
         

                    

                             
                   
                        
                              
                      
                   
 

               
                                                                                                                                  
 
      
            

















                               
                                  
















                               
                          
                    
                          
                                            
                    

                     
                        
                              





                             
                           
                          
                                   
                          

                                   
                       

                               

                        

                        
                                                                                                                

      




















                            

                       

                                                      
                                               
   
[start]
visual-home = "about:chawan"
startup-script = ""
headless = false

[search]
wrap = true

[encoding]
document-charset = ["utf-8", "sjis", "euc-jp", "latin2"]
display-charset = "auto"
#system-charset = "auto" #TODO

[external]
tmpdir = "/tmp/cha"
editor = "vi %s +%d"

[network]
max-redirect = 10
prepend-https = true

[display]
color-mode = "auto"
format-mode = "auto"
no-format-mode = ["overline"]
emulate-overline = true
alt-screen = "auto"
highlight-color = "cyan"
double-width-ambiguous = false
minimum-contrast = 100
force-clear = false

[[omnirule]]
match = '^ddg:'
substitute-url = '(x) => "https://lite.duckduckgo.com/lite/?kp=-1&kd=-1&q=" + encodeURIComponent(x.split(":").slice(1).join(":"))'

[page]
q = 'quit()'
h = 'pager.cursorLeft()' 
j = 'pager.cursorDown()'
k = 'pager.cursorUp()'
l = 'pager.cursorRight()'
'M-[D' = 'pager.cursorLeft()' 
'M-[B' = 'pager.cursorDown()'
'M-[A' = 'pager.cursorUp()'
'M-[C' = 'pager.cursorRight()'
'^' = 'pager.cursorLineBegin()'
'$' = 'pager.cursorLineEnd()'
b = 'pager.cursorPrevWord()'
w = 'pager.cursorNextWord()'
'[' = 'pager.cursorPrevLink()'
']' = 'pager.cursorNextLink()'
H = 'pager.cursorTop()'
M = 'pager.cursorMiddle()'
L = 'pager.cursorBottom()'
';' = 'pager.cursorLeftEdge()'
'+' = 'pager.cursorMiddleColumn()'
'@' = 'pager.cursorRightEdge()'
C-d = 'pager.halfPageDown()'
C-u = 'pager.halfPageUp()'
C-f = 'pager.pageDown()'
C-b = 'pager.pageUp()'
'M-[6~' = 'pager.pageDown()'
'M-[5~' = 'pager.pageUp()'
'>' = 'pager.pageRight()'
'<' = 'pager.pageLeft()'
C-e = 'pager.scrollDown()'
C-y = 'pager.scrollUp()'
J = 'pager.scrollDown()'
K = 'pager.scrollUp()'
'('= 'pager.scrollLeft()'
')' = 'pager.scrollRight()'
C-m = 'pager.click()'
C-j = 'pager.click()'
M-u = 'pager.dupeBuffer()'
C-l = 'pager.load()'
C-k = 'pager.load("ddg:")'
M-b = 'pager.load("~/.w3m/bookmark.html\n")'
U = 'pager.reload()'
r = 'pager.redraw()'
R = 'pager.reshape()'
M-C-c = 'pager.cancel()'
1G = 'pager.cursorFirstLine()'
g = 'pager.cursorFirstLine()'
G = 'pager.cursorLastLine()'
z = 'pager.centerLine()'
C-g = 'pager.lineInfo()'
v = 'pager.toggleSource()'
D = 'pager.discardBuffer()'
M-d = 'pager.discardTree()'
',' = 'pager.prevBuffer()'
'M-,' = 'pager.prevSiblingBuffer()'
'.' = 'pager.nextBuffer()'
'M-.' = 'pager.nextSiblingBuffer()'
'M-/' = 'pager.parentBuffer()'
M-c = 'pager.command()'
'/' = 'pager.isearchForward()'
'?' = 'pager.isearchBackward()'
n = 'pager.searchNext()'
N = 'pager.searchPrev()'
c = 'pager.peek()'
u = 'pager.peekCursor()'
C-w = 'config.searchwrap = !config.searchwrap; pager.alert("Wrap search " + (config.searchwrap ? "on" : "off"))'

[line]
C-m = 'line.submit()'
C-j = 'line.submit()'
C-h = 'line.backspace()'
'C-?' = 'line.backspace()'
C-d = 'line.delete()'
C-c = 'line.cancel()'
M-b = 'line.prevWord()'
M-f = 'line.nextWord()'
C-b = 'line.backward()'
C-f = 'line.forward()'
C-u = 'line.clear()'
C-_ = 'line.clear()'
M-k = 'line.clear()'
C-k = 'line.kill()'
C-w = 'line.clearWord()'
M-C-h = 'line.clearWord()'
'M-C-?' = 'line.clearWord()'
M-d = 'line.killWord()'
C-a = 'line.begin()'
C-e = 'line.end()'
C-v = 'line.escape()'
C-p = 'line.prevHist()'
C-n = 'line.nextHist()'
M-c = '''
pager.commandMode = !(console.buffer == pager.buffer);
console[pager.commandMode ? "show" : "hide"]();
'''