uier / hackbar Goto Github PK
View Code? Open in Web Editor NEWA browser extension for using command palette (kbar) in HackMD.
Home Page: https://chrome.google.com/webstore/detail/hackbar/algbkiepdpcjnhgagoddfcicdeaiimba
License: MIT License
A browser extension for using command palette (kbar) in HackMD.
Home Page: https://chrome.google.com/webstore/detail/hackbar/algbkiepdpcjnhgagoddfcicdeaiimba
License: MIT License
Since HackMD released its beta API several months ago, maybe we can provide an optional field for token, and using HackMD API if the token is given.
If the token is not given, use the original way to fetch.
As mentioned in #10, currently the way hackbar opens the note with book
mode in personal space is userpath + shortId
.
However, it fails when I opened a note whose owner is not me.
Fail to fetch can happen, I met once during development (503), which will make the kbar inoperable.
Expected to do retry after the request failed.
I found there is a bug about quotes in the extension
workflow file.
I would like to fix it and make a new PR later.
Current code is built for chrome extension and only published to chrome web store.
For example, the manifest_version
is 3
, which is only supported by chrome.
Expected the extension can be used in Firefox.
The script loads and runs on entering hackmd.io
website.
Currently, no matter the user is logged in or not, the fetches run and try to get users' notes data, which needs authentication, to provide the service.
And if the user has NOT logged in, the fetches fail and 3 retries begin, and of course the retries will all fail.
Would be great if we stop at the first fetch call when we recognize that the user has not logged in.
Refer to the Installation
section in REAME.md
- Manually download and locally load to your browser (WIP)
Expected to add GitHub Actions to run yarn build
and pack the /build
into hackbar_<version>.zip
that attached to Release Assets.
So that users can directly download and use it in their browser without clone and build by themselves.
It's also convenient to publish extension (e.g. chrome web store) with the auto build.
Because Ctrl / Cmd + K is a default shortcut for firefox.
Users might not open hackbar use this shortcut. Add a method to customize shortcut might be helpful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.