Tab completion in GNU Readline: Ruby edition

25-Oct-2018 3488
Back in 2016, I wrote about the ways we’re using GNU Readline for tab completion in gitsh. The examples in that post, like the gitsh tab completion code, were written in C. I’d have preferred to use Ruby, but the complex tab completion in gitsh needed Readline features beyond those provided by the Ruby Readline module.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle