Skip to content

Insertion method for em spaces #2535

@ag-eitilt

Description

@ag-eitilt

I'd be using five if you provided an entry method for either U+2002 or U+2003; as it is I just fall back on double-spacing the ends of sentences

Feel free to add a separate feature request for that. I can certainly add it, but I don't think there are any sensible keyboard shortcuts left. However, optionally auto-replacing double space with em space could be an option. Possibly a setting "Replace double space with" and the options "Ignore", "En Space" and "Em Space"?

Honestly wasn't even thinking about that when I mentioned it in #2534. The only time I use the Unicode character is if I'm writing HTML or (less consistently) Markdown in Vim, so two space characters is very common for me to look at.

I definitely agree that you've got a pretty full shortcut space for the spaces, so I think responding to <Space><Space> in the same manner as the dashes would probably be best; it's certainly easiest on the memory. It's not a method you can realistically use in Markdown unless you are very strict with your use of tab characters for indentation, but since novelWriter doesn't use Markdown nor source-file indents, it is easily viable here.

As for which character to replace them with, I'm not entirely sure we need to present multiple options rather than just a checkbox, but I also have a feeling the few people who come to novelWriter already using wide Unicode spaces have very settled ideas of which character they prefer, so if it's not too much additional trouble in the code, the dropdown selection is probably the best way to make everyone happy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorComponent: EditorenhancementEnhancement: New feature or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions