Comments (10)
we can do ctr-a/x
to map on vim behavior (https://vim.fandom.com/wiki/Increasing_or_decreasing_numbers) as an option
from roam-toolkit.
up/down is more obvious and easier to use, imo, as a default, and users would be able to change that later anyway. Or have it blank by default and require to specify shortcut when feature is turned on first time
From what I understand ctrl+up/down will interfere with expand/collapse on Windows? It's fine on Mac, we have cmd+up/down to exp/collapse, so we can use something like:
"default": "Ctrl+Shift+Up",
"mac": "MacCtrl+Up"
if Ctrl+Shift+Up/Down
is free to use on Win?
from roam-toolkit.
Also it seems we can't use shortcuts that are already used by browsers. I wanted to implement item/selection duplication - code works, but the best possible shortcuts are not available, "Shift+Ctrl+D" works in Chrome, but for some reason not in Firefox. "Alt+D" generates letter, "Ctrl+D" removes one character. Can we somehow prevent default behavior?
from roam-toolkit.
up/down is more obvious and easier to use, imo, as a default, and users would be able to change that later anyway. Or have it blank by default and require to specify shortcut when feature is turned on first time
If with time we're having tons of shortcuts, better define default ones that work out of the box.
From what I understand ctrl+up/down will interfere with expand/collapse on Windows?
Yeah you lose ability to exp/collapse with those keys, but Ctrl+Space
does that as well, which I personally prefer.
if
Ctrl+Shift+Up/Down
is free to use on Win?
It's free as in - not a browser shortcut, but it's used for text selection so I wouldn't touch it.
from roam-toolkit.
I believe that overriding default shortcuts is a pretty bad idea. So even if we could do it - we shouldn't.
Ctrl-up/down are default in mac for expose/desktop manipulation stuff.
maybe alt +/alt-
?
from roam-toolkit.
Hmm, ctrl+up/down does nothing for me wherever I try that.
alt +/alt-
creates –
and ≠
, same story as with my alt+d
=∂
... I have nothing against, but we need to override that default behaviour, because right now code in browser.runtime.onMessage.addListener((command) => {
is not running in such conflict scenarios.
from roam-toolkit.
Just ran into this message
Too many shortcuts specified for 'commands': The maximum is 4.
So apparently we can only add 4 default shortcuts. It's possible to define more commands in the manifest but user needs to define their own shortcuts.
There's suggestion to use a single shortcut to open the extension and then capture the commands from inside the extension, possibly making it emacs-like. I can see that working well with ingestion and other stuff that rely on external services, but it's too much friction for simple stuff like inc-dec
...
Maybe for block manipulation shortcuts we can add the event listeners into the document itself?
from roam-toolkit.
It's possible to define more commands in the manifest but user needs to define their own shortcuts.
that's dumb.
Maybe for block manipulation shortcuts we can add the event listeners into the document itself?
yeah, we can do that, but then we'd need to have a custom way to configure this =\
from roam-toolkit.
I suppose now with the dispatcher
we'll move most/all of the in-roam shortcuts into it and leave the manifest only for those shortcuts that need browser/global activation?
from roam-toolkit.
um, yes if you refer to things in #16, dispatcher refers to something a bit different in my mind (that is supplanted by #16)
from roam-toolkit.
Related Issues (20)
- Why does putting once a day between semi-colons replace it with a bi-link to the current day? HOT 3
- Navigating between daily notes and main pages breaks vim mode
- Vim Mode: Move Block up and down should enter insert mode AND move the block, instead of only entering insert mode HOT 4
- Vim navigation highlight defaults to yellow HOT 4
- Panel state is lost when spatial mode is re-rendered
- Vim-roam: rebinding click hint 0 breaks formatting HOT 1
- SRS parser thrown off by blocks with dates? HOT 2
- Generating recurring dates HOT 1
- Live preview doesn't work for Linked References
- Considering the implementation of Ebisu algorithm HOT 1
- [vim] visual mode is unreliable and on keypress enters insert mode instead HOT 2
- Pressing a to "Click Selection and Go-to End of Line" goes at the beginning of the line HOT 4
- "a" binding isn't true to Vim
- settings menu glitch
- Fuzzy Dates Edge Case when using multiple semicolons in a paragraph HOT 6
- Fuzzy Date doesn't work anymore HOT 3
- Installation for standalone apps? HOT 1
- Spatial Graph Sidebar also shows in All Pages screen, which makes All Pages broken
- Some features work; some do not HOT 4
- Highlighting hint `w` shortcuts not work in page embed state HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roam-toolkit.