QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

Add ability to change level of multiple headline elements

Open florianklumb opened this issue 7 years ago • 7 comments

Actual behaviour

I cannot indent multiple headline elements at the same time. Use case: I have this note

Animals

Humans

Dogs

Flies

and I realize I need a new level "Mammals". I have to go through all headers manually and indent them

Expected behaviour

Please consider offering a shortcut such as (Shift-)Tab to change levels automatically, ie in the above example I would select "Humans" and "Dogs", press - let's say - Tab and it should turn into

Animals

Mammals

Humans

Dogs

Flies

florianklumb avatar Aug 14 '17 14:08 florianklumb

Thank you for your suggestion.

pbek avatar Aug 14 '17 15:08 pbek

Although Tab and Shift + Tab are already taken...

pbek avatar Aug 14 '17 15:08 pbek

I guess that's something that also can be done with the scripting engine, just visit http://docs.qownnotes.org. Maybe @Maboroshy wants to help too. ;)

You might want to look at http://docs.qownnotes.org/en/develop/scripting/README.html#read-the-selected-text-in-the-note-text-edit and http://docs.qownnotes.org/en/develop/scripting/README.html#write-text-to-the-note-text-edit.

pbek avatar Aug 25 '17 12:08 pbek

Please, check the new "Headline depth buttons" script.

Maboroshy avatar Oct 12 '17 19:10 Maboroshy

@Maboroshy

Hi, brand new user here !

There must be a 'script depository' somewhere, unfortunately, for a total newbie like me I do not know where to find it

Can some one lend a hand?

Thanks !!

somple avatar Dec 12 '17 05:12 somple

check #694 ;)

pbek avatar Dec 12 '17 05:12 pbek

@somple, here: https://github.com/qownnotes/scripts/

pbek avatar Oct 10 '19 06:10 pbek