Giter Club home page Giter Club logo

d2-mode's People

Contributors

andorsk avatar jcs090218 avatar syohex avatar wowhxj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

d2-mode's Issues

Add watch support

add watch support for d2 diagrams. spins up server which you can go to the browser for

d2 upgrade

support for upgrading d2 directly from emacs.

compile file, region, and buffer to location

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.

Indentation Not Working

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?

d2lang syntax highlighting

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)

when forcing d2-mode loading on open d2-file
Screenshot 2023-01-03 at 20 00 39

void function d2-indent-line

It only happens when I start Emacs with my config:

  1. start Emacs
  2. change scratch buffer's mode to d2-mode
  3. keystroke Return/Enter

d2-indent-line

When using emacs -Q -l d2-mode.el, the problem disappears.

Would you please help me out? Thank you very much.

support d2 sketch flag

support the -s option: -s, --sketch $D2_SKETCH render the diagram to look like it was sketched by hand (default false)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.