Giter VIP home page Giter VIP logo

md-writer's People

Contributors

afontaine avatar d2s avatar dependabot[bot] avatar grandsong avatar izuzak avatar ngasull avatar olafklingt avatar salbertson avatar schedutron avatar scott-wilson avatar timnew avatar zhengpd avatar zhuochun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

md-writer's Issues

Apply formatting to current word when there is no selection

Presently, if the cursor is placed in the middle of the word and one of the formatting commands is invoked, one will merely receive the appropriate characters on each side of the cursor. With the TextMate Markdown package (see https://github.com/textmate/markdown.tmbundle/tree/master/Commands), this action will result in the formatting being applied to the entirety of the current word (minus any punctuation), which is useful; would it be possible to implement this?

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.registerHelper (/Users/shgbit/.atom/packages/markdown-writer/lib/main.coffee:83:9)

Alt+number keybindings interfere with UK keyboard layout

The use of Alt-1, Alt-2, Alt-3, etc. to provide easy access to Markdown heading levels overrides the standard UK keyboard usage. Alt-2 is used for access to the Euro symbol, while even more importantly, the # symbol itself is mapped to Alt-3.

Support Asciidoc, reStructuredText filetypes etc

From 1.6.0, all text/line styles are customizable, probably can look forward to support these filetypes in styles.

  • Asciidoc
  • reStructuredText

Add them as a kind of engine in lib/config.coffee.

a better directory default

When no default setting specified on blog directory, try to guess the directory based on the current open project at the first time of the directory setting is accessed.

  • Check is default setting, read current directory
  • Pop up a confirmation on change setting

related #42 #28

Add an option for copying local image

It'd be nice if the image insert dialog can have an option for "copy the file into current directory as... [filename]"

This would be very useful for writing markdown that requires inserting lots of screenshots, or for gitbook.

Creating link with reference at the end

Hi :)

first of all thanks for the plugin. You done a ton of work!

Right now new link is created in format (Link Text)[link address]. Were you think about implementing it by using (link text)[1]

[1]: link address?

I am asking because I am writing blog post in Atom which I paste to Wordpress. I have plugin for markdown to html but it seems it doesn't support first link form.

Ambiguous meaning of "cmd-h"

I don't know if cmd-h (or the letter h in general) is somehow a convention for strikethrough, but I'd like to keep the cmd-h shortcut to "Hide Application". I've tried to customize my keymap to unset cmd-h, but I'm not sure how to do it correctly.

Local images are broken

Trying to add a local image:
![](./Screen Shot 2014-08-18 at 08.01.01.png)

Results in a broken image when previewing.

Highlighting header marked with ======

I really like md-writer, which has lots of features I love, but there is one feature which I really want to have but is missing.

Headers start with # have perfect color highlight, however, headers marked with ====== or ------ don't. I personally prefer using equal or dash for level 1 header, since it is much clearer than # in the text form. Could you add this to the plugin?

Uncaught TypeError: Cannot read property 'start' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: markdown-writer package, v1.4.0

Stack Trace

Uncaught TypeError: Cannot read property 'start' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:35

TypeError: Cannot read property 'start' of undefined
  at Function.module.exports.Range.fromObject (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:35:31)
  at TextBuffer.module.exports.TextBuffer.getTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:373:36)
  at TextEditor.module.exports.TextEditor.getTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:686:26)
  at InsertLinkView.module.exports.InsertLinkView.setFieldsFromSelection (/Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:80:25)
  at /Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:65:8
  at /Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:197:47
  at /Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:202:42
  at FSReqWrap.cb [as oncomplete] (fs.js:209:19)

