New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] auto-delete of line prefixes should only happen when previous line also has same prefix #173

Closed
EmperorXLII opened this Issue Aug 14, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@EmperorXLII

EmperorXLII commented Aug 14, 2016

[background] When writing a list, block quote, etc, pressing Enter will automatically add a new item to the end. For example, given this markup:

* a

Pressing Enter will produce a new blank bullet:

* a
* 

Pressing Enter again will erase the blank bullet:

* a



[suggestion] When starting a document, I tend to jump around, maybe start typing one section or leaving a placeholder, and then moving down to add a new section. So I came across this "delete prefix" behavior inadvertently, as I was writing a paragraph and trying to leave a block quote placeholder below:

...text.
> 

To start the next paragraph, I hit enter twice and started typing, and then noticed that the > prefix I had explicitly typed had disappeared:

...text.


New text...

Since I had just typed out >, and there was no preceding block quote this was continuing from, I would not expect the editor to delete it, since it was not auto-generated or at the end of an existing block.

So the suggestion is that auto delete of a prefix would only happen if the previous line had the same prefix (i.e. if ...text. had been > ...text., then the editor can assume the new > line was just an auto-continuation, and Enter would indicate it was unneeded).

(Sorry for the long description; hopefully the idea is clear.)

@mike-ward mike-ward added the fixed label Aug 24, 2016

mike-ward added a commit that referenced this issue Aug 25, 2016

