Open florianklumb opened 7 years ago
Hi,
Ctl-B insert ****
for bold for multiple lines too...
Ctl-L insert URL and link to another note
For "list" it's a good suggestion, and maybe just have to click enter to add a second bullet point when you had insert one before like :
- Point one [enter created point two like "- "]
@yodayeti, thank you for your suggestion, you can easily do that with the script-engine, just visit http://docs.qownnotes.org. Maybe @Maboroshy wants to help too. ;)
I'd use script.noteTextEditSelectedText()
to get selected text, alter it in the script, and then write by script.noteTextEditWrite()
. Altering would be something like adding -
or number at the start of any line that doesn't begin with \n
.
As far as I understand, new text should replace the selected one, like when typing with selected text. I haven't checked it though.
...links, headlines, markup such as bold
That part needs some clarification.
Since nobody took this, I've started writing the script. I now have basic implementation of ordered and unordered lists working. Changing headline depth for #672 will also be in the script. I want to add some advanced features, like mixed formatting unification and ordered list continuation, and then make release.
Please, check the new "List maker" script.
It works ! That's great ! Thank you. ;»)
I've implemented sub-lists for numbered lists in the new version. Only one level of nesting is supported.
A
x
z
B
will become
1. A
1.1. x
1.2. z
2. B
Making all transitions and continuations support this was quite an exercise. The code is too "magic" now. Maybe I'll have some insights on refactoring it next time.
@Maboroshy
Hi, I am totally new with QOwnNotes
Where do I find the 'List Maker' script?
Scripting menu, Script repository, then search for the script name
Expected behaviour
Please consider supporting this use case.
The same for numbered lists, links, headlines, markup such as bold.