Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 420304a

Browse files
committed
New rake task menu structure
Promote top level tasks to the top most menu rather than nesting them under the namespace of the same name as a pseudo-task "all". Namespaces now include the colon in the submenu name. For example, the test task used to appear in the "test" submenu as "all" but now appears in the main rake tasks menu, with the "test" submenu being renamed to "test:".
1 parent 6f6447f commit 420304a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function! s:menuBufEnter()
265265
let i = 0
266266
while i < len(rails#app().rake_tasks())
267267
let task = rails#app().rake_tasks()[i]
268-
exe s:menucmd(300).g:rails_installed_menu.'.Rake\ &tasks\ :Rake.'.s:sub(s:sub(task,'^[^:]*$','&:all'),':','.').' :Rake '.task.'<CR>'
268+
exe s:menucmd(300).g:rails_installed_menu.'.Rake\ &tasks\ :Rake.'.s:sub(task,':',':.').' :Rake '.task.'<CR>'
269269
let i += 1
270270
endwhile
271271
let i = 0

0 commit comments

Comments
 (0)