Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names

2006-08-13 Thread Nikolai Weibull

On 8/7/06, Clint Adams [EMAIL PROTECTED] wrote:

 Certainly. Attached (probably more than is relevant).
 BTW, this is rake 0.7.1-1 from unstable and, as can be probably guessed,
 the Rakefile comes from rails.

See if this fixes it.


Not quite.  It presents you with the correct completions, but it won't
actually complete anything beyond the first namespace, or colon.  Try
the following:

rake db

in a ruby-on-rails project directory.  You'll be presented with a
bunch of possible completions, including db:migrate and the command
line is completed to

rake db:

(in my setup anyway).  Then, when I type an 'm' and run completion
again, no completions are available.  Actually, after the unique
prefix is completed, i.e., 'db:' no completions are available any
more.

Adding 'r:|[:]=*' to ones matcher-list makes it work, but should this
really be necessary?

 nikolai


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names

2006-08-07 Thread Michal Politowski
On Sun,  6 Aug 2006 23:21:30 -0400, Clint Adams wrote:
  Certainly. Attached (probably more than is relevant).
  BTW, this is rake 0.7.1-1 from unstable and, as can be probably guessed,
  the Rakefile comes from rails.
 
 See if this fixes it.

Not fully. Things get better, though.
The proposals are listed correctly and TAB cycles among them but only as long
as there is no colon on the commandline.
E.g.
rake TAB
 completion proposals are listed, next TAB inserts the first one, further 
TABs replace it with next ones
rake tTAB
 proposals starting with t are listed, and may be inserted and cycled
rake tmTAB
 the unambiguous prefix tmp: is inserted, next TAB displays only
 the  header - `target' or `rake target' - but lists no proposals
rake tmp:clTAB
 header - `target' or `rake target' - is displayed, the only possible 
completion
 tmp:clear is not inserted

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.


signature.asc
Description: Digital signature


Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names

2006-08-06 Thread Michal Politowski
On Sat,  5 Aug 2006 21:32:17 -0400, Clint Adams wrote:
  For rake tasks named like eg. db:fixtures:load the completion treats only
  the 'db' at the beginning as the string to complete and prepends the rest 
  of the task
  name (ie. 'fixtures:load') to its description.
 
 Can you send the relevant output from `rake -sT` for that task?

