GithubHelp home page GithubHelp logo

markdown-preview-opener's People

Contributors

plafue avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

nick-f eddy3d fdev

markdown-preview-opener's Issues

Uncaught TypeError: item.getURI is not a function

  1. Open a markdown file, markdown preview opens as expected.
  2. Close the markdown file with cmd+w; markdown preview should close but instead the error happens and markdown preview stays open.

Atom Version: 1.8.0
System: Mac OS X 10.10.5
Thrown From: markdown-preview-opener package, v0.1.1

Stack Trace

Uncaught TypeError: item.getURI is not a function

At /Users/[redacted]/.atom/packages/markdown-preview-opener/lib/markdown-preview-opener.coffee:33

TypeError: item.getURI is not a function
    at /Users/[redacted]/.atom/packages/markdown-preview-opener/lib/markdown-preview-opener.coffee:33:48
    at /Users/[redacted]/.atom/packages/markdown-preview-opener/lib/markdown-preview-opener.coffee:33:15
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:295:27)
    at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:639:18)
    at atom-tabs.TabBarView.onClick (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:688:17)

Commands

  3x -9:42.8.0 core:move-up (atom-text-editor.editor.is-focused)
     -9:41.7.0 editor:delete-line (atom-text-editor.editor.is-focused)
  2x -9:41.3.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -9:39.9.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -9:20.9.0 core:close (atom-text-editor.editor.is-focused)
  2x -8:59.3.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -8:54.7.0 core:save (atom-text-editor.editor.is-focused)
     -3:35.9.0 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)
  2x -3:35.6.0 core:select-left (atom-text-editor.editor.is-focused)
  6x -3:34.6.0 find-and-replace:select-next (atom-text-editor.editor.is-focused)
     -3:30.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
  2x -3:26.4.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -3:21 core:backspace (atom-text-editor.editor.is-focused)
     -3:18 core:save (atom-text-editor.editor.is-focused)
     -1:51.3.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:41.3.0 markdown-preview:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-light-theme.theme-one-light-ui.seti-ui-no-icons)

Config

{
  "core": {
    "closeEmptyWindows": false,
    "disabledPackages": [
      "tab-switcher"
    ],
    "ignoredNames": [
      ".DS_Store",
      "*.mk",
      ".tern-project",
      ".git"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "tab-switcher"
    ],
    "projectHome": "[redacted]",
    "themes": [
      "one-light-ui",
      "base16-tomorrow-light-theme"
    ]
  },
  "markdown-preview-opener": {
    "closePreviewWhenClosingEditor": true
  }
}

Installed Packages

# User
atom-beautify, v0.29.7
atom-easy-jsdoc, v4.6.0
file-icons, v1.7.13
git-control, v0.7.1
highlight-selected, v0.11.2
indent-guide-improved, v1.4.8
language-lua, v0.9.4
linter, v1.11.5
linter-eslint, v7.2.2
markdown-preview-opener, v0.1.1
merge-conflicts, v1.4.4
minimap, v4.24.3
minimap-cursorline, v0.1.0
minimap-find-and-replace, v4.5.1
minimap-highlight-selected, v4.4.0
minimap-linter, v1.1.1
tidy-tabs, v0.3.0

# Dev
No dev packages

Close preview when switching tab

It would be nice if the preview (tab) could be automatically closed, when switching the tab from a markdown file to an non-md-file.
So that you only see the preview if the currently focused file is a markdown file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.