Skip to content

Enable rhyming #18

@gmarmstrong

Description

@gmarmstrong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdatamuse

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions