Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby -wKU
- SUPPORT = ENV['TM_SUPPORT_PATH']
- DIALOG = SUPPORT + '/bin/tm_dialog'
- require SUPPORT + "/lib/dialog"
- words = `grep -i "^$TM_CURRENT_WORD" /usr/share/dict/web2`.split("\n")
- abort if words.empty?
- val = Dialog.menu(words)
- print words[val][ENV['TM_CURRENT_WORD'].size..-1]
Add Comment
Please, Sign In to add comment