Dev (#179)
* cleanup code
* fix index out of range when only front matter present
* fix clipboard to DataUri
* allow per monitor dpi
* move commands
* move commands
* move commands
* refactor to use static
* refactor commands
* fix init problem
* refactor more commands
* refactor more commands
* refactor more commands
* refactor more commands
* fix openfile command
* move more commands
* main window refactored
* begin refactoring editor commands
* move more editor commands:
* move more commands
* refactor to commands
* update packages, reduce template
* make stylesheet less github like
* add list indent on tab
* add multi-jit startup
* fix redraw issues
* navigate to named anchors in same document #171
* only add to list items if it's increasing line count #172
* check if previous/previous line in list #173
* to enable newer common control styles
* move app manifest into solution items
* v1.30

@mike-ward mike-ward closed this Aug 25, 2016

mike-ward added a commit that referenced this issue Sep 1, 2016

v1.30.1 (#182)
* cleanup code

* fix index out of range when only front matter present

* fix clipboard to DataUri

* allow per monitor dpi

* move commands

* move commands

* move commands

* refactor to use static

* refactor commands

* fix init problem

* refactor more commands

* refactor more commands

* refactor more commands

* refactor more commands

* fix openfile command

* move more commands

* main window refactored

* begin refactoring editor commands

* move more editor commands:

* move more commands

* refactor to commands

* update packages, reduce template

* make stylesheet less github like

* add list indent on tab

* add multi-jit startup

* fix redraw issues

* navigate to named anchors in same document #171

* only add to list items if it's increasing line count #172

* check if previous/previous line in list #173

* to enable newer common control styles

* move app manifest into solution items

* v1.30

* Create local.txt

* Add files via upload

* Add files via upload

* Update SpellingLanguages.cs

* Update SpellingLanguages.cs

* Update SpellingLanguages.cs

* sv translation

* add translations

* Add swedish translation to project

* fix crash

* CustomMarkdownConverter to use long file names

* fix CustomConverter by adding separate CustomConverterArgs setting, disable UI when set

* special case handling of blockquote in list #176

* 1.30.1

mike-ward added a commit that referenced this issue Sep 15, 2016

Dev (#189)
* cleanup code

* fix index out of range when only front matter present

* fix clipboard to DataUri

* allow per monitor dpi

* move commands

* move commands

* move commands

* refactor to use static

* refactor commands

* fix init problem

* refactor more commands

* refactor more commands

* refactor more commands

* refactor more commands

* fix openfile command

* move more commands

* main window refactored

* begin refactoring editor commands

* move more editor commands:

* move more commands

* refactor to commands

* update packages, reduce template

* make stylesheet less github like

* add list indent on tab

* add multi-jit startup

* fix redraw issues

* navigate to named anchors in same document #171

* only add to list items if it's increasing line count #172

* check if previous/previous line in list #173

* to enable newer common control styles

* move app manifest into solution items

* v1.30

* Create local.txt

* Add files via upload

* Add files via upload

* Update SpellingLanguages.cs

* Update SpellingLanguages.cs

* Update SpellingLanguages.cs

* sv translation

* add translations

* Add swedish translation to project

* fix crash

* CustomMarkdownConverter to use long file names

* fix CustomConverter by adding separate CustomConverterArgs setting, disable UI when set

* special case handling of blockquote in list #176

* 1.30.1

* cleanup

* add snytax highlighting styles

* update

* add russian translation

* v1.30.2

mike-ward added a commit that referenced this issue Oct 2, 2016

Dev (#197)
* cleanup code
* fix index out of range when only front matter present
* fix clipboard to DataUri
* allow per monitor dpi
* move commands
* move commands
* move commands
* refactor to use static
* refactor commands
* fix init problem
* refactor more commands
* refactor more commands
* refactor more commands
* refactor more commands
* fix openfile command
* move more commands
* main window refactored
* begin refactoring editor commands
* move more editor commands:
* move more commands
* refactor to commands
* update packages, reduce template
* make stylesheet less github like
* add list indent on tab
* add multi-jit startup
* fix redraw issues
* navigate to named anchors in same document #171
* only add to list items if it's increasing line count #172
* check if previous/previous line in list #173
* to enable newer common control styles
* move app manifest into solution items
* v1.30
* Create local.txt
* Add files via upload
* Add files via upload
* Update SpellingLanguages.cs
* Update SpellingLanguages.cs
* Update SpellingLanguages.cs
* sv translation
* add translations
* Add swedish translation to project
* fix crash
* CustomMarkdownConverter to use long file names
* fix CustomConverter by adding separate CustomConverterArgs setting, disable UI when set
* special case handling of blockquote in list #176
* 1.30.1
* cleanup
* add snytax highlighting styles
* update
* add russian translation
* v1.30.2
* refactor to vm
* create vm for main window
* add crash reporter
* remove intentional exception
* move crashreport initialization
* messing with UWA
* update to MahApp 1.3
* switch to win10 style toggle switches, add format section
* Show time near doc stats #194
* expand dialog for language translations #192
* add hypen snippet
* add hyphen snippet #195
* add spellcheck error color to theme settings #193
* 1.31

mike-ward added a commit that referenced this issue Jan 2, 2017

Dev (#222)
* cleanup code
* fix index out of range when only front matter present
* fix clipboard to DataUri
* allow per monitor dpi
* move commands
* move commands
* move commands
* refactor to use static
* refactor commands
* fix init problem
* refactor more commands
* refactor more commands
* refactor more commands
* refactor more commands
* fix openfile command
* move more commands
* main window refactored
* begin refactoring editor commands
* move more editor commands:
* move more commands
* refactor to commands
* update packages, reduce template
* make stylesheet less github like
* add list indent on tab
* add multi-jit startup
* fix redraw issues
* navigate to named anchors in same document #171
* only add to list items if it's increasing line count #172
* check if previous/previous line in list #173
* to enable newer common control styles
* move app manifest into solution items
* v1.30
* Create local.txt
* Add files via upload
* Add files via upload
* Update SpellingLanguages.cs
* Update SpellingLanguages.cs
* Update SpellingLanguages.cs
* sv translation
* add translations
* Add swedish translation to project
* fix crash
* CustomMarkdownConverter to use long file names
* fix CustomConverter by adding separate CustomConverterArgs setting, disable UI when set
* special case handling of blockquote in list #176
* 1.30.1
* cleanup
* add snytax highlighting styles
* update
* add russian translation
* v1.30.2
* refactor to vm
* create vm for main window
* add crash reporter
* remove intentional exception
* move crashreport initialization
* messing with UWA
* update to MahApp 1.3
* switch to win10 style toggle switches, add format section
* Show time near doc stats #194
* expand dialog for language translations #192
* add hypen snippet
* add hyphen snippet #195
* add spellcheck error color to theme settings #193`
* 1.31
* make about label style wider
* fix crash on tab at start of doc
* goto latest release instead of markdown.com #198
* update packages
* crash report fixes, limit spellling errors to 20 per paragraph, better detection of code blocks for spell check)
* refactor, docuemnt why
* update pandoc
* v1.32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment