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
Adds Footnote Shortcut plugin #185
Conversation
|
Please use |
|
Got it, this change is now part of release 0.0.3 |
|
https://github.com/akaalias/obsidian-footnotes/blob/2ad067659782be8240143dbffdb756a5678b32c4/main.ts#L92 If I understand this plugin correctly, hardcoding this to 6 will break when there are more than 9 footnotes. https://github.com/akaalias/obsidian-footnotes/blob/2ad067659782be8240143dbffdb756a5678b32c4/main.ts#L12 while there's no hard rule for it, it's recommended that you don't provide a default hotkey to avoid conflicting with user settings. https://github.com/akaalias/obsidian-footnotes/blob/2ad067659782be8240143dbffdb756a5678b32c4/main.ts#L46 Small nit: avoid using https://github.com/akaalias/obsidian-footnotes/blob/2ad067659782be8240143dbffdb756a5678b32c4/main.ts#L10 it looks like you changed this from checkCallback to callback, you might want to use checkCallback still and if |
|
Hey @liamcain – Nice to meet you. My name is Alexis and I'm building this plugin on behalf of a handful of members in the community. To your points:
The 6 was actually to place the cursor at the end of the line BUT, you're right – This would have degraded when a footnote index is double-digit or more. I've addressed this in the next release. Good catch.
If you look at the genesis of this plugin and the plugin README, you'll see that this is designed as a "hotkey-first" feature that only makes sense as a hotkey for speed and usability. In fact, as this started out as a hotkey request for Obsidian core hotkey I hope the plugin goes away at some point.
Addressed in the next release.
Maybe you can shed some light on this because I'm now using
Expected behavior Observed behavior Here's a demo of what I mean. Anything obvious I'm missing? Also: Feel free to submit a PR! |
|
Hi @akaalias, nice meeting you too! Your Journey plugin is really amazing.
I think it's great to encourage its usage via a hotkey! In this case it might make more sense to keep the default hotkey blank and encourage users to select their own. Your default of
Yea, Also, it looks like you reformatted the entire |
|
Hey there! Thank you for the infos.
I personally think it makes complete sense to have it work "out-of-the-box." Let's hear what the community expects. I've posted the question here, so let's see what comes back :)
Oh, okay, I would never have figured this out myself. The odd behavior I showed you is now gone with the next release.
I just used the "Resolve Conflict" button right in the browser. Do you know how to revert this commit? |
|
I am in favour of the Anyway, if you leave the hotkey blanc I will assign |
|
@DutchPete Thank you for checking in! After installing the plugin, would you rather...
|
|
I don't mind, do what you think is best. Perhaps a default hotkey is possible that behaves properly across platforms. If you do set one, I think it is use ful to have the |
|
Hi there To be honest, I'm used to the plugins with no hot keys set up and therefore defining them later (even though I use the control palette more than any hot keys I've setup myself I get the worries about some conflicts which may occur with other hot keys so I probably would choose the security and go with no hot key setup Maybe you could just suggest the hot key in the description of the plugin, leaving the users free to use it or choose something that might suit them better. |
I don't think it's possible within the browser, but you can rebase your branch locally and |
Sweet, I believe I did that successfully following these steps Regarding hotkey or not: To move forward and get this in the hands of the community, I've taken the hotkey out in today's release 0.0.6 I'll see to explaining this clearly in the README. Let's do this: IF I get a lot of questions/issues such as "Why is this not working?" let's discuss again for a future release :) |
|
Good steps forward, Alexis. Couple of remarks.
So, while we need not worry about selecting the right number for a new, normal footnote thanks to reindexing, there is still the mismatch between Edit and Preview numbering. My feeling is that this is an issue that cannot be eliminated. |
|
Hey @DutchPete Thanks for that!
I had the same thing – It's because you have the hotkey from previous releases.
I agree that having a hotkey is the whole idea of the project but it seemed like having it set up by default was a show-stopper to get this into the Obsidian directory. @liamcain and @lishid please advise if a default hotkey – the whole raison d'etre of this plugin imho – is a show-stopper or not.
Please file this as an issue under https://github.com/akaalias/obsidian-footnotes/issues because I couldn't reproduce the behaviour.
That's actually default Obsidian Preview behavior. The plugin is not yet syncing between the indexes you see in edit and in Preview modes. That'll be part of the reindexing feature Thanks! |
Done. |
|
I strongly approve of having a default hotkey. Given that it doesn't do anything without one, users may get confused at its lack. If they don't like it they can change it. |


Hi @lishid,
This is a simple plugin based on this forum discussion.
3 members of the community have asked me to add it to the community plugins.
I thought the idea was really good because I've also felt the barrier to footnotes was too high. I've since stopped using them personally.
Let me know what you think :)
Thank you and have a great weekend.
Alexis