diff --git a/doc/muse.txt b/doc/muse.txt index 88e0165..78d537d 100644 --- a/doc/muse.txt +++ b/doc/muse.txt @@ -128,15 +128,16 @@ Commands *muse-commands* *MuseRelRHY* *(muse_rel_rhy)* -`:MuseRelRHY` Offers a list of perfect rhymes of the last word - of the previous line. The user's selection is pasted - beside the cursor. + +`: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* *(muse_rel_nry)* -`:MuseRelNRY` Offers a list of near rhymes of the last word of - the previous line. The user's selection is pasted - beside the cursor. +`: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. *MuseRelHOM* *(muse_rel_hom)* diff --git a/plugin/muse.vim b/plugin/muse.vim index 7ac5d5b..f34576a 100644 --- a/plugin/muse.vim +++ b/plugin/muse.vim @@ -86,32 +86,32 @@ function! muse#DatamuseWordFollow(findstart, base) endif endfunction -" 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 +"" 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 " Print list of words and return user's choice function! muse#ListWords(newwords) @@ -159,8 +159,8 @@ command! -buffer MuseRelCOM call muse#DatamusePop("rel_com","user") command! -buffer MuseRelPAR call muse#DatamusePop("rel_par","user") command! -buffer MuseRelBGA call muse#DatamusePop("rel_bga","user") command! -buffer MuseRelBGB call muse#DatamusePop("rel_bgb","user") -command! -buffer MuseRelRHY call muse#RhymeBot("rel_rhy","user") -command! -buffer MuseRelNRHY call muse#RhymeBot("rel_nry","user") +" FIXME command! -buffer MuseRelRHY call muse#RhymeBot("rel_rhy","user") +" FIXME command! -buffer MuseRelNRHY call muse#RhymeBot("rel_nry","user") command! -buffer MuseRelHOM call muse#DatamusePop("rel_hom","user") command! -buffer MuseRelCNS call muse#DatamusePop("rel_cns","user") command! -buffer MuseNSYL call muse#SyllableCount() @@ -180,8 +180,8 @@ nnoremap (muse_rel_com) :call muse#DatamusePop("rel_com" nnoremap (muse_rel_par) :call muse#DatamusePop("rel_par","user") nnoremap (muse_rel_bga) :call muse#DatamusePop("rel_bga","user") nnoremap (muse_rel_bgb) :call muse#DatamusePop("rel_bgb","user") -nnoremap (muse_rel_rhy) :call muse#RhymeBot("rel_rhy","user") -nnoremap (muse_rel_nry) :call muse#RhymeBot("rel_nry","user") +" FIXME nnoremap (muse_rel_rhy) :call muse#RhymeBot("rel_rhy","user") +" FIXME nnoremap (muse_rel_nry) :call muse#RhymeBot("rel_nry","user") nnoremap (muse_rel_hom) :call muse#DatamusePop("rel_hom","user") nnoremap (muse_rel_cns) :call muse#DatamusePop("rel_cns","user") nnoremap (muse_nsyl) :call muse#SyllableCount() @@ -201,7 +201,7 @@ nmap com (muse_rel_com) nmap par (muse_rel_par) nmap bga (muse_rel_bga) nmap bgb (muse_rel_bgb) -nmap rhy (muse_rel_rhy) +" FIXME nmap rhy (muse_rel_rhy) nmap nry (muse_rel_nry) nmap hom (muse_rel_hom) nmap cns (muse_rel_cns)