Commands

     -5:57.6.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
  2x -5:56.3.0 core:move-down (atom-text-editor.editor.is-focused)
     -5:05.8.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -5:05.4.0 core:move-down (atom-text-editor.editor.is-focused)
  5x -0:53.1.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -0:50.1.0 core:move-right (atom-text-editor.editor.is-focused)
  3x -0:48.3.0 core:move-left (atom-text-editor.editor.is-focused)
  3x -0:45.2.0 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
 12x -0:44.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:38.2.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:35.1.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:33.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:33.8.0 markdown-writer:insert-link (atom-text-editor.editor)
     -0:27.6.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:14.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:01.7.0 markdown-writer:insert-link (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "kobalt-ui",
      "kobalt"
    ],
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store",
      "*.log",
      "*.csv"
    ],
    "excludeVcsIgnoredPaths": false
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.3.0
advanced-new-file, v0.4.3
copy-filename, v1.0.1
file-icons, v1.5.8
git-plus, v5.2.2
kobalt, v0.5.0
kobalt-ui, v0.4.0
language-log, v0.4.0
markdown-writer, v1.4.0
merge-conflicts, v1.3.2
minimap, v4.10.0
minimap-git-diff, v4.1.3
pigments, v0.8.1

# Dev
No dev packages

return/enter no longer creates a new list entry

Previously, pressing enter would result in a new entry in an ordered/unordered list being created. In the case of ordered, it would increment the number by one

This is no longer the case, pressing enter inserts a double-line-break

list and todo items: hitting enter while cursor is at 0 produces duplicate - -

If I have an item like:

- item

and I position the cursor at the start of the line,
then hit enter

this results in:

- - item

Likewise:

- [ ] an item

hitting enter results in:

- [ ] - [ ] an item

Related is that if the cursor is somewhere in the middle of the line:

- item that is |getting too long

and I hit enter, then I get:

- item that is 
- getting too long

whereas I would personally prefer:

- item that is 
  getting too long

which looks like

  • item that is
    getting too long

(But in markdown preview I'm seeing "getting too long" on the next line and indented which looks nice. on github issues here they are merging it into the first line)

But then this:

- [ ] item 
  more text here

Is rendering the second line as another list item (that is markdown preview doing it. nothing to do with md-writer)


So I think the auto-prefixing (which is a wonderful feature) should only happen if the cursor is at the end of the line.

Or it should detect if the line already starts with - or - [ ] and not prefix if its already there.

I'm not sure which approach is best to solve it.

Thanks for the package ! Especially the todo has been very helpful.

"EACCES: permission denied, mkdir '/github'" when trying to add new post

In my working Jekyll blog directory, I tried to use the md-writer plugin to add a new post, but I got the error:

EACCES: permission denied, mkdir '/github'

I'm not sure why it's trying to create a '/github' folder, nor where it's trying to create it. I'm starting atom as my user, and my user has read/write permissions in my Jekyll directory.

screenshot

Cmd-B conflicts with Atom built-in

If you're going to override core Atom behavior, maybe make it opt-in? It looks like Cmd-K and Cmd-Shift-O have this problem too.

Also, it seems like Cmd-H should hide the app...? That's an OSX thing though, not an Atom thing.

Suggestion: Provide option to use `*` instead of `_` for italics

While I can modify config.coffee to change the character used to denote italics, I would much prefer not to have to do this with every update; could this be a user-configurable choice?

Thanks for putting this package together; it's exactly what I was looking for.

update order list number

Command to update/unify order list numbers based on indentation.

E.g.

1. a           -> 1. a
2. b           -> 2. b
2. c           -> 3. c
3. d           -> 4. d

improve style selection

Currently, user must select the range of text needed to apply style changes.

Improve it to support select word by default and toggle it using marker.

  • Link selection
  • Image selection
  • Text styles
  • Line styles

Uncaught TypeError: undefined is not a function

[Enter steps to reproduce below:]

  1. ...Create table in .md file
  2. ...Create a table in my case
Heading 1 Heading 2
data1 data2
data3 data4

Invoke format table from package commands

Atom Version: 0.179.0
System: linux 3.13.0-45-generic
Thrown From: markdown-writer package, v0.10.2

Stack Trace

Uncaught TypeError: undefined is not a function

At /home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:129

TypeError: undefined is not a function
  at Commands._findTableRange (/home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:129:18)
  at Commands.formatTable (/home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:122:14)
  at Commands.trigger (/home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:16:5)
  at atom-text-editor.<anonymous> (/home/sayth/.atom/packages/markdown-writer/lib/main.coffee:101:23)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/atom/resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/opt/atom/resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/opt/atom/resources/app/src/command-registry.js:156:19)
  at EventEmitter.<anonymous> (/opt/atom/resources/app/src/window-event-handler.js:65:30)
  at EventEmitter.emit (events.js:116:17)

Commands

     -6:08.0 core:move-up (atom-text-editor.editor)
  2x -6:07.7 core:move-right (atom-text-editor.editor)
     -5:35.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -5:35.0 markdown-writer:insert-new-line (atom-text-editor.editor)
     -5:26.9 markdown-writer:toggle-codeblock-text (atom-text-editor.editor)
  4x -5:18.7 core:backspace (atom-text-editor.editor)
     -5:14.1 core:move-down (atom-text-editor.editor)
     -4:57.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -4:57.0 markdown-writer:insert-new-line (atom-text-editor.editor)
  3x -4:49.9 core:backspace (atom-text-editor.editor)
     -4:46.2 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -4:46.2 markdown-writer:insert-new-line (atom-text-editor.editor)
     -4:43.3 core:move-down (atom-text-editor.editor)
     -4:42.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -4:42.0 markdown-writer:insert-new-line (atom-text-editor.editor)
     -0:10.6 markdown-writer:format-table (atom-text-editor.editor)

Config

{
  "core": {
    "disabledPackages": [
      "language-SCSS",
      "symbols-view"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.21.3
atom-ctags, v2.6.0
atom-language-xquery, v0.2.0
atom-ternjs, v0.4.18
atom-zeal, v0.1.0
atomatigit, v1.2.3
autoclose-html, v0.15.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.1.6
autocomplete-snippets, v1.0.1
color-picker, v1.4.4
compare-files, v0.4.1
compass, v0.7.5
css-color-underline, v1.0.1
css-snippets, v0.5.0
emmet, v2.3.3
inline-autocomplete, v0.3.3
linter, v0.11.1
linter-csslint, v0.0.11
linter-erb, v0.1.0
linter-htmlhint, v0.0.8
linter-jscs, v1.4.9
linter-rubocop, v0.2.1
linter-scss-lint, v0.0.11
markdown-format, v2.5.0
markdown-writer, v0.10.2
minimap, v4.1.4
prefixr, v0.2.0
project-palette-finder, v2.4.15
restore-windows, v0.3.2
script, v2.16.0
webbox-color, v0.5.4

# Dev
No dev packages

Failed to activate the markdown-writer package

Steps to reproduce

  1. Open Atom (with no projects open)
  2. Tree view: Add Root Folder (for the location where Jekyll’s files are located)
  3. Markdown Writer: New Post
  4. Error dialog appears.

screen shot 2015-04-04 at 6 18 01 pm atom tree view add root folder

screen shot 2015-04-04 at 6 20 21 pm atom markdown writer new post

Error visible
screen shot 2015-04-04 at 6 20 47 pm atom markdown writer syntax error

Project config file

I have basic config file for the project (based on the example from the md-writer documentation).

screen shot 2015-04-04 at 6 19 51 pm atom markdown writer config

Details from Atom

Atom Version: 0.189.0
System: Mac OS X 10.8.5
Thrown From: markdown-writer package, v1.1.1

Stack Trace

Failed to activate the markdown-writer package

At Syntax error on line 1, column 1: One top level value expected

SyntaxError: Syntax error on line 1, column 1: One top level value expected
  at nodeTransforms.Block (/Applications/Atom.app/Contents/Resources/app/node_modules/season/node_modules/cson-parser/lib/parse.js:74:15)
  at transformNode (/Applications/Atom.app/Contents/Resources/app/node_modules/season/node_modules/cson-parser/lib/parse.js:197:12)
  at Object.parse (/Applications/Atom.app/Contents/Resources/app/node_modules/season/node_modules/cson-parser/lib/parse.js:203:12)
  at parseObject (/Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:42:23)
  at parseContentsSync (/Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:67:14)
  at Object.module.exports.readFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:154:14)
  at Configuration._loadProjectConfig (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:127:19)
  at Configuration.getProject (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:121:6)
  at Configuration.getEngine (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:105:15)
  at Configuration.getCurrentDefault (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:111:6)
  at Object.<anonymous> (/Users/d2s/.atom/packages/markdown-writer/lib/main.coffee:38:21)
  at Object.<anonymous> (/Users/d2s/.atom/packages/markdown-writer/lib/main.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:678:34)
  at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app/src/package.js:257:12)
  at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:236:14)
  at /Applications/Atom.app/Contents/Resources/app/src/package.js:741:25
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:223:20)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:552:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:392:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)

