Skip to content

Commit

Permalink
Trying to fix the focus-on-launch problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaby committed Jun 28, 2011
1 parent 5d93091 commit 3235649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions VimAck/Classes/AppDelegate.rb
Expand Up @@ -130,6 +130,8 @@ def openWaldoWithProjectRoot(path)
ackWindowController.window.setTitle "Searching in #{path}"
ackWindowController.showWindow nil
ackWindowController.window.defaultButtonCell = ackWindowController.searchButton

ackWindowController.window.makeKeyAndOrderFront(self)

NSApplication.sharedApplication.arrangeInFront self

Expand Down
2 changes: 1 addition & 1 deletion Waldo.vim
Expand Up @@ -22,7 +22,7 @@ set cpo&vim

function s:LaunchWaldoViaVim()
let cwd = getcwd()
silent exe "!open " . shellescape("waldo://" . cwd)
silent exe "!open -a Waldo " . shellescape(cwd)
endfunction

command! Waldo :call <SID>LaunchWaldoViaVim()
Expand Down

0 comments on commit 3235649

Please sign in to comment.