Be able of using the Function keys (F1-F12) to perform -> Functions <-

We strongly recommend you to search the forum with possible keywords before making a new feature request. If your request is very similar to an existing one, consider liking it and/or making a comment rather than making a new one. Once youā€™ve searched and determined that this is a new request, delete this line.

Use case or problem

  1. I cannot assign an ā€˜Fā€™ key to a command.
  2. I cannot assign hotkeys to a layout in the Workspace plugin.

I really want to assign different layouts of the Workspace plugin to the ā€˜Fā€™ keys, so I can change perspective easily and quickly, to a graph view, todo view, etc.

Proposed solution

  1. Allow the use of F2 to F12 as a hotkey

Current workaround (optional)

I donā€™t know.

Related feature requests (optional)

10 Likes

Hello Anyone there?

Hi @cristian , fellow user here. Although assigning F3 doesnā€™t seem to work, I can assign Ctrl-F3, Shift-F3, etc.

Hope this helps!

1 Like

Hi Craig, thanks

But I wanted to use the function keys alone (no modifier) to perform functions. (Probably thatā€™s why they are called function keys)

For example, in the IDE I use to program I use F1 to ā€˜search for everythingā€™ and F2 to ā€˜renameā€™ It feels natural, and itā€™s far more quickly.

I think there is a way to ā€˜hackā€™ this by changing the config.

1 Like

function keys do not seem to be supported.

4 Likes

not entirely true, you can assign a key combination with a function key such as Shift+F1(currently using this to open settings), but your right on assigning the key by itself.

1 Like

I think someone else mentioned it that you can edit the hotkeys.json directly.
For example, I assigned Shift+F1 to ā€œopen homepageā€ and then deleted ā€œshiftā€ from the json
image

When you go back to settings it shows F1

9 Likes

Thanks, that worked. Itā€™s important to note that you need to keep the empty string in the modifiers list and in my case I also had to close Obsidian and reopen it.

2 Likes

Greetings all! :wave:

tl;dr Version: Chillax!, to anyone who is too impatient for a fix to this! I donā€™t like the inability to bind functions to function keys without mods, either. But we should be patient. Itā€™s not always easy to implement, unfortunately. And Iā€™m going to make myself be patient. They said they will eventually fix it, I believe, so letā€™s relax. :grin:

The ā€œWhole Tomatoā€ Version:

Iā€™m SO glad Iā€™m not the only one who is annoyed by this small yet consequence-laden problem. Itā€™s obviously not a bug, and as a fellow computer programmer I can both understand and sympathize with the developers of Obsidian when it comes to having hundreds of feature requests, bug fixes, improvements and other issues to deal with, so Iā€™m not complaining.

But I can also understand how, if I were not familiar with the problems of modern software and release engineering, end users might see this as a ā€œsimple fixā€. Indeed, I am a bit frustrated myself that this hasnā€™t been addressed yet after several years of using Obsidian. I have few if any complaints regarding the application in general or any of its features and plugin API, but one or two ā€œsmallā€ issues like this do tend to make it hard to find enough keybinds for the various plugins (community and base) I use as well as those of the core program.

In summary, I simply want to say ā€œme tooā€ to the complaint that itā€™s currently not possible to assign a command to a function key without any modifiers (i.e., Alt, Ctrl, Shift, Cmdā€”for those cursed enough to use Apples or iOS, willingly or through coercion :wink:). If it were a modern day programmerā€™s version of Fermatā€™s Last Theorem or something similar, I would not even mention the issue, of course!

But since in most modern desktop applications and APIā€™s itā€™s a very simple matter to implement the capability to assign a piece of functionality to almost any key, including not only F-keys but even the Windows key (there are one or two exceptions), I admit to a very slight amount of annoyance. The plain, simple fact is that the vast majority of applications that allow the custom binding of keys to functions also allow the assignment to function keys (with or without modifiers), so itā€™s a bit disturbing, at least aesthetically, that Obsidian does not, as yet.

That being said, I must admit Iā€™m fairly unfamiliar with the Electron API or indeed even the JavaScript language (although Iā€™ve begun to study the modern ā€œWebDevā€ stack), having spent the majority of my development life and career learning and using, for example, C/C++, (x86/64) Assembly language, Java and Perl, bash scripting, i.a., so I can obviously understand how it might not be so simple a matter to implement when dealing with a modern Web scripting language like JavaScript.

Anyway, I could go on and on ad nauseam, but I wonā€™t waste any more of the readerā€™s time or bore you with more of my long-winded tedium. :stuck_out_tongue_winking_eye: (I just donā€™t have the time to type/write as much as I like lately; forgive me)

My primary reason for putting in my ā€œtwo centsā€ā€”to myself: quickly, before it becomes my 300 centsā€”on this problem, after all, was simply to thank the Obsidian developers, this forumā€™s outstanding moderators (esp. Whitenoise, et al.) and the Obsidian plugin community at large for the hard work and time expended, as well as to hopefully quell anyone who might (like me) be disturbed at the issue, but (unlike me) not understand why it is potentially troublesome to implement a ā€œfixā€ to it.

Until it is fixed, Iā€™m sure we can all adapt to the problem of having a slightly smaller inventory of keys available to bind our commands to, and I wish everyone well. Also, please do forgive my long-ass, novella-length comment. As I said, I just donā€™t have nearly enough time to write (one of my very favorite things to do) lately, and didnā€™t mean to waste time. I would have edited the comment more than once, to shorten it, butā€”believe it or notā€”Iā€™ve known people who actually complain if you edit a comment, for some unknown reason. O.o :person_shrugging: Well, TTFN.

5 Likes

+1 to this request - it would be excellent to be able to re-map hotkeys to be more similar across applications, e.g. using F1 in VSCode to open the command palette, it would be much less mentally taxing by making this more consistent.

Cheers

2 Likes

Also, I would like to know -why- is adding this functionality so difficult. This particular issue convinced me to move to VS-Code with plugins instead of Obsidian.

This will be implemented in 0.15.3.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.