Commands

     -0:28.1 core:close (div.release-notes.padded.pane-item.native-key-bindings)
     -0:27.1 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:24.2 core:confirm (atom-text-editor.editor.mini)
     -0:24.2 tree-view:add-root-folder (atom-text-editor.editor.is-focused)
     -0:20.9 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:13.0 core:confirm (atom-text-editor.editor.mini)
     -0:12.5 core:save (atom-text-editor.editor.is-focused)
     -0:06.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:03.9 core:select-all (atom-text-editor.editor.mini)
     -0:01.7 core:confirm (atom-text-editor.editor.mini)
     -0:01.4 markdown-writer:new-post (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "linter-clojure",
      "language-csharp",
      "metrics"
    ],
    "projectHome": "/Users/d2s/Sites"
  }
}

Installed Packages

# User
angularjs, v0.2.0
atom-beautify, v0.23.1
color-picker, v1.5.0
git-log, v0.3.0
language-clojure, v0.13.0
linter, v0.12.0
linter-clang, v2.25.1
linter-erb, v0.1.0
linter-eslint, v0.5.0
linter-htmlhint, v0.0.12
linter-javac, v0.1.3
linter-jscs, v1.9.0
linter-pep8, v0.1.0
linter-php, v0.0.12
linter-ruby, v0.1.4
linter-scss-lint, v0.0.14
linter-xmllint, v0.0.5
markdown-writer, v1.1.1
minimap, v4.7.5
minimap-color-highlight, v4.1.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.2
minimap-highlight-selected, v4.2.0
minimap-selection, v4.2.0

# Dev
No dev packages

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:53:11)
Object.registerCommand (/Users/Yohann/.atom/packages/markdown-writer/lib/main.coffee:74:9)

Trying to use Post search

Received:

[Enter steps to reproduce below:]

  1. ...Highlight word
  2. ...⌘+⇧+K
  3. …Enter a search term

Atom Version: 0.190.0
System: Mac OS X 10.10.3
Thrown From: markdown-writer package, v1.1.1

Stack Trace

Uncaught TypeError: undefined is not a function

At /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:128

TypeError: undefined is not a function
  at /Users/stevencombs/.atom/packages/markdown-writer/lib/insert-link-view.coffee:101:42
  at Array.filter (native)
  at InsertLinkView.module.exports.InsertLinkView.updateSearch (/Users/stevencombs/.atom/packages/markdown-writer/lib/insert-link-view.coffee:100:21)
  at /Users/stevencombs/.atom/packages/markdown-writer/lib/insert-link-view.coffee:38:8
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:220:32
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:297:20)
  at DisplayBuffer.module.exports.DisplayBuffer.handleBufferMarkersUpdated (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1594:21)
  at /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:5:61
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:557:20)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:461:12)
  at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:452:43)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:718:31
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:760:29
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:119:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:647:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1109:26)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:754:24
  at TextEditor.module.exports.TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1931:18)
  at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1901:35)
  at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:752:19)
  at TextEditor.module.exports.TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:715:21)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:438:31
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:119:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:647:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1109:26)
  at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:436:35)
  at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:3:61)

Commands

     -8:32.1 markdown-writer:manage-post-tags (div.settings-view.pane-item)
     -7:43.5 markdown-writer:insert-new-line (atom-text-editor.editor)
  4x -7:40.4 core:select-left (atom-text-editor.editor)
     -7:37.6 markdown-writer:toggle-keystroke-text (atom-text-editor.editor)
     -7:34.9 core:undo (atom-text-editor.editor)
     -7:29.2 markdown-writer:insert-link (atom-text-editor.editor)
  9x -7:19.4 core:backspace (atom-text-editor.editor.mini)
     -6:45.6 core:confirm (atom-text-editor.editor.mini)
     -5:36.6 core:undo (atom-text-editor.editor)
     -5:34.5 markdown-writer:insert-link (atom-text-editor.editor)
     -5:30.2 core:confirm (atom-text-editor.editor.mini)
     -5:27.7 core:undo (atom-text-editor.editor)
     -5:25.8 markdown-writer:insert-link (atom-text-editor.editor)
     -5:15.8 core:cancel (atom-text-editor.editor.mini)
     -4:08.0 symbols-view:toggle-file-symbols (div.settings-view.pane-item)
     -0:15.3 markdown-writer:insert-link (atom-text-editor.editor)

Config

{
  "core": {},
  "markdown-writer": {
    "siteDraftsDir": "_drafts",
    "siteImagesDir": "images",
    "siteLocalDir": "/Users/stevencombs/Dropbox/stevencombs.github.io",
    "sitePostsDir": "_posts",
    "siteUrl": "http://www.stevencombs.com",
    "fileExtension": ".md",
    "siteEngine": "jekyll",
    "urlForCategories": "http://stevencombs.github.io/categories.json",
    "urlForTags": "http://stevencombs.github.io/tags.json",
    "urlForPosts": "http://stevencombs.github.io/posts.json"
  }
}

Installed Packages

# User
file-icons, v1.5.4
markdown-writer, v1.1.1

# Dev
No dev packages

Optionally copy image to local images folder

Hey man,

Thanks for making atom.io a better markdown editor :) I've been trying use the "insert image" feature to insert an image - it works as described for a remote image, but I can't see how to optionally copy it to a local folder. Could you advise?

Thanks :)
😄

OctoPress cannot generate correct JSON

I am copy this file to ./source directory and generate content.

OctoPress rendering this scripts and replace "[TAG]" to &#8220;[TAG]&#8221;

categories.json file fragment :

{
    &#8220;categories&#8221;: [

        &#8220;Unix&#8221;,
        &#8220;Windows&#8221;        

    ]
}

How to solve this problem? 👀

reference insertion id

Currently, link reference inserted uses a generated UUID as id.

It can be improved to use the text as id, which is more user-friendly. However, it requires duplication detection and prevention.

  • logic to list all reference link in article
  • update insert-link dialog to accept reference Id insertion

"Toggle headings" keybindings on Mac

When I press alt-[1-5] I expect something like this: |@#¢∞, instead I get #[1-5]. If it were only in markdown files it'd be okay I guess, but this keybinding seems to work on every file.

I don't know how Atom keybindings work, is it possible to keep them only for markdown files or replace those shortcuts? I'm using my keyboard with the Spanish layout, btw.

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.registerCommand (/Users/shgbit/.atom/packages/markdown-writer/lib/main.coffee:74:9)

Suggestion: Help command

Would be great to have some way to display quick tips or just the basics of markdown as one writes the text and forgets how to do certain manipulation; this way instead of googling it can be built-in.

Manage Tags throw error

Hi, It seems that md-writer couldn't handle the tag like C++.

Steps to reproduce:

  1. Click Package -> Markdown Writer -> Front Matter -> Manage Tags
  2. Throw Error : Uncaught SyntaxError: Invalid regular expression: /C++/: Nothing to repeat

2015-02-08 at 12 18

Atom Version: 0.177.0
System: Mac OS X 10.10.2
Thrown From: markdown-writer package, v0.10.0

Stack Trace

Uncaught SyntaxError: Invalid regular expression: /C++/: Nothing to repeat

At /Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:78

SyntaxError: Invalid regular expression: /C++/: Nothing to repeat
  at new RegExp (native)
  at /Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:78:22
  at Array.forEach (native)
  at ManagePostTagsView.module.exports.ManagePostTagsView.rankTags (/Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:77:10)
  at /Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:69:8
  at Request._callback (/Users/azu/.atom/packages/markdown-writer/lib/utils.coffee:10:7)
  at Request.self.callback (/Applications/Atom.app/Contents/Resources/app/node_modules/less-cache/node_modules/less/node_modules/request/request.js:123:22)
  at Request.emit (events.js:119:17)
  at Request.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/less-cache/node_modules/less/node_modules/request/request.js:1047:14)
  at Request.emit (events.js:138:20)
  at Gunzip.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/less-cache/node_modules/less/node_modules/request/request.js:998:12)
  at Gunzip.emit (events.js:138:20)
  at _stream_readable.js:909:16
  at process._tickCallback (node.js:364:11)

Commands

     -0:51.6 core:select-all (atom-text-editor.editor.mini)
     -0:50.6 core:confirm (atom-text-editor.editor.mini)
     -0:50.6 markdown-preview:toggle (atom-text-editor.editor)
     -0:47.0 command-palette:toggle (div.markdown-preview.native-key-bindings)
     -0:44.9 core:move-down (atom-text-editor.editor.mini)
     -0:44.7 core:confirm (atom-text-editor.editor.mini)
     -0:44.6 scroll-sync:toggle (div.markdown-preview.native-key-bindings)
     -0:42.5 command-palette:toggle (div.markdown-preview.native-key-bindings)
     -0:40.5 core:confirm (atom-text-editor.editor.mini)
     -0:40.5 scroll-sync:toggle (div.markdown-preview.native-key-bindings)
  2x -0:09.6 core:close (div.markdown-preview.native-key-bindings)
     -0:05.9 command-palette:toggle (atom-text-editor.editor)
     -0:03.5 core:select-all (atom-text-editor.editor.mini)
     -0:01.5 core:move-down (atom-text-editor.editor.mini)
     -0:01.2 core:confirm (atom-text-editor.editor.mini)
     -0:01.2 markdown-writer:manage-post-tags (atom-text-editor.editor)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "excludeVcsIgnoredPaths": false,
    "disabledPackages": [
      "markdown-helpers",
      "markdown-stream",
      "markdown-format",
      "jekyll-new-post"
    ],
    "themes": [
      "atom-mac-theme",
      "Writer"
    ]
  },
  "markdown-writer": {
    "fileExtension": ".md",
    "siteLocalDir": "/Users/azu/.ghq/github.com/efcl/efcl.github.io/",
    "urlForCategories": "http://efcl.info/assets/categories.json",
    "urlForPosts": "http://efcl.info/assets/posts.json",
    "urlForTags": "http://efcl.info/assets/tags.json",
    "sitePostsDir": "/Users/azu/.ghq/github.com/efcl/efcl.github.io/_post/{year}",
    "siteUrl": "http://efcl.info/",
    "siteEngine": "jekyll"
  }
}

Installed Packages

# User
Writer, v0.1.0
asciidoc-preview, v0.4.2
atom-mac-theme, v0.4.2
autocomplete-emojis, v1.0.0
autocomplete-paths, v1.0.2
file-icons, v1.4.8
git-plus, v4.4.1
github-issues, v0.3.0
japanese-wrap, v0.2.3
language-asciidoc, v0.11.1
linter-shellcheck, v0.0.6
markdown-writer, v0.10.0
preview-plus, v1.1.16
recent-files, v0.3.0
scroll-sync, v0.1.0

# Dev
No dev packages

Atom.Object.defineProperty.get is deprecated.

I receive the following warning for md-writer on Atom (0.174.0) on Arch Linux:

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use `atom.views.getView(atom.workspace)`,
which returns an HTMLElement.

Atom.Object.defineProperty.get (/home/USERAtom/share/atom/resources/app/src/atom.js:55:11)
Object.registerHelper (/home/USER/packages/markdown-writer/lib/main.coffee:83:9)

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.