Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open in dock instead of split pane? #214

Open
lettertwo opened this issue May 24, 2017 · 11 comments
Open

Open in dock instead of split pane? #214

lettertwo opened this issue May 24, 2017 · 11 comments

Comments

@lettertwo
Copy link

lettertwo commented May 24, 2017

Atom has a new Docks feature that might make wrangling narrow instances easier. What do you think?

@t9md
Copy link
Owner

t9md commented May 24, 2017

Yes using dock allows narrow holding narrow ui without destroying it, it might be good for faster launch of each narrow call, and also for hide/show by mouse.
But I can't find strong necessity to move to it for now.

@despairblue
Copy link

@t9md Can I disable the dock-ability, since #283 narrow always opens in the dock and does neither render nor search anything:

kapture 2018-02-23 at 16 51 40

@despairblue
Copy link

It actually throws an error that is not reported by atoms error indicator:

Uncaught (in promise) TypeError: atom.grammars.assignLanguageMode is not a function
    at NarrowEditor.initialize (/Users/despairblue/.atom/packages/narrow/lib/narrow-editor.js:88)
    at Ui.open (/Users/despairblue/.atom/packages/narrow/lib/ui.js:360)
  initialize @ /Users/despairblue/.atom/packages/narrow/lib/narrow-editor.js:88
  open @ /Users/despairblue/.atom/packages/narrow/lib/ui.js:360
  Promise.reject (async)
  start @ /Users/despairblue/.atom/packages/narrow/lib/provider/provider.js:259
  async function (async)
  start @ /Users/despairblue/.atom/packages/narrow/lib/provider/provider.js:260
  start @ /Users/despairblue/.atom/packages/narrow/lib/provider/search.js:51
  start @ /Users/despairblue/.atom/packages/narrow/lib/provider/provider.js:77
  narrow @ /Users/despairblue/.atom/packages/narrow/lib/main.js:186
  narrow:search @ /Users/despairblue/.atom/packages/narrow/lib/main.js:112
  handleCommandEvent @ <embedded>:23521
  didConfirmSelection @ command-palette-view.js [sm]:74
  confirmSelection @ /Users/despairblue/github/command-palette/node_modules/atom-select-list/src/select-list-view.js:307
  core:confirm @ /Users/despairblue/github/command-palette/node_modules/atom-select-list/src/select-list-view.js:64
  handleCommandEvent @ <embedded>:23521
  module.exports.KeymapManager.dispatchCommandEvent @ <embedded>:69933
  module.exports.KeymapManager.handleKeyboardEvent @ <embedded>:69724
  handleDocumentKeyEvent @ <embedded>:19407

Maybe it's using an API that is not available on the current stable atom? 🤷‍♂️

@despairblue
Copy link

Ok the API is in 1.24 which has been released Feb. 13th, but my atom instance is broken in a way that it does not find new versions...

I'll update in manually. Nevermind me 😄

@jdanbrown
Copy link

I'm seeing a similar problem as @despairblue on atom 1.24. I went ahead and opened a new issue for it: #288.

@t9md
Copy link
Owner

t9md commented Feb 25, 2018

@jdanbrown
How similar?
Your issue seems different from @despairblue 's one.

@despairblue
Could you solve issue by upgrading atom to v1.24?

@jdanbrown
Copy link

How similar?

Yeah, sorry, not very similar. The effect is similar, but the cause seems unrelated. I'm not seeing the atom error and I'm on the newer atom version.

@t9md
Copy link
Owner

t9md commented Feb 25, 2018

thanks for answering. now clear.

@despairblue
Copy link

@t9md upgrading did indeed fix it :)

Though I do have the same issue @jdanbrown describes. I'll subscribe to #288.

@t9md
Copy link
Owner

t9md commented Feb 26, 2018

It’s closed. If you can reproduce it after restart atom, then put comment on #288.

@despairblue
Copy link

@t9md I can't reproduce it either now, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants