1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00
Commit Graph

40 Commits

Author SHA1 Message Date
osmarks
1fbef60857 Adjsut terminology and add MOTDs 2024-10-24 10:06:44 +01:00
Timur Ismagilov
33a477cf36 Add local time buttons
Implements: #231
2024-06-11 14:47:15 +03:00
handlerug
b43f2836c1
Make shortcuts work outside of English layout (#227)
The keyboard event is tested two times: first time with the original key
property, second time with the key property derived from the key code.
This is done to support non-English shortcuts (which may be added by
wiki administrators).
2024-05-25 23:39:23 +03:00
Danila Gorelko
95a802cdf0 fix list of shortcuts 2022-09-07 07:00:36 +03:00
Timur Ismagilov
ade626a488 Editor: Fix ? shortcut in 2022-09-04 21:47:45 +03:00
Umar Getagazov
738948f752 Refactor shortcuts
A selection of great commit messages:

- "Safari is a great browser!" -- No one

  If in doubt, just stick overflow: hidden onto it. No, seriously, I
  just added it in Safari devtools and it worked. You'd think Apple has
  a competent team, right?

- Bully Safari into not triggering the Show status bar menu item

  If in doubt, just bully Safari. What is Safari gonna do? Tell Steve
  Jobs?
2022-08-21 18:01:57 +03:00
Timur Ismagilov
aaff38a61c Shortcuts: Add Ctrl/Cmd + Shift + Enter for preview 2022-08-20 23:16:14 +05:00
Timur Ismagilov
db943a97cb Add shortcut for backlinks
Press b
2022-03-29 21:04:20 +03:00
Timur Ismagilov
72e0f445fd Rename attachment to media 2022-02-26 10:33:09 +03:00
Umar Getagazov
3281fadfc5 Fix keyboard shortcuts for hypha actions 2022-01-28 17:26:36 +07:00
Mysh!
a3fe98cf49
Javascript related code changes (#112)
* Add if statement for case where shortcutsGroup can be undefined
* Use "===" instead of "==". Comparison prefix "==" may cause unexpected type coercion
* Remove anonymous function wrapping
2021-10-29 20:13:59 +07:00
Timur Ismagilov
fffddc5eff Add ⌘; for insertDate 2021-09-05 14:55:13 +03:00
Timur Ismagilov
5238e9cce9 Fix hotkeys 2021-08-09 00:46:45 +05:00
Timur Ismagilov
f8f4eb92c8 Implement the new top bar #78
I decided to not implement dropdowns and stuff yet.

This stuff needs some styling for sure.
2021-07-15 13:57:39 +05:00
Timur Ismagilov
fff770a2f5 Fix ⌃↩︎ being used instead of ⌘↩ for opening the editor on Mac︎ 2021-06-16 02:21:20 +05:00
Timur Ismagilov
3e6cecf9e1 Fix ? triggering the dialog in the editor 2021-06-16 02:18:56 +05:00
handlerug
9dde11aa40
Shortcuts for hypha tabs 2021-06-14 14:20:37 +07:00
handlerug
4c471c579d
Revert shortcuts for super/subscript back for Macs 2021-06-14 14:03:31 +07:00
handlerug
4dc319116a
Aaaaaa more shortcuts refactoring 2021-06-14 14:00:49 +07:00
handlerug
b4910edcca
Refactor shortcut help 2021-06-14 13:58:20 +07:00
handlerug
6b074e88ea
bindCollection helper, better code 2021-06-14 13:54:36 +07:00
handlerug
6120e3b27f
Split shortcuts help into columns if enough space 2021-06-14 13:51:12 +07:00
handlerug
50dfabe279
Make the shortcuts prettifier even prettier 2021-06-14 13:51:12 +07:00
handlerug
2f9ea998bf
Fix shortcuts prettifier (vertical arrow keys) 2021-06-14 13:51:12 +07:00
handlerug
c574008564
Change superscript and subscript shortcuts on Mac
Now they won't conflict with the default browser actions, if we're going
to not stop the browser from doing its own thing.
2021-06-14 13:51:12 +07:00
handlerug
f6e32a16eb
Revert "Read Handlerug's code"
This reverts commit d069bd536e.

"Because... everything was just fine?"
2021-06-14 13:51:12 +07:00
Alex Gu
ad5dd09cc3 Override useless browser hotkeys if editor is active
For example Ctrl+B open Bookmarks, Ctrl+I open page info.
It's useful shortcuts but unless we edit hypha text.
2021-06-14 04:11:15 +03:00
Alex Gu
97b488731c
Add first child hypha shortcut 2021-06-14 00:31:09 +03:00
Alex Gu
1be4b0ef64
Fix Typo 2021-06-14 00:18:22 +03:00
Alex Gu
70329f22cf
Add Ctrl+Enter as alias for e 2021-06-13 23:36:55 +03:00
Timur Ismagilov
d069bd536e Read Handlerug's code
I have written some comments in order to understand it by myself.

I created the class Shortcut with some static methods for better grouping.
2021-06-14 01:11:46 +05:00
Alex Gu
f06501d631
Shortcuts no longer changes browser behavior.
Now need to use Ctrl+Alt+Up/Left/Right instead if browser uses Alt+Up/Left/Right. (If browser don't use Alt+Up/Left/Right, it is still used for switch hyphae)
2021-06-13 23:03:45 +03:00
Timur Ismagilov
20a2d26848 Replace span.kbd-key with the kbd tag 2021-06-13 23:37:21 +05:00
handlerug
60deff0ecd
Editor shortcut for saving changes
It's Ctrl/Cmd + Enter
2021-06-13 23:28:02 +07:00
handlerug
80e3645bb0
Shortcut for editing opened hypha
It's `e`
2021-06-13 23:24:08 +07:00
handlerug
1c8d1e8f7e
Shortcuts reference
It's invoked by pressing `?`, or Ctrl/Cmd + `/` in the editor.
Resolves #64.
2021-06-13 23:15:45 +07:00
handlerug
83574105f5
Editor shortcuts 2021-06-13 15:15:28 +07:00
handlerug
0e3222c552
Hypha shortcuts
[1-9]: First 9 links in the hypha contents
2021-06-13 13:59:07 +07:00
handlerug
3a2678df4d
Common shortcuts
p, Alt + ←: Previous hypha
n, Alt + →: Next hypha
s, Alt + ↑: Parent hypha

gh: Home hypha
gl: List of hyphae
gr: Recent changes
gu: User's hypha

g[1-9]: First 9 header links

Follow-up to the previous commit message: actually, you can press them
simultaneously too, just tested it. Ilya approves.
2021-06-13 13:59:01 +07:00
handlerug
aeb05336e9
Shortcuts handler
This class registers shortcuts and processes key presses. It can also
register multiple shortcuts and shortcuts with multiple keys pressed
sequentially. Perhaps it should also support shortcuts with multiple
keys pressed simultaneously for folks at https://klava.wiki ...
2021-06-13 12:41:38 +07:00