mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-13 12:23:47 -05:00
sort the flattened ring for Wordy command
This commit is contained in:
@@ -116,9 +116,6 @@ specified in your ring with:
|
|||||||
:Wordy <tab>
|
:Wordy <tab>
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that the order of dictionaries in your ring is preserved, so you
|
|
||||||
can place your most-frequently-used ones at the start of the list.
|
|
||||||
|
|
||||||
## Using _wordy_
|
## Using _wordy_
|
||||||
|
|
||||||
You’ll use the commands that follow to enable _wordy_. To disable it and
|
You’ll use the commands that follow to enable _wordy_. To disable it and
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ if !exists('g:wordy#ring')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! <SID>chooseDict(ArgLead, CmdLine, CursorPos)
|
function! <SID>chooseDict(ArgLead, CmdLine, CursorPos)
|
||||||
return wordy#flatten(g:wordy#ring)
|
return sort(wordy#flatten(g:wordy#ring))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Wordy {dict_name}
|
" Wordy {dict_name}
|
||||||
|
|||||||
Reference in New Issue
Block a user