Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: svenfuchs/space
base: master
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 14, 2012
@kavu kavu [PoC] Added New Feature - Basic Repos' Names Autocomplition
I am not Readline guru, but I found some neat feature in it - simple
autocomplition. I added the very basic completion for project
repositories names. It invokes by entering few letter and tab, just like
in the shell, except you can complete by middle letters, for example:
you have repos `travis-hub` and `travis-core`, by entering `co` and
hitting Tab you'll get complete for `travis-core`. But if you'll enter
`tra` and hit Tab twice, trying to complete it, Dashboard will be
overwritten with complete variants, and only Dashboard Refresh can
remove it, and that's quite disturbing, and that's why I've called this
feature PoC. If you'll like you can merge it as is.
6aa786f
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/space/app.rb
View
3  lib/space/app.rb
@@ -21,6 +21,9 @@ def run
private
def cli_loop
+ Readline.completion_append_character = ""
+ Readline.completion_proc = ->(s){ project.names.grep(/#{Regexp.escape(s)}/) }
+
loop do
print "\e[3;0H"
line = Readline.readline(views.first.send(:prompt), true) || break

No commit comments for this range

Something went wrong with that request. Please try again.