I don’t think it’s as simple to do it from
init.coffee as the attempted solution tries to do. Atom doesn’t distinguish between pane items that have focus and panels that have focus, so the only way to find the precise tab that was focused is to access the
previouslyFocusedItem property on the view spawned by the package. You’ll have to locate the JS representation of the panel, potentially through
An alternative solution would be to edit the
fuzzy-finder package itself to include a separate
confirm command, potentially bound to ctrl-enter or shift-enter by default, since it might be the case that more people than yourself would benefit from a feature like this.