1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-04 18:19:54 +00:00
Commit Graph

167 Commits

Author SHA1 Message Date
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
14bdf39107 Limit the shortcut dialog's maximum width 2021-06-14 01:21:46 +05: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
01af43de04 Add dark theme to the shortcuts pop up 2021-06-13 23:39:27 +05: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
handlerug
d4ac58b2d8
Remove extraneous logging 2021-06-12 22:04:30 +07:00
handlerug
839f8bc2d6
New static files system
assets.qtpl is no more! Now you can just add files to static/ folder,
make sure the extension is registered in static.go (a shortcoming
that'll be addressed in future Go versions), and you're done! It
searches the local file system first, then falls back to the files
embedded with the binary (in the static/ folder).
2021-06-12 20:58:04 +07:00