Customizing "line feed" behavior

plugin-idea

(Hiroyuki Kusaka) #1

Hi,

When editing Markdown,I want to enter “space”+“space”+“line feed” by “Shift + Enter” command.
For example, we can do that in Atom with as follows;

Customizing example in Atom

init.coffee:

atom.commands.add ‘atom-text-editor’,
‘insert-double-backspace-cr’: (event) ->
editor = @getModel()
editor.insertText(" \n") <<== “(space)(space)\n”

keymap.cson:

‘atom-workspace atom-text-editor:not([mini])’:
‘shift-enter’: ‘insert-double-backspace-cr’

I can’t find the way to customize it in Inkdrop as same as Atom.
Is it possible in Inkdrop?

Thanks.


(Takuya Matsuyama) #2

Hi Kusaka-San,

You have to make a plugin for adding that behavior.
Please refer to the docs on plugin development:

https://docs.inkdrop.app/manual/plugin-word-count