Customizing "line feed" behavior

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.

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

Hi,

I, too, have this usecase, and so I implemented it into a plugin: https://my.inkdrop.app/plugins/easy-linefeed

Let me know if there are any issues.

2 Likes