#gtk-toolbar-icon-size = small-toolbar
#gtk-toolbar-icon-size = large-toolbar


# Description below is just an example.

style "ochusha-default-style"
{
#  font_name="Mona 10"
#  font_name="MS UI Gothic 10"
}


#Ƥɽ˴ؤ륹λ
#ɽǻȤեȤϤǻꤷƤΤ
#ǻꤷΤȤ롣
#Ƭ#ȥơޤˤ㤨ХեȤξ硢GNOME
#˥塼饢ץꥱ/ǥȥåפ/եȤ򤹤ȳ
#եȤΥץѥƥΡ֥ץΥեȡפǻꤵ줿եȡˤ
#롣
#class "GtkWidget" style "ochusha-default-style"


binding "ochusha-text-binding"
{
  bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }
  bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }
  bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }
  bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }

  bind "<meta>b"  { "move-cursor" (words, -1, 0) }
  bind "<shift><meta>b"  { "move-cursor" (words, -1, 1) }
  bind "<meta>f"  { "move-cursor" (words, 1, 0) }
  bind "<shift><meta>f"  { "move-cursor" (words, 1, 1) }

  bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }
  bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }
  bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }
  bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }

  bind "<ctrl>w" { "cut-clipboard" () }
  bind "<ctrl>y" { "paste-clipboard" () }

  bind "<ctrl>d" { "delete-from-cursor" (chars, 1) }
  bind "<ctrl>h" { "delete-from-cursor" (chars, -1) }
  bind "<meta>d"  { "delete-from-cursor" (word-ends, 1) }
  bind "<ctrl>k" { "delete-from-cursor" (paragraph-ends, 1) }
  bind "<meta>backslash"  { "delete-from-cursor" (whitespace, 1) }

  bind "<meta>space" { "delete-from-cursor" (whitespace, 1)
                      "insert-at-cursor" (" ") }
  bind "<meta>KP_Space" { "delete-from-cursor" (whitespace, 1)
                         "insert-at-cursor" (" ") }

  bind "<ctrl>p" { "move-cursor" (display-lines, -1, 0) }
  bind "<ctrl>n" { "move-cursor" (display-lines, 1, 0) }
  bind "<meta>v"  { "move-cursor" (pages, -1, 0) }
  bind "<ctrl>v" { "move-cursor" (pages, 1, 0) }
}


binding "ochusha-thread-view-binding"
{
  bind "<ctrl>p" { "move-viewport" (steps, -1) }
  bind "<ctrl>n" { "move-viewport" (steps, 1) }
  bind "<meta>v"  { "move-viewport" (pages, -1) }
  bind "<ctrl>v" { "move-viewport" (pages, 1) }
  bind "<ctrl>s" { "start-interactive-search" (0) }
  bind "<ctrl>r" { "start-interactive-search" (1) }
}


#Ƭ#Ƚ񤭹ߥǥ䥹ɽEmacsʥ
# Хǥ󥰤ˤʤ
#class "GtkTextView" binding "ochusha-text-binding"
#class "OchushaHypertextView" binding "ochusha-thread-view-binding"


binding "ochusha-response-editor-binding"
{
  bind "Escape" { "nop" () }
}


#Ƭ#Ƚ񤭹ߥǥEscape̵뤹褦ˤʤ롣
#class "OchushaResponseEditor" binding "ochusha-response-editor-binding"


binding "ochusha-tree-view-binding"
{
  bind "<ctrl>l" { "center-cursor-on-screen" () }
  bind "<ctrl>s" { "start-interactive-search" () }
  bind "<ctrl>r" { "start-interactive-search" () }
}


#Ƭ#İ֥åޡӥˤơ
#  ^s^rǸСͭˤʤ롣
#class "OchushaTreeSelectorView" binding "ochusha-tree-view-binding"


binding "ochusha-searchbar-binding"
{
  bind "<ctrl>g" { "response" (-6) }
  bind "<ctrl>bracketleft" { "response" (-6) }
  bind "<ctrl>r" { "find-previous" () }
  bind "<ctrl>s" { "find-next" () }
}


#Ƭ#ȸС^s^rǤ褦ˤʤꡢ
#  ^g˸λХɤ롣
#class "OchushaSearchbar" binding "ochusha-searchbar-binding"
