Guest User

Untitled

a guest
Feb 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env ruby -wKU
  2.  
  3. SUPPORT = ENV['TM_SUPPORT_PATH']
  4. DIALOG = SUPPORT + '/bin/tm_dialog'
  5. require SUPPORT + "/lib/dialog"
  6.  
  7. words = `grep -i "^$TM_CURRENT_WORD" /usr/share/dict/web2`.split("\n")
  8. abort if words.empty?
  9.  
  10. val = Dialog.menu(words)
  11. print words[val][ENV['TM_CURRENT_WORD'].size..-1]
Add Comment
Please, Sign In to add comment