Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add command format-order-list
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuochun committed Oct 15, 2018
1 parent 573e83e commit dbb8576
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/commands/format-text.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class FormatText
formattedText = @[fn](e, range, text)
@editor.setTextInBufferRange(range, formattedText) if formattedText

correctOrderListNumbers: (e, range, lines) ->
correctOrderListNumbers: (e, range, lines) -> # DEPRECATED
@formatOrderList(e, range, lines)

formatOrderList: (e, range, lines) ->
correctedLines = []

indentStack = []
Expand Down
2 changes: 1 addition & 1 deletion lib/markdown-writer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports =
@registerCommand("./commands/edit-line",
args: command, skipList: ["autocomplete-active"])

["correct-order-list-numbers", "format-table"].forEach (command) =>
["correct-order-list-numbers", "format-order-list", "format-table"].forEach (command) =>
editorCommands["markdown-writer:#{command}"] =
@registerCommand("./commands/format-text", args: command)

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"markdown-writer:open-link-in-browser",
"markdown-writer:fold-links",
"markdown-writer:format-table",
"markdown-writer:format-order-list",
"markdown-writer:correct-order-list-numbers",
"markdown-writer:insert-new-line",
"markdown-writer:indent-list-line",
Expand Down

0 comments on commit dbb8576

Please sign in to comment.