gma / tconsole

Testing console for Rails. Helps out with test performance and also makes it easier to run specific tests
177 stars 18 forks source link

Tab completion isn't quite right for directories #22

Closed jmoses closed 12 years ago

jmoses commented 12 years ago

When I tab complete a directory, it doesn't add a "/" to the end, it adds a sapce, which isn't correct.

tconsole> te[tab]

gives me

tconsole> ./test [cursor here]

where I would expect

tconsole> ./test/[cursor here]
batasrki commented 12 years ago

What's the significance? Does it mess up your test run?

jmoses commented 12 years ago

No, but affects the ability to easily tab through multiple directories. te[tab]un[tab]model[tab] doesn't seem to be possible.

Sent from my iPhone

On Jan 24, 2012, at 12:05 PM, Srdjan Pejicreply@reply.github.com wrote:

What's the significance? Does it mess up your test run?


Reply to this email directly or view it on GitHub: https://github.com/commondream/tconsole/issues/22#issuecomment-3635986

batasrki commented 12 years ago

It messes with your workflow, in other words. Ok, we'll take a look at it.

On Tuesday, January 24, 2012, Jon Moses < reply@reply.github.com> wrote:

No, but affects the ability to easily tab through multiple directories. te[tab]un[tab]model[tab] doesn't seem to be possible.

Sent from my iPhone

On Jan 24, 2012, at 12:05 PM, Srdjan Pejicreply@reply.github.com wrote:

What's the significance? Does it mess up your test run?


Reply to this email directly or view it on GitHub: https://github.com/commondream/tconsole/issues/22#issuecomment-3635986


Reply to this email directly or view it on GitHub: https://github.com/commondream/tconsole/issues/22#issuecomment-3638381

jmoses commented 12 years ago

Yeah, just my workflow, and it's only a few extra keys, but still minorly annoying.

I looked at it, and I don't even see where readline is getting it's list of things to tab-complete, unless it defaults to directories. I may take a stab at it in in a fork and submit a PR, if I get an hour in the next couple days.

batasrki commented 12 years ago

What version of tconsole are you using? I just tried it out with the 1.0.0 release on a test app and found it not doing the behaviour you saw. Also, what shell are you using?

jmoses commented 12 years ago

1.0.0 and I'm using bash on osx. Could it be that it's because the directories i'm using are command names?

Sent from my iPhone

On Jan 24, 2012, at 9:03 PM, Srdjan Pejicreply@reply.github.com wrote:

What version of tconsole are you using? I just tried it out with the 1.0.0 release on a test app and found it not doing the behaviour you saw. Also, what shell are you using?


Reply to this email directly or view it on GitHub: https://github.com/commondream/tconsole/issues/22#issuecomment-3644553

batasrki commented 12 years ago

Do you mind doing a screenshot like the one I've linked here? https://skitch.com/srdjanpejic/g5ujc/1-thanks-for-flying-vim

As you can see, I'm using minitest in my app and I've used the directories that were initially created by rails. I'm also using bash, through iTerm2, on OSX.

jmoses commented 12 years ago

Sure.

https://img.skitch.com/20120125-gsxyx986gbygytp7g8jx67fbya.jpg

On Tuesday, January 24, 2012 at 9:18 PM, Srdjan Pejic wrote:

Do you mind doing a screenshot like the one I've linked here? https://skitch.com/srdjanpejic/g5ujc/1-thanks-for-flying-vim

As you can see, I'm using minitest in my app and I've used the directories that were initially created by rails. I'm also using bash, through iTerm2, on OSX.


Reply to this email directly or view it on GitHub: https://github.com/commondream/tconsole/issues/22#issuecomment-3644694

batasrki commented 12 years ago

OK, so you seem to have RSpec tests, as well as regular Minitest tests. I'll see if that affects anything or not. It feels like a shell issue, though. I tried both through the Terminal.app and iTerm2 without success.

I'll keep trying to hunt it down.

jmoses commented 12 years ago

Stupid keyboard shortcuts. Yeah, if you need anything else from me, let me know. I'm running under bundler with gemsets via RVM.

Gems included by the bundle:

ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]

nalanj commented 12 years ago

I just made some tweaks to the autocompletion code that should get things more like you expect. You can install the latest prerelease with 'gem install tconsole --pre'

Thanks for reporting this! It's definitely a big deal to me to make sure that the testing workflow is as smooth as possible.

jmoses commented 12 years ago

That indeed fixes my issue, awesome. Thanks.