LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-28-2013, 07:15 PM   #1
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 141

Rep: Reputation: 10
Filesystem path completion in IRB?


When the completion module is loaded in IRB, method and object names are autocompleted. However, there seems to be no functionality for completing the names of filesystem paths or executables. Is there a currently maintained gem that provides such functionality? Failing that, where would I best look to for code examples if I wanted to implement it myself?
 
Old 10-30-2013, 03:14 AM   #2
kooru
Senior Member
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,303
Blog Entries: 5

Rep: Reputation: 260Reputation: 260Reputation: 260
Hi, i don't know if I understand well what you want
Anyway, have you already tried to look here?
 
1 members found this post helpful.
Old 10-30-2013, 01:59 PM   #3
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 141

Original Poster
Rep: Reputation: 10
Sorry, I mean tab completion of path names. In IRB (with completion enabled) you e.g. type 'Dir.ent<tab>' and get 'Dir.entries'. But if you type 'Dir.entries "/usr/sh<tab>', the path name will not be completed. I'm wondering if there's a way to get tab completion for path names as well as method and object names.
 
Old 11-01-2013, 02:55 AM   #4
kooru
Senior Member
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,303
Blog Entries: 5

Rep: Reputation: 260Reputation: 260Reputation: 260
ah ok, now i should have understood
You can try with bond.

Code:
gem install bond
The doc is here:
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Interactive Ruby Shell (irb) I have ruby but no irb? cre84j Linux - Software 2 10-22-2010 07:33 PM
Strangeness pasting ruby code into irb command line darenw Programming 0 06-18-2009 08:45 PM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
linux instead of router(VLAN ,IRB and etc) ye_adam Linux - Networking 0 01-26-2006 02:13 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration