Skip to content

Option to disable "Please wait" tab #8

Description

@kankaristo

Thanks for an awesome package, it's really useful!

One minor gripe though... Would it possible to have an option to disable the "Please wait" tab?

I got this working by destroying the WaitView object immediately after opening the file:

 externalOpenUri = (uri, waitView) ->
   fs ?= require 'fs'
   fs.exists(uri, ((exists) ->
     if exists
       open ?= require 'open'
       open(uri, (=> atom.workspace.paneForItem(waitView)?.destroyItem(waitView) if waitView?))
+      atom.workspace.paneForItem(waitView)?.destroyItem(waitView) if waitView?
     else
       setTimeout((() => atom.workspace.paneForItem(waitView)?.destroyItem(waitView) if waitView?), 2000)
       console.error "#{uri} is not a file!"
     )
   )

That's probably not the cleanest way to do it, but it seems to work. It would probably be better to skip creating it instead.

Could an option be added to not create the "Please wait" tab?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions