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

Implement syntax highlighting as part of core #128

Closed
wants to merge 114 commits into from

Commits on Dec 14, 2022

  1. initial commit

    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    83df3a6 View commit details
    Browse the repository at this point in the history
  2. docs: readme

    Signed-off-by: cpli <[email protected]>
    gwimm authored and Niclas committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    c9d6741 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2022

  1. Add a rustfmt.toml file.

    elkowar committed Dec 17, 2022
    Configuration menu
    Copy the full SHA
    7f65ccc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45f1ba7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f5b111f View commit details
    Browse the repository at this point in the history
  4. feat: Use tracing for logging

    elkowar committed Dec 17, 2022
    Configuration menu
    Copy the full SHA
    951ed99 View commit details
    Browse the repository at this point in the history
  5. refactor(core): Move to xi-rope over ropey.

    Also allows `Document` to open multiple buffers at once.
    elkowar committed Dec 17, 2022
    Configuration menu
    Copy the full SHA
    8735cc2 View commit details
    Browse the repository at this point in the history
  6. build: disable unused features

    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 17, 2022
    Configuration menu
    Copy the full SHA
    6913535 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2022

  1. Configuration menu
    Copy the full SHA
    11fea2d View commit details
    Browse the repository at this point in the history
  2. refactor(core): Move region storage into separate struct

    this manages preserving guarantees of mapping carets to regions
    elkowar committed Dec 18, 2022
    Configuration menu
    Copy the full SHA
    110506f View commit details
    Browse the repository at this point in the history
  3. feat(core): Add user_buffer_op module

    This represents any operations the user performs on a buffer
    elkowar committed Dec 18, 2022
    Configuration menu
    Copy the full SHA
    dcefa50 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    600f4b8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bba7ef7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    555506f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    112cfbd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8c1e87a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ab04c32 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d0b8c5a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b42c5e3 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2022

  1. feat(rekuho): introduce webui prototype (bazed-editor#19)

    * feat(rekuho): introduce webui prototype
    
    A naive editor placing list of spans manually by px.
    
    Co-authored-by: Pedro Burgos <[email protected]>
    Signed-off-by: cpli <[email protected]>
    
    * feat(rekuho): determine XY position of a character
    
    Signed-off-by: cpli <[email protected]>
    
    * refactor(rekuho): `line_height` from theme to code
    
    In VSCode there is an arbitrary "editor.lineHeight" configuration
    variable allowing to multiply the line height calculated from font size.
    
    That is braindead.
    
    buffet: "git must be so lonely"
    I'm trying to understand it.
    
    Signed-off-by: cpli <[email protected]>
    
    * refactor(rekuho): move into `LinearAlgebra.ts`
    
    Signed-off-by: cpli <[email protected]>
    
    * legal(kanagawa): attribute kanagawa to Tommaso Laurenzi
    
    Signed-off-by: cpli <[email protected]>
    
    * chore(rekuho/npm): update package-lock.json
    
    * chore(rehuko): rename to `Vector2` for specificity
    
    Signed-off-by: cpli <[email protected]>
    
    * refactor(rekuho): move example into `Theme.ts`
    
    Signed-off-by: cpli <[email protected]>
    
    * fix(rekuho): everything
    
    Signed-off-by: cpli <[email protected]>
    Co-authored-by: Pedro Burgos <[email protected]>
    gwimm and druskus20 authored Dec 19, 2022
    Configuration menu
    Copy the full SHA
    b56a1ba View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2022

  1. Configuration menu
    Copy the full SHA
    a082421 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. chore: add rust-toolchain.toml

    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    9c14e50 View commit details
    Browse the repository at this point in the history
  2. test: add tests for rustfmt and cargo deny

    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    2afdc9f View commit details
    Browse the repository at this point in the history
  3. ci: add basic ci

    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    c8bc462 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2022

  1. Configuration menu
    Copy the full SHA
    1fef5e1 View commit details
    Browse the repository at this point in the history
  2. refactor(core): Factor Viewport out of View, remove column data

    Removes column data from View, as we decided that we're not gonna
    care about that for now
    elkowar committed Dec 24, 2022
    Configuration menu
    Copy the full SHA
    8981f1b View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2022

  1. Configuration menu
    Copy the full SHA
    d29c688 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c7c69e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    316c089 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bfbaf11 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2022

  1. refactor(buffer): Store regions of text instead of marks

    We do this so we can more easily represent edits on selections of the
    text. Storing marks makes it hard to cleanly express the differences
    between there being a selection and there not being one.
    elkowar committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    1009e0a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    014f09a View commit details
    Browse the repository at this point in the history
  3. fix(buffer): Fix wrong offset when snapping position to line ending

    When snapping positions to the end of their line, when there was no
    line after the desired one, we'd previously snap to the wrong position.
    This fixes that and adds a few tests to verify
    elkowar authored and Niclas committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    757e9d4 View commit details
    Browse the repository at this point in the history
  4. feat(core): Add delete key, generalize Buffers deletion functionality

    instead of `delete_backwards_at_carets` there now is `delete_at_carets`
    which takes a trajectory (either forwards or backwards)
    elkowar authored and Niclas committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    7f07d4e View commit details
    Browse the repository at this point in the history
  5. build: add rust-src to rust-toolchain.toml

    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    e17f275 View commit details
    Browse the repository at this point in the history
  6. refactor(core): use lapce-xi-rope over xi-rope

    Still gets maintained, seems to have a few performance improvements.
    
    Acked-by: ElKowar
    Signed-off-by: buffet <[email protected]>
    buffet committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    591cc81 View commit details
    Browse the repository at this point in the history
  7. Rpc integration tests (bazed-editor#46)

    This PR adds a couple of tests for the RPC API between the frontend and
    backend.
    It won't scale, but it will make our life slightly easier while working
    on the RPC abstractions.
    
    This relates to bazed-editor#34 but it's not high level enough yet
    druskus20 authored Dec 26, 2022
    Configuration menu
    Copy the full SHA
    69b12a0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6220313 View commit details
    Browse the repository at this point in the history
  9. ci: add js lint

    gwimm committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    b780cbe View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f5806b1 View commit details
    Browse the repository at this point in the history
  11. add(rekuho): get proper font metrics

    gwimm authored and elkowar committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    a9b85e5 View commit details
    Browse the repository at this point in the history
  12. feat(rekuho): implement ws-communication with backend

    We also remove a lot of the previously implement local
    editor state logic, as this is now handled by the actual core server.
    gwimm authored and elkowar committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    fe87d99 View commit details
    Browse the repository at this point in the history
  13. fix(rekuho): resolve weird typescript errors

    We convert kanagawa.js to kanagawa.ts to make typescript
    not want to compile the file into itself, and add the
    @types/offscreencanvas dependency
    druskus20 authored and elkowar committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    112ec7c View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2022

  1. feat(core): Implement word boundary detection

    elkowar authored and Niclas committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    b1cb1b4 View commit details
    Browse the repository at this point in the history
  2. feat(buffer): add NextWordBoundary motion

    elkowar authored and Niclas committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    5b8aa9e View commit details
    Browse the repository at this point in the history
  3. feat(buffer): add PrevWordBoundary motion

    elkowar authored and Niclas committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    6c6ad45 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f8ac859 View commit details
    Browse the repository at this point in the history
  5. refactor(buffer): move Position struct into separate module

    elkowar authored and Niclas committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    e6317cd View commit details
    Browse the repository at this point in the history
  6. feat(core): Add snapping and non-snapping to_offset in Position.

    Also adds loads of tests to verify the behavior of `Position`
    elkowar authored and Niclas committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    98d9d06 View commit details
    Browse the repository at this point in the history
  7. feat(core): implement moving the cursor to where the clicks

    elkowar authored and Niclas committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    6972622 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2022

  1. Configuration menu
    Copy the full SHA
    1981ab0 View commit details
    Browse the repository at this point in the history
  2. refactor(buffer): move BufferRegions into separate module

    Also cleans up the BufferRegions code and adds a few tests
    elkowar committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    3d6ee11 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2022

  1. Configuration menu
    Copy the full SHA
    207c91f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bbd327c View commit details
    Browse the repository at this point in the history
  3. feat(buffer): make carets jump into the affected area after undo/redo

    Also includes some slight cleanup of the undo and redo functions
    elkowar authored and Niclas committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    4aed83a View commit details
    Browse the repository at this point in the history
  4. test(integration): Add rustdoc check to tests

    elkowar authored and Niclas committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    d197385 View commit details
    Browse the repository at this point in the history
  5. docs(core): fix broken rustdoc links

    elkowar authored and Niclas committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    408aba6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8a98132 View commit details
    Browse the repository at this point in the history
  7. style(rekuho): input events cleanup

    style(rekuho): remove empty space that @gwimm added
    
    fix(rekuho): cursor not correctly displayed
    druskus20 authored and elkowar committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    83c9a0c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    82e04a1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cbdf939 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8549393 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    91a3c5a View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2023

  1. Configuration menu
    Copy the full SHA
    79280f4 View commit details
    Browse the repository at this point in the history
  2. refactor(buffer): make motion store &Regex instead of being passed as…

    … ref
    
    This allows us to make Motion be Copy again, too
    elkowar authored and Niclas committed Jan 1, 2023
    Configuration menu
    Copy the full SHA
    6cd40f1 View commit details
    Browse the repository at this point in the history
  3. feat(rpc): properly handle pings

    elkowar authored and Niclas committed Jan 1, 2023
    Configuration menu
    Copy the full SHA
    41ad34c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bdfecc9 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2023

  1. feat(vim): implement replace mode

    elkowar authored and Niclas committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    c09cd76 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Configuration menu
    Copy the full SHA
    32cf3b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    adf7c3d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6066980 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3236a28 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2023

  1. Configuration menu
    Copy the full SHA
    26dbd24 View commit details
    Browse the repository at this point in the history
  2. style(rekuho): enforce sass

    gwimm authored and elkowar committed Jan 6, 2023
    3 Configuration menu
    Copy the full SHA
    f4ada53 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2023

  1. Configuration menu
    Copy the full SHA
    a3fc3ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a4525af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af7fb06 View commit details
    Browse the repository at this point in the history
  4. ci: install gtk and other tauri deps for rust build in ci

    Others:
    - libsoup
    - libjavascriptcoregtk-4.0
    - libwebkit2gtk-4.0
    elkowar committed Jan 7, 2023
    Configuration menu
    Copy the full SHA
    7296de8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4f6fc77 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3ba64a0 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2023

  1. Configuration menu
    Copy the full SHA
    359d956 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b907b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    21a2086 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8aa066b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    666ef55 View commit details
    Browse the repository at this point in the history
  6. fix(input-mapper): handle raw vs. translated keymaps properly

    Also moves to expressing modifiers through bitflags.
    elkowar committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    4cdf646 View commit details
    Browse the repository at this point in the history
  7. feat(vim): cw and dw commands

    This fixes bazed-editor#84
    elkowar committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    f6d016d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c976118 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2004196 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6cdb45d View commit details
    Browse the repository at this point in the history
  11. feat(bazed-svelte): add logging framework

    gwimm authored and elkowar committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    df931d6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6e413d2 View commit details
    Browse the repository at this point in the history
  13. docs(bazed-svelte): use @component tags

    gwimm authored and elkowar committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    9268454 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. refactor(rpc): simpify RPC interface

    removes OpenDocument and the whole ViewOpenedResponse stuff,
    as there's no reason the frontend should be the one initiating
    a view-open.
    elkowar authored and Niclas committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    fb1c901 View commit details
    Browse the repository at this point in the history
  2. chore: update tokio

    This fixes RUSTSEC-2023-0001 for us.
    
    Signed-off-by: buffet <[email protected]>
    buffet authored and elkowar committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    a9fd2b8 View commit details
    Browse the repository at this point in the history
  3. style(ci): use short-hand syntax for on

    buffet authored and elkowar committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    1bbfd42 View commit details
    Browse the repository at this point in the history
  4. ci: prevent rust advisories from suddenly failing CI

    buffet authored and elkowar committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    156ee68 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. ci: add rust-problem-matchers action

    elkowar authored and Niclas committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    7f3037f View commit details
    Browse the repository at this point in the history
  2. style: fix clippy lints

    elkowar committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    46e6d0c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b312c1f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cc0cb16 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    82667fc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    642e092 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2023

  1. Configuration menu
    Copy the full SHA
    c780143 View commit details
    Browse the repository at this point in the history
  2. ci(svelte): configure and setup eslint

    elkowar authored and gwimm committed Jan 14, 2023
    Configuration menu
    Copy the full SHA
    dc1642f View commit details
    Browse the repository at this point in the history
  3. style(svelte): fix eslint warnings

    elkowar authored and gwimm committed Jan 14, 2023
    Configuration menu
    Copy the full SHA
    0f7777d View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2023

  1. feat(core): restart the backend when the client disconnects (bazed-ed…

    …itor#90)
    
    This is temporary, until we have proper session management
    and state management -- for now, mainly desirable such that
    frontend-development doesn't need to manually restart the backend
    after every change.
    elkowar authored Jan 15, 2023
    Configuration menu
    Copy the full SHA
    7d34f0a View commit details
    Browse the repository at this point in the history
  2. feat: gate bazed-tauri behind a feature-flag

    elkowar authored and Niclas committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    b473b94 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2023

  1. build: add basic nix flake for dev shells

    Signed-off-by: buffet <[email protected]>
    buffet authored and gwimm committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    f162ba5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c71b68d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0848aa View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. Configuration menu
    Copy the full SHA
    aadc763 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2023

  1. feat(core): add basic rust syntax highlighting

    Also adds the respective information to the RPC protocol
    elkowar committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    5a51392 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4db3989 View commit details
    Browse the repository at this point in the history