brrd / abricotine Goto Github PK
View Code? Open in Web Editor NEWMarkdown editor with inline preview
License: GNU General Public License v3.0
Markdown editor with inline preview
License: GNU General Public License v3.0
We need a command to exit the app on OSX. This should be added to the "Abricotine" menu and mapped to Cmd+Q.
See: https://github.com/atom/electron/blob/master/docs/api/app.md#appquit
From #7
Would it be possible to display math when wrapped only in single '$'s too (or is there an easy way to hack to config to allow this)? Doing so would help to make Abricotine more compatible with Pandoc Markdown.
More generally, the idea would be to allow the use of any delimiter with a new option in config.
Inline and display math should be supported.
Given all the formatting going on, it is a bit difficult to keep track of the spaces used for indentation.
It'd be great if when editing a list-item, pressing Tab
will automatically indent the item to a nested list. Much like it does in MS Office.
When I press an accelator for one of the menus in Abricot in Win7, for example Alt-V for 'View', the accelator is displayed in the menu bar as the usual underline character, but the menu itself isn't displayed.
Menus work properly via the mouse however.
If letters with diacritical marks (like ä, ö, ü, á, è) are in words, the spell checker says, that the word has some spelling mistakes ( red jagged underline ). I think it is not only this, it looks like Abricotine does generally not support UTF-8? Are there any plans to support it in the feature?
Except this, it works very fine
It definitely needs a higher resolution icon.
When using the Insert-->Image-->Copy all images in a local folder
function it copies all the pictures into ./$FILENAME_files/$PICTURE
However it does so relative, meaning that if one exports the html via Export as HTML
to a location other than the storage directory of the markdown file the images aren't found and therefore appear as a broken link.
I see 2 options that should fix the issue:
It can't preview the image inserted from local computer, only work for url-insert. Is it a bug?
My system is Win10 x64.
Thanks.
OSX.
When using CMD + V to paste a piece of text (for example copying the title and using that as the name I would like to save the document) an error occurs
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'webContents' of undefined
at sendCommand (/Applications/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:29:16)
at /Applications/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:37:42
at MenuItem.click (/Applications/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu-item.js:56:20)
at Function.delegate.executeCommand (/Applications/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu.js:125:71)
So I liked this project so much that I'd love to help maintain a cask, so OS X users just have to run brew cask install abricotine
. I went ahead and opened a PR on hombrew-cask
: #19095. The version I built was based on the current master branch (i.e. 9efa2c6)
Is there a reason why you haven't done this before? If it's just lack of time/resources I volunteer to maintain this.
homebrew-cask guys say they can accept this cask as official if the URL used is referenced either in this repo or in the website. For obvious reasons, they don't like the idea of a third party developer building and hosting the app.
Abricotine configuration files should be stored in /home/$USER/.config/Abricotine
instead of /home/$USER/.config/chromium/Abricotine
.
Related to electron/electron#3709. We need to update electron.
This is maybe involved in issue #45.
Hi. This looks great. I'm hoping for a .deb soon (and preferably a PPA too, to keep it up to date automatically). Thanks!
CriticMarkup is an extension for Markdown whose goal is to allow authors to add comments or suggestions of modification in a similar way of the features present in Microsoft Word or LibreOffice Writer. Not only a syntax extension, CriticMarkup can also have a system similar to pull request: the author can accept or reject the modification proposition (still similar to what is already available in common text processors).
Refer to the user’s guide and to the specifications.
$ brew cask install abricotine
Error: Cask 'abricotine' definition is invalid: Bad header line: parse failed
In OSX the menu bar is not visibile when press on show menu bar.
I thank the developers for the amazing markdown editor. I would like to recommend auto saving documents at any change.
The inspiration is from another electron app FromScratch.
Not sure what's happening yet, but I've tried launching the application from the command line as I would for any other app -- open <filename> -a Abricotine
-- and the application launches but does not spawn any windows. When I launch the app with Finder, it seems to do fine.
Problem:
You can't access the menu bar in full screen mode. with a permanent menu bar at the top the full screen mode wouldn't look that nice.
Suggestions:
the menu bar only shows up when you move the pointer to the upper border of the screen so it behaves like a task bar in auto-hide mode.
the menu bar elements are in the right-click menu.
you can hide and show the menu bar.
Half the announced features are simply not working.
Downloaded the 32 bit version to my windows 8 64 .. didn't work! Downloaded the 64bit version. Could run it. But did not do anything of what it announces. No image paste. No auto preview. No nothing basically.
Devs please stop joking please.
Great app! I've been looking for something like this for ages.
I wanted to change the font family of the editor (the writing area) so I added this to config.json
:
"editor": {
"font-size": "16px",
"font-familiy": Inconsolata
},
However, nothing happened.
Is this a bug? Or there's another way of doing it?
Hi,
I looked at https://github.com/brrd/Abricotine/blob/master/docs/templates.md to create and use my own template.
I went to config directory with :
Then in the template folder, I copy paste the default one and renamed it "custom" :
I edited template.json like this :
{
"name": "custom",
"label": "Custom template",
"accelerator": "CmdOrCtrl+E",
"author": "Romain",
"description": "Created from Abricotine Default Template",
"license": "AGPL v3"
}
Then I edited the style.css with :
Then I edited the Abricotine config.json file to change the preview template :
Then I restarted Abricotine and I still see the default render.
Did I missed a step ?
Hi! I downloaded the package for Linux, but it doesn't include the icon. Is it possible to add it, please?
Thank you
Hey there
I tried this application to type in persian, but it seems there's not a correct support for Persian.
Persian is a RTL (righ-to-left) language (like Arabic, Hebrew, probably Japanese and more). Words are typed from right side to left. There's two point here. Let me show them in CSS:
direction: rtl;
text-align: right;
Support for RTL is useful when you have a mixture of English and Persian words that is supported rarely by editors. Some editors like Leafpad
/gedit
support both to start strings from right side of editor and keep them RTL. Some of them do not have support for neither 'aligning to right' nor RTL, as in: kate
.
But, all of them have support for strings purely written in Persian. What do I mean? Here is an example:
# Hello World
# سلام دنیا
# Hello = سلام
# World = دنیا
the world 'سلام' is the first typed word and the word 'دنیا' is the next. The above phrase 'سلام دنیا' is shown correctly while it's not still RTL or not showed in right side, but it's meaningful.
Here is what happens in Abricotine:
Summary: All things are shown correctly in the table of contents sidebar, but they are disarranged in the editor side.
Please, never override system shortcuts...
Format > Quote (Command + Q)
Quit app > (Command + Q)
I am not able to close this app unless I use the doc currently.
This error message pop up when trying to open new files after closing the old windows.
Uncaught Exception:
TypeError: Cannot read property 'webContents' of undefined
at sendCommand (/opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:29:16)
at /opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:37:42
at MenuItem.click (/opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu-item.js:56:20)
at Function.delegate.executeCommand (/opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu.js:125:71)
From #7
I know MathJax is being used now, but I would like to recommend Katex.
The basic reason is, it is fast, very much faster than MathJax. It does lack extremly advanced features, But it has many.
There is also a package of markdown-katex for atom.
MathJax is definitely very heavy, an alternative solution like Katex would be much appreciated.
Great job on Abricotine! Just took it for a spin and I'm very impressed :-)
You know how some people prefer to write their Markdown in 80-character lines? How about adding a feature to highlight characters that make a line longer than an user-set limit?
Also, what about giving backticked code a grayish background so it's easier to tell apart from regular text?
Hi,
Firstly, thanks for the great tool. It seems that there is a small bug where only the first latex equation in each line is rendered.
e.g.
$$ x^2 $$ and $$ x^3 $$
results in just the x^2 being rendered. Unless there is a bug with my setup.
p.s. had a look in cm-extend-autopreview.js but my javascript abilities are non-existent
Unzipped the ia32 version and run on terminal. See if that helps trace something:
fiatjaf@mises ~/D/Abricotine-linux-ia32> ./Abricotine
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /home/fiatjaf/Desktop/Abricotine-linux-ia32/resources/app.asar.unpacked/node_modules/spellchecker/build/Release/spellchecker.node: wrong ELF class: ELFCLASS64
at Error (native)
at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:137:20)
at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:148:18)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/fiatjaf/Desktop/Abricotine-linux-ia32/resources/app.asar/node_modules/spellchecker/lib/spellchecker.js:2:16)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
^C⏎
fiatjaf@mises ~/D/Abricotine-linux-ia32> node --version
v5.4.0
fiatjaf@mises ~/D/Abricotine-linux-ia32> cat version
v0.35.1
First of all, thank you for this amazing app ! I've been searching for this for almost 2 years... I was using StackEdit until now.
I know you've planned theming support, as you mentioned it on another issue, but i thought this "feature request" deserve a proper issue (more visibility for future users).
Thanks again for your hard and much appreciated work ! :)
Edit: This question has been edited to be focused on .desktop
file
I have installed it by https://aur.archlinux.org/packages/abricotine
I can't find it via Plasma (KDE) desktop dashboard! It's not listed within applications. Why Plasma cannot find it?!
My OS: Archlinux 64 bit
My Desktop: Plasma v5.5
It would be nice to be able to export to PDF, LaTeX and all the other formats that pandoc supports.
See: http://pandoc.org/ for details.
If this would be integrated in a good way, this would be a good competitor for Office suite document editors in my opinion.
Maybe this is a little bit too much to ask, but support for pandoc-citeproc would be very nice too, since it would enable people to write academic articles with this Markdown editor.
Hi,
To avoid extra lengthy document, i used to divide it in smaller parts.
I think tabs support would be a very useful addition. Having multiple windows opened is a bit painful.
Thanks again for this brilliant app !
In both cases, If I run it via a terminal, I get this warning:
For the one installed via AUR:
(electron) ipc module is deprecated. Use ipcMain module instead.
{ [Error: ENOENT: no such file or directory, open '/home/$USER/.config/chromium/Abricotine/app/schema.json']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/$USER/.config/chromium/Abricotine/app/schema.json' }
(electron) loadUrl is deprecated. Use loadURL instead.
For the pre-made linux package that I have downloaded:
$Abricotine-linux-x64$ ./Abricotine
(electron) ipc module is deprecated. Use ipcMain module instead.
(electron) loadUrl is deprecated. Use loadURL instead.
cat /home/$USER/.config/chromium/Abricotine/app/schema.json
: { "schema": 1 }
Here is what I got when I run it for the first time:
I chose YES And nothing happened: https://ptpb.pw/9hNk --> Ctrl+C
Next time I clicked on NO and it came up with the warning that I put it above.
My OS: Archlinux 64 bit
My Desktop: Plasma v5.5
Thanks for making Abricotine! I really enjoy its look and feel, and the ability to inline images is great!
I wonder if you have any plans to support some common vim-style keybindings and more of the pandoc markdown spec (like sub- and superscript and footnotes). I realized those feature requests might be a bit esoteric, but I am just curious if these are on your roadmap at all.
Actually, the main menu in the tool bar says that you have to press ⌘Q to quit the app, which is a common convention all across OS X. Abricotine overwrites this shortcut and use it instead to insert quotes.
From #47:
Previewing latex equations on multiple lines doesn't render:
$$
x^2
x^3
$$
Abricotine autopreview is currently processed line by line (code here and here). Right now, extending this system to multiple lines is not easy.
For simplicity and performances considerations, we may consider rewriting CodeMirror's markdown mode to add custom classes on previewable tokens, then use the markText API to create preview elements according to user configuration in a second time.
Hi,
You do really good work already!!
But is it possible to add an preview which update auto like PEN ?
=> https://github.com/noraesae/pen
I talk about web page previewer
When I tried to run it
the following error was shown
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /home/abdulla/apps/Abricotine-linux-ia32/resources/app.asar.unpacked/node_modules/spellchecker/build/Release/spellchecker.node: wrong ELF class: ELFCLASS64
at Error (native)
at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:137:20)
at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:148:18)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/abdulla/apps/Abricotine-linux-ia32/resources/app.asar/node_modules/spellchecker/lib/spellchecker.js:2:16)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
Linux users reported issues with the linux 32 bit package (see #6). Now I wonder if everything is working properly with the 32 bit windows prebuilt binary : Abricotine-win32-ia32.zip
in version 0.2.2.
If you use (or tried to use) it then your feedback would be really appreciated here.
Thank you.
It would be nice if you could append or replace the CSS that's used by default in HTML export, or remove it entirely, without having to edit the resulting HTML file.
There could be support for JavaScript as well, that would be automatically inserted in the <head>
or at the end of the <body>
.
Functions like New, Open, Save, etc. that by convention are in the File menu are in the Abricotine menu on OS X.
Functions like About, Preferences, Quit, etc. that by convention are in the application menu are completely scattered: About is in the Help menu (like Windows), Preferences are in the Edit menu, and Quit apparently does not exist.
Preferences is normally tied to ⌘, instead of strikethrough. Quit (which doesn't exist in Abricotine) is normally tied to ⌘Q instead of Close Window. Close Window and Close Document, tied to ⌘Q and ⌘W respectively, appear to be completely identical. (See #32 for more about Close Window/Quit.)
Functions currently use mostly sentence case instead of title case, as is convention on OS X and Windows.
Cmd + Q is the default Mac shortcut to close the application
This is also mapped to Quote in the Mac OSX client
Therefor I cannot close the application with the shortcut.
Hi,
Could you please add support for LaTeX Equations support.
The reference I can give you is StackEdit.
We really need new MD editor, bravo!
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.