Skip to content
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

Macroses, hotkey and commands in a tree panel #645

Open
smogendrr opened this issue Feb 3, 2024 · 7 comments
Open

Macroses, hotkey and commands in a tree panel #645

smogendrr opened this issue Feb 3, 2024 · 7 comments

Comments

@smogendrr
Copy link

smogendrr commented Feb 3, 2024

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
Copy link

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)

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
Copy link
Author

smogendrr commented Feb 3, 2024 via email

@Stefanoko
Copy link

Stefanoko commented Feb 3, 2024

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 added a commit that referenced this issue Feb 11, 2024
Now it is possible to set any shortcut to Macros, Plugins, Templates, Styles and Fonts.
The shortcuts assigned to menus (main or tree) will take priority over shortctus to other commands (macros, ...)
The design and usability have also been reviewed.

Funckey plugin it is not necessary now, and it is abandoned. That plugin required KeyNote to listen to a certain
message after change was done, to reload shortcuts, and to use a specific config file (keyboard.key), with a limited set of possibles shortcuts.

This closes issue #30 and partially cover what it is requested in issue #645
dpradov added a commit that referenced this issue Feb 11, 2024
 - Toggle focus: Editor / Tree Panel
 - Set focus in Editor panel
 - Set focus in Tree panel

 The current toggle shortcut (Ctrl+\) will still work if there is no new shortcut to replace it

 Also fixed: When changing focus to the Tree panel, it will be shown if it is hidden.
 (Currently throwing an exception)

 Requested several times, for example in issues #645
@dpradov
Copy link
Owner

dpradov commented Mar 7, 2024

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

@Stefanoko
Copy link

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
Copy link
Owner

dpradov commented Mar 8, 2024

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

@smogendrr
Copy link
Author

smogendrr commented Mar 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants