lukakerr / pine Goto Github PK
View Code? Open in Web Editor NEWA modern, native macOS markdown editor
Home Page: https://lukakerr.github.io/Pine
License: Other
A modern, native macOS markdown editor
Home Page: https://lukakerr.github.io/Pine
License: Other
What that Russia text in highlight.js
It appears to me that i.e. $$\begin{align}...\end{align}$$
is not supported. I am not aware of the underlaying rendering process but I believe that mathjax / katex is somewhat sensible to white spaces around $$
- in particular when using \begin{align}
.
A word should be line breaked on any whitespace
Line breaks on anything
Would it be possible to allow links between .md
files in the form of Wikilinks, i.e. [[Other Note.md|Description]]
?
That would make twig a perfect Markdown-Wiki app, which I've been looking for for ages.
I've never worked with Swift before, otherwise I'd offer to help implement it.
It's kinda possible to do this with Atom, and here's how the logic works in JS, but Twig looks much nicer.
Any chance this feature would be possible?
It would be helpful to have separate Editor themes and Preview themes. The editor is just for me, and I want to see Markdown syntax (usually with a dark theme). The preview pane is what will be published and others will see (typically with a light theme). It seems like these should be two different preferences, and possibly two different sets of themes.
In the terminal:
open -a Pine xxxxx.md
The pine app can be run, but pine app does not open xxxx.md
Add a preferences option to use the theme background color as the sidebar background color. Currently a transparent appearance is set on the background, which doesn't look great when the theme is not close to the white/black color of the transparent appearance
Do you have a theme for GitLab?
I also found that GitHub and GitLab did not support the markdown in the same way
So the rendering is not exactly the same
Suggestion: Add in preferences a "compatibility" option with the possibility of choosing "GitHub" or "GitLab" (or something else)
Currently when a new tab or window is opened, the root folder is collapsed. The folder structure should be maintained across sidebars, as well as the selected file
Relaunched and the spellcheck was still enabled.
Cannot reproduce.
Hi,
do you plan an iPad app ?
When I open Twig and/or type a few keystrokes (enough for the preview to update, I'm guessing), the Safari web inspector opens in a new Safari window with title "Web Inspector - [Hostname] - Twig - JSContext". Many windows end up opening so the app is unusable for me. I'm on macOS 10.13.6 with Safari 12. This wasn't a problem when I used Twig a few weeks ago, although I had Safari 11 at the time. When I close Safari, the inspector windows aren't created, but Twig is slow to update the preview and the cursor jumps around when it does.
Hi, thanks for your excellent work!
Can you release a compiled app that can directly run under macOS(most famous repo will offer this kind of things), so users can just drag and drop the app in the Application Folder, compiling from the source is a little bit harder for normal user.
Thanks in advance!
When you start a list (using *
, -
, +
, or a number followed by a period), type an item, and hit return the editor should (at least have the option to) autocomplete a new list element for the next line.
For instance, if I type * Milk
and hit return, the next line should immediately have a *
and a space
so I can easily continue adding to the list. Same for ordinal lists; the next line should have the next number in sequential order.
Additionally, if I hit return again, it should remove the * space
it inserted and return again, discontinuing the list.
Hello!
I can't find a way for local image to render properly in preview window.
I use three files for testing:
/Users/johndoe/tmp/aaa.md
/Users/johndoe/tmp/aaa.png
/Users/johndoe/tmp/aaa/aaa.png - for testing relative subfolder
Nothing of the following seems to work:
![test png 1](aaa.png)
![test png 2](aaa/aaa.png)
![test png 3](file:///Users/johndoe/tmp/aaa.png)
<img src="aaa.png" alt="test png 4">
<img src="aaa/aaa.png" alt="test png 5">
Web link works as it should:
![web png](https://johndoe.com/aaa.png)
I tried to preview same aaa.md in MacDown and it works for all cases.
Am I missing something?
Thank you for your time,
Aljoša
I'm a complete newbie to xcode/swift so this is probably a stupid error but I'm interested in learning via this project.
I followed the instructions for building and using latest XCode Version 9.4.1 (9F2000) but getting an error within several Highlightr files.
'Key' is not a member type of 'NSAttributedString'
Be grateful for any guidance to why this is happening and how to fix.
Whether in the right-pane preview or exporting to either PDF or HTML, Twig can't tell that indenting some list items relative to others has significance.
Here's a selection of Markdown content that will demonstrate the problem:
First, we'll build out the basic, as-generated Hanami app in a Docker image. Initially starting from a Debian base, we'll build an image that
1. installs the Debian packages we've been using for our Ruby-development images, including the requirements (Qt5's `qmake`, `xvfb`, etc) for an image hosting `capybara-webkit` and/or `selenium`;
2. installs the current versions of Gems for
1. Hanami 1.2; and
2. Our evolving-standard suite of development tools, including
1. `awesome_print`,
2. `flay`,
3. `flog`,
4. `reek`,
5. `rubocop`,
6. `pry-byebug`,
7. `simplecov`,
8. various MiniTest add-ons.
(GitHub's Markdown renderer sees that's a numbered list with three levels of indentation.
How Twig renders that content can be seen here:
Obviously not what the markup specifies.
(Possibly related to #18.)
I have seen this feature at the typora MD client. Would be nice when you can add the same functionality as an option for the user.
Preview you can find here: https://typora.io
When I tried to add an emoji to a document (using the latest version of Pine), the app crashed. This happens every time I try to use an emoji.
While trying the app I was typing a bunch of chars really fast and suddenly the cursor went backwodrd(1 char in the beginning, the more chars I've entered more the cursor goes backward)
Trying to use latex auto complete, it works when typing as plain text.
It works in multi-line $$.
But when I try to type between in single line $$, the auto complete just does not pop out.
For example, auto complete works in:
$$
\A
$$
but does not work in :
$\A $
So far, pine looks really nice. There's one tiny thing that caught my eye though, which is the syntax highlighting on typescript code snippets. Specifically imports.
The original code snippet is:
import { field } from 'wetland';
import { translatable } from 'wetland-i18n';
export class Place {
@translatable
@field({ type: 'string' })
public name: string;
}
As you can see, the destructed imports aren't visible. They're there though, when selected they're visible.
See title....
Hello! I'm a really big fan of Twig. Been using at work for the past days and it's awesome!
I think it would be cool if Twig could sync with Gist using Github's API.
Just downloaded Twig, and I have to say it looks awesome! Thanks for making it @lukakerr 🔥
However, currently when editing RTL documents, the text stays oriented to the left (instead of to the right).
pod install then error:
RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:321:in `configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `each'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `each'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `each'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `each'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:203:in `initialize_from_file'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:103:in `open'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:918:in `block (2 levels) in inspect_targets_to_integrate'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:917:in `each'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:917:in `block in inspect_targets_to_integrate'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:912:in `inspect_targets_to_integrate'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:78:in `analyze'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:243:in `analyze'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:116:in `install!'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/command/install.rb:41:in `run'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/command.rb:52:in `run'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.5.0/bin/pod:55:in `<top (required)>'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/bin/pod:23:in `load'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/bin/pod:23:in `<main>'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/Users/nc-wudb/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
see title.
Please add support for hard line breaks with a backslash.
See the example from GitHub Flavored Markdown Spec:
https://github.github.com/gfm/#example-633
See title
It would be nice to be able to have a window, popup, panel, or something that can show markdown quick notes similar to the ones found here:
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
One of the unsupported features is what you call "Markdown shortcuts/auto pair". What exactly do you mean with that? If you're referring to what I think, which is to have shortcuts to make eg. some text bold or wrap it as a url, take a look at the implementation from GitHawk; that might be a good starting point.
Hey there! The project is really cool!
I'd love to be able to install (and update) through homebrew. Are you thinking about supporting it any time soon?
In Swift 4.2 the override func changeFont(_ sender: Any?)
method used to listen for font changes from NSFontManager
was deprecated. An alternative way to listen for font changes need to be found.
The relevant line is here https://github.com/lukakerr/twig/blob/4564ac138ea9a8a5e829eb54ee20def6a1352098/Twig/Controllers/PreferencesViewController.swift#L89
The preview doesn't show the changes from (2) until the file is edited again.
In working on a new export format, I ran into the following issue: if I select a dark theme, then export HTML, the resulting file has white text and a white background. Here are a few ways I could imagine resolving it:
The theme system might need a bit of refactoring to accommodate the last two.
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.