[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:25021] Re: Plamoのqvwmについて



こんばんわ。
ワタナベです。

At Tue, 01 Mar 2005 13:17:51 +0900 (JST),
Ando Tsutomu wrote:
> 
> > # 軽いのはうれしいけど,キーバインドがイマイチ気にいらない(URL 入力時
> > # に ^H が効かない,とか)ので,使い続けるかは不明... > firefox
> 
> 私もこれが非常に不満だったのですが、
> ~/.gtkrc-2.0 というファイルを作って、
> 
> gtk-key-theme-name = "Emacs"
> 
> の一行を記述するだけで幸せになれました。

FYIです。
http://www.mozilla-japan.org/unix/customizing.html#keys

res/builtin/userHTMLBindings.xml ファイルを以下のように作成すると良い
みたいです。

はっきりとは憶えていないのですが、以前(0.8くらい?)には、以下のような
記述(コメントのEmacsishのくだり)がデフォルトでありました。ただ、0.9か
1.0くらいからばっさり削除されてしまっています。
昔のものを流用して1.0で使っていますが、特に問題ないようです。

# ちなみに、k、jでscrollLineUp、Downするのは好みです ;)


---------- res/builtin/userHTMLBindings.xml はじまり ----------
<?xml version="1.0"?>

<bindings id="htmlBindings"
   xmlns="http://www.mozilla.org/xbl"
   xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <binding id="inputFields">
    <handlers>
    <!-- Emacsish single-line motion and delete keys -->
    <handler event="keypress" key="a" modifiers="control"
        command="cmd_beginLine"/>
    <handler event="keypress" key="e" modifiers="control"
        command="cmd_endLine"/>
    <handler event="keypress" key="b" modifiers="control"
        command="cmd_charPrevious"/>
    <handler event="keypress" key="f" modifiers="control"
        command="cmd_charNext"/>
    <handler event="keypress" key="h" modifiers="control"
        command="cmd_deleteCharBackward"/>
    <handler event="keypress" key="d" modifiers="control"
        command="cmd_deleteCharForward"/>
    <handler event="keypress" key="w" modifiers="control"
        command="cmd_deleteWordBackward"/>
    <handler event="keypress" key="u" modifiers="control"
        command="cmd_deleteToBeginningOfLine"/>
    <handler event="keypress" key="k" modifiers="control"
        command="cmd_deleteToEndOfLine"/>

    </handlers>
  </binding>

  <binding id="textAreas">
    <handlers>
    <!-- Emacsish single-line motion and delete keys -->
    <handler event="keypress" key="a" modifiers="control"
        command="cmd_beginLine"/>
    <handler event="keypress" key="e" modifiers="control"
        command="cmd_endLine"/>
    <handler event="keypress" id="key_left" key="b" modifiers="control"
        command="cmd_charPrevious"/>
    <handler event="keypress" id="key_right" key="f" modifiers="control"
        command="cmd_charNext"/>
    <handler event="keypress" id="key_delback" key="h" modifiers="control"
        command="cmd_deleteCharBackward"/>
    <handler event="keypress" id="key_delforw" key="d" modifiers="control"
        command="cmd_deleteCharForward"/>
    <handler event="keypress" id="key_delwback" key="w" modifiers="control"
        command="cmd_deleteWordBackward"/>
    <handler event="keypress" id="key_del_bol" key="u" modifiers="control"
        command="cmd_deleteToBeginningOfLine"/>
    <handler event="keypress" id="key_del_eol" key="k" modifiers="control"
        command="cmd_deleteToEndOfLine"/>

    <!-- Emacsish multi-line motion and delete keys -->
    <handler event="keypress" id="key_linedown" key="n" modifiers="control"
        command="cmd_lineNext"/>
    <handler event="keypress" id="key_lineup" key="p" modifiers="control"
        command="cmd_linePrevious"/>

    </handlers>
  </binding>

  <binding id="browser">
    <handlers>
      <handler event="keypress" key="k" command="cmd_scrollLineUp"/>
      <handler event="keypress" key="j" command="cmd_scrollLineDown"/>
    </handlers>
  </binding>

</bindings>
---------- res/builtin/userHTMLBindings.xml おわり----------

では。


--
ワタナベカツハル
http://www.passa.org/
Key fingerprint = 121E AC94 AD99 C468 9E02  C868 827B D767 058A E62E

Follow-Ups
[plamo:25030] firefox の設定(Re:Re: Plamoのqvwmについて), KOJIMA Mitsuhiro
References
[plamo:24998] Re: Plamoのqvwmについて, KIDO Hideyuki
[plamo:25000] Re: Plamoのqvwmについて, Shun-ichi TAHARA (田原 俊一)
[plamo:25002] Re: Plamoのqvwmについて, KOJIMA Mitsuhiro
[plamo:25003] Re: Plamoのqvwmについて, Ando Tsutomu

[検索ページ] [メール一覧]
Plamo ML 公開システム