Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable rhyming #18

Open
gmarmstrong opened this issue May 1, 2018 · 1 comment
Open

Enable rhyming #18

gmarmstrong opened this issue May 1, 2018 · 1 comment
Labels
bug Something isn't working datamuse

Comments

@gmarmstrong
Copy link
Owner

Re-enable :MuseRelRHY and :MuseRelNRY.

Fix function muse#RhymeBot(query):

vim-muse/plugin/muse.vim

Lines 89 to 114 in 0a992e9

"" Rhymes with the last word of the previous line
"" FIXME
"function! muse#RhymeBot(query)
" " Get rhymes for the previous text
" let s:rhyming_word = muse#GetPrevText()
"
" " Get new words
" let s:rhymes = split(system("python3 " . s:path . "/../lib/datamuse_interface.py " . a:query . " " . s:rhyming_word))
"
" " Print list of rhymes
" echo 'Rhymes with ' . s:rhyming_word . ':'
" let s:count = 0
" for s:rhyme in s:rhymes
" echom s:count . '.' s:rhyme
" let s:count += 1
" endfor
"
" " Receive user input/choice
" " See `:help complete-funcitons`
" " See `:help complete()`
" " See `:help getchar()`
" let @q = s:rhymes[nr2char(getchar())]
"
" " Insert choice
" normal! "qp
"endfunction

@gmarmstrong gmarmstrong added bug Something isn't working datamuse labels May 1, 2018
@gmarmstrong
Copy link
Owner Author

gmarmstrong commented May 1, 2018

Also update doc/muse.txt:

vim-muse/doc/muse.txt

Lines 129 to 140 in 0a992e9

*MuseRelRHY*
*<plug>(muse_rel_rhy)*
`:MuseRelRHY` CURRENTLY DISABLED. Offers a list of perfect rhymes
of the last word of the previous line. The user's
selection is pasted beside the cursor.
*MuseRelNRY*
*<plug>(muse_rel_nry)*
`:MuseRelNRY` CURRENTLY DISABLED. Offers a list of near rhymes of
the last word of the previous line. The user's
selection is pasted beside the cursor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working datamuse
Projects
None yet
Development

No branches or pull requests

1 participant