Skip to content

Releases: Dherse/codly

Codly v1.2.0

29 Dec 16:37
Compare
Choose a tag to compare

What's Changed

  • ⚠️Breaking change: now all line references in annotations, highlights, range, ranges, etc. are all one-indexed
    • highlights and annotations used to be zero-indexed #48
  • ⚠️Breaking change: Codly internals are no longer visible (i.e exported), if you needed them, feel free to open an issue and I will make them public behind a codly-internal variable
  • ⚠️Breaking change: Codly uses a new system for references that no longer uses a show ref: ... and instead relies on figure with the kinds codly-line and codly-referencer, be mindful that your show rules do not override those.
  • Quality of life change: Better code completion when using tinymist 🎉
  • Quality of life change: codly references no longer invoke the link show rules, which leads to consistent styling with other references.
  • Codly should be compatible with Typst 0.13 as soon as it comes out (or close to ready)
  • Add highlight-outset, highlight-clip by @KoviRobi in #51
  • Fixed skips not resetting after every code blocks #50
  • Fixed skips adding two lines when line numbers are disabled #52
  • Fixed regression on errors for missing block labels #47
  • Added the new smart-skip feature #49
    • Automatically add a skip when having discontinuous ranges
    • Additionally supports only enabling it in certain "parts" of the code blocks
  • [internal] Improved code organization
  • [internal] Improved regression tests

New Contributors

Full Changelog: v1.1.1...v1.2.0

Codly v1.1.1

04 Dec 16:00
Compare
Choose a tag to compare

Fixed a critical bug #45

What's Changed

Full Changelog: v1.1.0...v1.1.1

Why a second release with the same number?

I had accidentally committed code with the wrong email address, I edited the git history to fix this mistake. So I had to re-publish the release, sorry for any inconvenience.

Codly v1.1.0

01 Dec 18:24
Compare
Choose a tag to compare

As always, refer to the documentation.

Changelog

This is a new release for Codly, find the list of changes below:

Changelog

  • Codly now makes use of raw.line again, allowing further styling using show raw.line show rules
  • Fixed spelling & syntax issues in README.md
  • Highlights:
    • no longer grab extraneous tokens (i.e whitespaces, parentheses, etc.) #35
    • ⚠️ Breaking change: now index properly, no longer globing tokens (i.e you can set a highlight starting and stopping anywhere) 53bdb80
    • have proper indexing when not using tag 6a59fe4
  • Allows for more than one range of lines to be shown a1e6f84
  • Added header and footer arguments #28
  • New documentation
    • Guide on getting nice icons
    • Guide on local states
    • More examples
    • Improved style and readability
  • More powerful relational offsets (i.e offset a code block by the number of lines in another one) #39
  • local:
    • ⚠️ Breaking change: No longer supports nested local blocks by default, requires nested: true argument
    • ⚠️ Breaking change: No longer supports disabling codly by setting enabled: false
    • Significantly increased performance (linear speedup with document length, can be >> 10x for long docs)
    • Explicit support of nested locals using states
  • Significantly increased performance using new argument handling, and improved argument handling
  • Disables paragraph justification by default, small visual improvement #26
  • Smart indentation now works without line numbers
  • Adds a built-in typst-icon function for setting the languages argument to have a typst syntax
  • Fixed line height regression 6032572
  • Make full use of Typst v0.12.0 features (i.e context, to-dict, etc.)
  • inset can now take a dictionary for further customization
  • Now officially supports per-language settings! (see docs!)
  • Improved referencing:
    • Shorthand syntax for line referencing: @my-block:4
    • New guide in the documentation

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.1.0

Codly v1.0.0

16 Jul 21:52
Compare
Choose a tag to compare

First "full" release of codly, feature set can be assumed to be (close to) final until custom types are available in Typst.

Simplified changelog:

  • New documentation
  • Improved customization:
    • Separate padding variable: closes #7
    • Smart indentation: closes #14
    • Taking stroke instead of thickness & color: closes #19
    • Controllable inset, radius, stroke, and fill of language box
    • Controllable line number alignment
  • Make use of context over old system (locate & styles): closes #20 #18
  • Fixed:
    • zebra-strip disabling
    • incorrect positioning of language box
  • Improved handling of complex color fills (i.e gradient & patterns)
  • Added highlights: allows highlighting portions of code and (optionally) referencing them, all parameters configurable (stroke, fill, inset, etc.)
    image
  • Added line skips: allows creating "jump" in line count, what's inserted by default is ..., can be customized
    image
  • Added annotations: allows annotating a (group of) line(s) and referencing them (optionally)
    image
  • Added helper functions: local, no-codly, codly-skip, etc.