Skip to content

Commit

Permalink
auto-complete: bind "insert-on-end" to "C-e"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jan 30, 2020
1 parent 25e8a72 commit 90b45eb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/core-complete.sh
Expand Up @@ -5047,6 +5047,7 @@ function ble-decode/keymap:auto_complete/define {
ble-bind -f S-C-m auto_complete/insert
ble-bind -f C-f auto_complete/insert-on-end
ble-bind -f right auto_complete/insert-on-end
ble-bind -f C-e auto_complete/insert-on-end
ble-bind -f end auto_complete/insert-on-end
ble-bind -f M-f auto_complete/insert-word
ble-bind -f M-right auto_complete/insert-word
Expand Down
4 changes: 4 additions & 0 deletions memo/ChangeLog.md
Expand Up @@ -24,6 +24,10 @@
- syntax: fix a infinite loop for variable assignments and parameter expansions `#D1239` 327661f
- complete: clear menu on history move `#D1248` 0000000

## Changes
- highlight: highlight symlink directories as symlinks `#D1249` 0000000
- auto-complete: bind `insert-on-end` to `C-e` `#D1250` 0000000

## Internal changes and fixes

- util: merge `ble/util/{save,restore}-{arrs => vars}` `#D1217` 6acb9a3
Expand Down
15 changes: 15 additions & 0 deletions note.txt
Expand Up @@ -918,6 +918,18 @@ bash_tips
ToDo
-------------------------------------------------------------------------------

2020-01-30

* syntax: 何と coproc に対応していない

普通のコマンドと同様に処理しておけば取り敢えず問題ないと思っていたが、
実際にやってみるとエラー着色になってしまっている。
そもそも coproc のコマンド部分には特別なコマンドも指定できる。

然し、coproc はどうやって [COPROC] の部分を変数名かコマンド名か判断しているのだろうか。
試しに coproc hello echo としたら、hello がコマンド名と認識された。
というか coproc COPROC echo -e hello としても COPROC がコマンド名として解釈された。

2020-01-26

* progcolor: 非同期で実行できる様にする可能性?
Expand Down Expand Up @@ -2630,6 +2642,9 @@ bash_tips

2020-01-30

* auto-complete: C-e でも補完確定にするべきなのでは? [#D1250]
追加した。

* highlight: pathname に含まれるディレクトリのシンボリックリンク [#D1249]
ディレクトリとしての着色になっているが、シンボリックリンクの時には
そうなる様に着色した方が親切である。
Expand Down

0 comments on commit 90b45eb

Please sign in to comment.