Certainly. Attached (probably more than is relevant).
BTW, this is rake 0.7.1-1 from unstable and, as can be probably guessed,
the Rakefile comes from rails.

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.
rake db:fixtures:engines:load # Load plugin/engine fixtures into the 
current environment's database.
rake db:fixtures:load # Load fixtures into the current 
environment's database.  Load specific fixtures using FIXTURES=x,y
rake db:migrate   # Migrate the database through scripts in 
db/migrate. Target specific version with VERSION=x
rake db:migrate:engines   # Migrate all engines. Target specific 
version with VERSION=x, specific engine with ENGINE=x
rake db:migrate:engines:dry_scaffold  # Migrate the 'dry_scaffold' engine. 
Target specific version with VERSION=x
rake db:schema:dump   # Create a db/schema.rb file that can be 
portably used against any DB supported by AR
rake db:schema:load   # Load a schema.rb file into the database
rake db:sessions:clear# Clear the sessions table
rake db:sessions:create   # Creates a sessions table for use with 
CGI::Session::ActiveRecordStore
rake db:structure:dump# Dump the database structure to a SQL 
file
rake db:test:clone# Recreate the test database from the 
current environment's database schema
rake db:test:clone_structure  # Recreate the test databases from the 
development structure
rake db:test:prepare  # Prepare the test database and load the 
schema
rake db:test:purge# Empty the test database
rake doc:app  # Build the app HTML Files
rake doc:clobber_app  # Remove rdoc products
rake doc:clobber_plugins  # Remove plugin documentation
rake doc:clobber_rails# Remove rdoc products
rake doc:engines  # Generate documation for all installed 
engines
rake doc:engines:dry_scaffold # Generation documentation for the 
'dry_scaffold' engine
rake doc:plugins  # Generate documation for all installed 
plugins
rake doc:rails# Build the rails HTML Files
rake doc:reapp# Force a rebuild of the RDOC files
rake doc:rerails  # Force a rebuild of the RDOC files
rake engines:info # Display version information about 
active engines
rake log:clear# Truncates all *.log files in log/ to 
zero bytes
rake rails:freeze:edge# Lock to latest Edge Rails or a specific 
revision with REVISION=X (ex: REVISION=4021) or a tag with TAG=Y (ex: 
TAG=rel_1-1-0)
rake rails:freeze:gems# Lock this application to the current 
gems (by unpacking them into vendor/rails)
rake rails:unfreeze   # Unlock this application from freeze of 
gems or edge and return to a fluid use of system gems
rake rails:update # Update both configs, scripts and 
public/javascripts from Rails
rake rails:update:configs # Update boot/config.rb from your current 
rails install
rake rails:update:javascripts # Update your javascripts from your 
current rails install
rake rails:update:scripts # Add new scripts to the application 
script/ directory
rake stats# Report code statistics (KLOCs, etc) 
from the application
rake test # Test all units and functionals
rake test:engines # Run tests for 
enginesprepare_test_database
rake test:functionals # Run tests for functionalsdb:test:prepare
rake test:integration # Run tests for integrationdb:test:prepare
rake test:plugins # Run tests for pluginsenvironment
rake test:recent  # Run tests for recentdb:test:prepare
rake test:uncommitted # Run tests for uncommitteddb:test:prepare
rake test:units   # Run tests for unitsdb:test:prepare
rake tmp:cache:clear  # Clears all files and directories in 
tmp/cache
rake tmp:clear# Clear session, cache, and socket files 
from tmp/
rake tmp:create   # Creates tmp directories for sessions, 
cache, and sockets
rake tmp:sessions:clear   # Clears all files in tmp/sessions
rake tmp:sockets:clear# Clears all files in tmp/sockets


signature.asc
Description: Digital signature


Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names

2006-08-06 Thread Clint Adams
 Certainly. Attached (probably more than is relevant).
 BTW, this is rake 0.7.1-1 from unstable and, as can be probably guessed,
 the Rakefile comes from rails.

See if this fixes it.

Index: Completion/Unix/Command/_rake
===
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_rake,v
retrieving revision 1.5
diff -u -r1.5 _rake
--- Completion/Unix/Command/_rake   14 Sep 2005 12:45:01 -  1.5
+++ Completion/Unix/Command/_rake   7 Aug 2006 03:18:55 -
@@ -31,7 +31,7 @@
   ;;
   target)
 local -a targets
-targets=( ${${(f)$(_call_program targets $words[1] -sT 
$opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 
2/dev/null)}/(#b)rake ([^ ]##) ##\# (*)/$match[1]:${match[2]:l}} )
+targets=( ${${(f)$(_call_program targets $words[1] -sT 
$opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 
2/dev/null)}/(#b)rake ([^ ]##) ##\# (*)/${${match[1]}//:/\\:}:${match[2]:l}} )
 if (( ! ${targets[(I)rake aborted!]} )) then
   _describe -t targets 'rake target' targets  ret=0
 else


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names

2006-08-05 Thread Clint Adams
 For rake tasks named like eg. db:fixtures:load the completion treats only
 the 'db' at the beginning as the string to complete and prepends the rest of 
 the task
 name (ie. 'fixtures:load') to its description.

Can you send the relevant output from `rake -sT` for that task?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names

2006-07-26 Thread Michal Politowski
Package: zsh
Version: 4.3.2-14
Severity: normal

For rake tasks named like eg. db:fixtures:load the completion treats only
the 'db' at the beginning as the string to complete and prepends the rest of 
the task
name (ie. 'fixtures:load') to its description.

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.


signature.asc
Description: Digital signature