timwis / markdown-menubar Goto Github PK
View Code? Open in Web Editor NEWTake quick notes from the menubar in markdown. Saves to a file as you type.
Take quick notes from the menubar in markdown. Saves to a file as you type.
Right? Or is that out of scope for this project
A "new" button should erase the current contents & filename and start fresh.
Perhaps this can prompt the user if the current note isn't saved yet
From IRC:
joepie91: 1. create lockfile
joepie91: 2. create new file in temp dir
joepie91: 3. remove old file
joepie91: 4. move new file in place of old file
joepie91: 5. remove lockfile
joepie91: worst case the editor crashes between step 3 and 4 and you need to recover
from the temp file. to that end, you *may* want to store it in a .youreditor dir in the user's
home dir or something instead of a /tmp directory, since /tmp and such are not guaranteed
to persist
started typing and it created foo.md
, then a moment later, the cursor moved, which was odd. i kept typing, and later noticed it had also created foo-1.md
.
In the default application? Or configurable?
electron-settings seems like a good candidate
At the moment it just checks if there's a filename
set, but that doesn't necessarily mean it's been written.
Annoying to have to wait until the user presses enter, but it does the trick for now
At least syntax highlighting, but perhaps one of those medium-style editors
menubar already appears to support it, so just need relative height I think.
EDIT: The CSS now uses relative heights, but codemirror appears to need to have to be refreshed on height change, which is annoying...
Although I've grown to like the cat...
ex if there's already a file called notes.md
in that directory (an earlier note), it should make this new file notes-2.md
or something
draft.md
by defaultCurrently, copy & paste keyboard shortcuts don't work, because they're not enabled by default in electron :(
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.