andorsk / d2-mode Goto Github PK
View Code? Open in Web Editor NEWemacs major mode for d2 graphs
License: GNU General Public License v3.0
emacs major mode for d2 graphs
License: GNU General Public License v3.0
add watch support for d2 diagrams. spins up server which you can go to the browser for
Would it be difficult to enable org-mode src-code block support similar to plantuml?
M1 Emacs doesn't ship with SVG render support. There are some build flags with libsvg to support rendering in the buffer, but would need to re-install emacs or build from source.
support for upgrading d2 directly from emacs.
add d2-mode to D2 README after milestone 1.
Latest D2 version exposes a command for autoformatting D2 scripts. Intended to be used like Go's, i.e. format on save
d2 on it's way to 1.0 underwent some significant overhauls which are not reflected in the package. Globs come to mind.
add yas-snippets for standard d2 graphs
compile the file to a location i.e compile-file-to-location(location-file), compile-region-to-location(location-file), compile-buffer-to-location.
I was thinking, it would be cool if it also pushed into your clipboard the location so you can easily reference it later.
Hello,
I've just installed and tried making use of d2-mode
but indentation isn't working. If I type out the example
My Class {
shape: class
+field: string
read ()
}
indentation behaves the same as in fundamental mode. I have to manually tab the shape: class
line, and then I have to manually de-indent the curly brace. I've installed both from melpa and tried a git clone, but I get the same behavior.
Are there limits on the indentation?
Add support for better indenting and syntax support
we need to give syntax highlighting support to the d2 language, the other editor versions that are on the official language site have color support (editor support)
d2 can support pngs out of the box. Test the png outputs and see if they work. If so, make default for buffer render.
Debugger entered--Lisp error: (wrong-type-argument commandp d2-open-browser)
call-interactively(d2-open-browser nil nil)
command-execute(d2-open-browser)
I know how to fix it but didn't learn enough emacs-lisp knowledge to achieve it. 🤣
I'm relatively new to D2 but is there a reason d2-mode
uses %%
for comments rather than the standard #
?
add package to melpa
support the -s option: -s, --sketch $D2_SKETCH render the diagram to look like it was sketched by hand (default false)
support changing the layout engine: -l, --layout string $D2_LAYOUT the layout engine used (default "dagre")
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.