Skip to content

Commit

Permalink
chore: separate henkan_list functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 28, 2023
1 parent bb93cca commit fe85aca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,12 @@ endfunction
function! k#update_henkan_list(str, exact_match = v:true) abort
let query = a:exact_match ? $'{a:str} ' : $'{a:str}[^ -~]* '
let results = systemlist(substitute(s:grep_cmd, ':query:', query, 'g'))
call s:save_henkan_list(results)
endfunction

function! s:save_henkan_list(source_list) abort
let henkan_list = []
for r in results
for r in a:source_list
try
" /path/to/jisyo:よみ /変換1/変換2/.../
" 変換部分にcolonが含まれる可能性があるためsplitは不適
Expand Down

0 comments on commit fe85aca

Please sign in to comment.