Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚙️ Refactor plugin code #177

Open
18 of 20 tasks
OXY2DEV opened this issue Oct 11, 2024 · 3 comments
Open
18 of 20 tasks

⚙️ Refactor plugin code #177

OXY2DEV opened this issue Oct 11, 2024 · 3 comments
Assignees

Comments

@OXY2DEV
Copy link
Owner

OXY2DEV commented Oct 11, 2024

⛳ Goal

Make the code easier to understand, separate different parsers & renderers, provide more control over what gets rendered, make everything easier to maintain & extend etc.

📝 Tasks

  • Group various configuration options based on their parser/function.
  • Provide a good way to modify deeply nested options.
  • Fix parsers,
    • Markdown.
    • Markdown inline.
    • LaTeX.
    • HTML.
    • Typst.
    • Yaml
  • Fix renderers,
    • Markdown.
    • Markdown inline.
    • LaTeX.
    • HTML.
    • Typst.
    • Yaml
  • Improve documentation & code readability.
  • Revise lua patterns & conditions.
  • Revise redraw mechanic(s).
  • Fix performance issues on slower devices(e.g. Android).
@OXY2DEV OXY2DEV self-assigned this Oct 11, 2024
OXY2DEV added a commit that referenced this issue Nov 3, 2024
OXY2DEV added a commit that referenced this issue Nov 3, 2024
OXY2DEV added a commit that referenced this issue Nov 3, 2024
OXY2DEV added a commit that referenced this issue Nov 3, 2024
You can now specify the types of things not to clear. This is done via
multiple namespaces instead of 1.

This can be disabled too.

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 3, 2024
OXY2DEV added a commit that referenced this issue Nov 3, 2024
OXY2DEV added a commit that referenced this issue Nov 3, 2024
This is done to make everything easier to maintain & help others
understand plugin code in general.

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 4, 2024
OXY2DEV added a commit that referenced this issue Nov 4, 2024
OXY2DEV added a commit that referenced this issue Nov 6, 2024
Highlights can now be directly modified from the config table.

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 6, 2024
OXY2DEV added a commit that referenced this issue Nov 6, 2024
Literal `%` in strings no longer turn into `^@%`. Fixes alignment issues
of tables & widtb calculations.

Ref: #75, #177
OXY2DEV added a commit that referenced this issue Nov 6, 2024
This fixes width calculation issues of escaped characters inside of $$.

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 6, 2024
Scope is now properly highlighted.

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 6, 2024
This also adds support to Obsidian-like property icons!
[Note: Needs the YAML treesitter parser]

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 7, 2024
OXY2DEV added a commit that referenced this issue Nov 8, 2024
OXY2DEV added a commit that referenced this issue Nov 9, 2024
Ref: #177

Doc: Added highlight groups section

Ref: #177

fix!: Deprecated various highlight functions.

highlights.get(), highlights.color(), highlights.hsl() has been
deprecated.
Use highlights.get_property() & highlights.rgb2hsl() instead.
OXY2DEV added a commit that referenced this issue Nov 10, 2024
OXY2DEV added a commit that referenced this issue Nov 10, 2024
OXY2DEV added a commit that referenced this issue Nov 10, 2024
OXY2DEV added a commit that referenced this issue Nov 10, 2024
OXY2DEV added a commit that referenced this issue Nov 10, 2024
Ref: #177

doc: Added experimental options section

Ref: #177
OXY2DEV added a commit that referenced this issue Nov 10, 2024
OXY2DEV added a commit that referenced this issue Nov 11, 2024
Only 2 autocmds are used now.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 10, 2025
OXY2DEV added a commit that referenced this issue Jan 10, 2025
OXY2DEV added a commit that referenced this issue Jan 10, 2025
OXY2DEV added a commit that referenced this issue Jan 10, 2025
OXY2DEV added a commit that referenced this issue Jan 10, 2025
Fixes a bug where callbacks recieve no arguments.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 10, 2025
Fixes a bug where callbacks recieve no arguments.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 10, 2025
This will be used whdn 2 patterns can be matched(e.g. "github%.com/.+",
"github%.com").

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 10, 2025
Ref: #177

feat(config): Added support for commonly used sites in reference link
definitions.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 11, 2025
OXY2DEV added a commit that referenced this issue Jan 11, 2025
…ocks to not be concealed on the simple style

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 11, 2025
…locks.

Ref: #177

fix(renderer-typst): Fixed rendering issues with spaces before raw
blocks.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 11, 2025
WARNING: This module will be deprecated in the future.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 11, 2025
Made to reduce lags on slower devices(e.g. Android).

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 12, 2025
Ref: #177

chore(config): Cleaned up default config

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 12, 2025
OXY2DEV added a commit that referenced this issue Jan 12, 2025
OXY2DEV added a commit that referenced this issue Jan 12, 2025
This table is no longer valid. Refer to thw wiki to see what hl each
option uses.

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 12, 2025
Fixes how `Toggle`, `Enable` & `Disable` worked before.

Ref: #177

feat(hybrid-mode): Added various sub-commands to handle hybrid mode

Added global sub-commands,
  - `HybridToggle`
  - `HybridEnable`
  - `HybridDisable`

Added buffer local sub-commands,
  - `hybridToggle`
  - `hybridEnable`
  - `hybridDisable`

Ref: #177
OXY2DEV added a commit that referenced this issue Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants