Comments (1)
候補検索断念時のみにつかう Map があればいけそうですね。
たとえば
Map -def n ん
Map nn ん
としておいて、通常の候補からは n は拾わない。でも kanji の "n" + "j" 時に "n" が has_map_to で引ける様に -def から取る...みたいな。以下イメージです。
diff --git a/autoload/eskk/mode/builtin.vim b/autoload/eskk/mode/builtin.vim
index 28cb9c9..5df180d 100644
--- a/autoload/eskk/mode/builtin.vim
+++ b/autoload/eskk/mode/builtin.vim
@@ -299,7 +299,8 @@ endfunction "}}}
function! s:filter_rom_to_hira(stash) "{{{
let char = a:stash.char
let buf_str = a:stash.buftable.get_current_buf_str()
- let rom_str = buf_str.get_rom_str() . char
+ let rom_lead = buf_str.get_rom_str()
+ let rom_str = rom_lead . char
call eskk#util#logf('mode hira - char = %s, rom_str = %s', string(char), string(rom_str))
@@ -313,6 +314,10 @@ function! s:filter_rom_to_hira(stash) "{{{
call eskk#util#logf('%s - wait for a next key.', rom_str)
return s:filter_rom_to_hira_has_candidates(a:stash)
+ elseif s:stash.get('current_table').has_map_def(rom_lead)
+ " Match leading staff
+ call eskk#util#logf('%s - match!', rom_lead)
+ return s:filter_rom_to_hira_exact_match(a:stash)
else
" No candidates.
call eskk#util#logf('%s - no candidates.', rom_str)
from eskk.vim.
Related Issues (20)
- Setting up dictionary on neovim/vim HOT 10
- g:eskk#dictionary.encodingが無視される
- 接頭辞・接尾辞への対応
- 辞書登録時に▼モードのまま確定するとVimを再起動するまで反映されない HOT 5
- 変換候補の削除プロンプトが壊れている
- vimlint → vint に移行 HOT 2
- neovim + deopleteで補完候補が出ているときに促音を入力すると入力が確定する HOT 7
- Some conversions get reverted on leaving the insert mode HOT 3
- eskk introduces side effects (<C-j> mapping) HOT 9
- Vim8.2.1066以降でif_luaが有効の場合正常動作しない HOT 1
- eskk doesn't seem to find some words HOT 2
- Adding annotations to user dictionary entries seems to be glitchy HOT 25
- DvorakJPローマ字テーブルについて
- 「ん あ」等を入力しようとすると間のスペースが消える HOT 4
- --INSERT (eskk)-- makes more sense than --INSERT (lang)-- HOT 1
- 辞書登録モードでの漢字変換で候補一覧が出ない HOT 7
- スペースキーをstickyとして使用する(SandS)ようにできますか? HOT 2
- Is it possible to to make <esc> not quit eskk-mode?
- バッファごとに句読点のスタイルを変更するには? HOT 3
- Can't type 出発 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eskk.vim.