dpradov / keynote-nf

Tabbed notebook with RichText editor, multi-level notes and strong encryption.
Mozilla Public License 2.0
266 stars 56 forks source link

Macroses, hotkey and commands in a tree panel #645

Open smogendrr opened 10 months ago

smogendrr commented 10 months ago

Hello! Thanks for the great app.

I have several questions about using KeyNote NF

Is there a command or hotkey to apply the current style to the node name text (color, background, size, thickness)? Is there a command or hotkey to shift the border between the editor and the tree stump to the right and left?

Is there a command or hotkey to change focus to the editor? Is there a command or hotkey to set focus to the tree panel? I know about Shft+Tab, but its result depends on the current focus position Is it possible to use macros in the tree panel? I understand that this is risky and may cause loss of information, but still.

Is it possible to associate a specific macro with a hotkey and run it using that hotkey? Is there a list of commands available for use in macros?

Stefanoko commented 10 months ago

hotkey to shift the border between the editor and the tree stump to the right and left?

I assume you want to toggle the visibility of the side panels?

Tools > Customize Keyboard ... Type "panel" into the filter-field on the top right. Press Enter (Return)

You will get View/Resource Panel View/Tree Panel

Assign your custom shortcuts and click OK. The View-menu will now reflect your custom shortcuts as a reminder.

Same for Format/Apply Selected Style However: Styles are for use in the editor only. They may contain font-attributes as well as paragraph attributes, which CANNOT be used on tree names.

No commands (and therefore no hotkeys) to set the focus in either of the panes, afaik. It would be nice to have, though. I have wished for that myself, since I do a lot of automation via AutoHotkey, and need to make sure I sit in the correct panel/editor.

Hotkeys for macros — they are under way, see this comment by the developer: https://github.com/dpradov/keynote-nf/issues/30#issuecomment-1858839397

A help file is also under way. Meanwhile, some screenshots from my private help notes to get you started on macros: Macro-Help.zip

smogendrr commented 10 months ago

Thank you Hopefully commands for focusing in the editor and tree panel will appear soon. Several years ago I tried to automate work with KeyNote NF using AutoIt, and was faced with the inability to perform certain actions that required changes to a tree branch and editing some records in one procedure.

The link with the kn_funckey.zip file is now 404. Commands for hiding and showing the tree will not help me solve my problem.

The help for macros says that they do not work with the tree panel. Maybe this work with the tree panel can be enabled somehow?

сб, 3 февр. 2024 г. в 18:30, Stefanoko @.***>:

hotkey to shift the border between the editor and the tree stump to the right and left?

I assume you want to toggle the visibility of the side panels?

Tools > Customize Keyboard ... Type "panel" into the filter-field on the top right. Press Enter (Return)

You will get View/Resource Panel View/Tree Panel

Assign your custom shortcuts and click OK. The View-menu will now reflect your custom shortcuts as a reminder.

Same for Format/Apply Selected Style However: Styles are for use in the editor only. They may contain font-attributes as well as paragraph attributes, which CANNOT be used on tree names.

No commands (and therefore no hotkeys) to set the focus in either of the panes, afaik. It would be nice to have, though. I have wished for that myself, since I do a lot of automation via AutoHotkey, and need to make sure I sit in the correct panel/editor.

Hotkeys for macros — they are under way, see this comment by the developer:

30 (comment)

https://github.com/dpradov/keynote-nf/issues/30#issuecomment-1858839397

A help file is also under way. Meanwhile, some screenshots from my private help notes to get you started on macros: Macro-Help.zip https://github.com/dpradov/keynote-nf/files/14151997/Macro-Help.zip

— Reply to this email directly, view it on GitHub https://github.com/dpradov/keynote-nf/issues/645#issuecomment-1925359636, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLLLEAIFOURF5OFFPL76SLYRZJZZAVCNFSM6AAAAABCYCH2OGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGM2TSNRTGY . You are receiving this because you authored the thread.Message ID: @.***>

Stefanoko commented 10 months ago

faced with the inability to perform certain actions that required changes to a tree branch

Same here. The only workaround I came up with: I let my automated routines access the Tree-menu. Send commands open it via Alt+R, then after waiting 50 milliseconds, I send the underlined letter (twice if need be) to reach the command I am after.

It is a clumsy approach, I know, but better than nothing. If it works with AHK, it should do the trick with AutoIt as well.

Commands for hiding and showing the tree will not help me

I guess you actually want to SHIFT the border, quite literally, by a few pixels left or right? I have no solution for that, other than automating mouse movements, which is doable, but even more clumsy than my workaround above.

dpradov commented 8 months ago

Hello, the new release (1.9.0) include most of these requests. Regards

Stefanoko commented 8 months ago

This is GREAT news. Can hardly wait to tinker with it over the weekend. This opens up a whole new avenue for automating tasks and often-used routines. I will re-design my autohotkey scripts and add new ones that I had wished for, but could not accomplish until now, because of the missing focus commands.

Been skimming briefly over all the other changes, this seems like a major update. Some sort of auto-size for the tree panel upon hover, shortcuts for styles (hurrah), relative links to .knt ... — you made my weekend!

Thanks a million, I really appreciate it.

dpradov commented 8 months ago

@Stefanoko, please take a look at some observations and issues I identified in version 1.9.0 (#652), specifically regarding the Scratch editor.

smogendrr commented 8 months ago

Hello, the new release (1.9.0) include most of these requests. Regards

@dpradov
Great news! Hotkeys for macroses, navigation and focus to tree panel and new behaviour of tree panel width with ctrl makes so many works 2 times faster! Thank you!

ps: The same thing about hotkey to move focus from mirror node to original