View Single Post
Old 12-18-2020, 03:54 PM   #69
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,859
Karma: 6120478
Join Date: Nov 2009
Device: many
This turned out to be a relatively easy thing to change that should not impact other things in CodeView.

I just now pushed these changes to master, For heading level changes, if no selection has been made but the cursor is in a line, that line is properly changed to that heading level.

Similarly for Bold, italic, strikethrough, underline, subscript and superscript, if nothing is selected and the cursor lies in a word, that word will be selected and the operation will be applied.

Seems to work okay under limited testing.

These changes should appear in the next release.

KevinH



Quote:
Originally Posted by elibrarian View Post
Headers (H1-H6) will always be a full line. So why not make the CTRL + 1 etc. insert <h1>-</h1> tags around the line, in which the cursor is placed, if (and only if) no text is selected?

Almost the same goes for bold, italics etc. - if no text is selected, the ctrl + b (e.g.) could surround the word where the cursor is placed.
KevinH is online now   Reply With Quote