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

Add custom digraph support #984

Merged
merged 17 commits into from
Sep 5, 2024
Merged

Commits on Sep 2, 2024

  1. Configuration menu
    Copy the full SHA
    1d7ed3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    944c5d2 View commit details
    Browse the repository at this point in the history
  3. Strip trailing spaces

    citizenmatt committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    471d427 View commit details
    Browse the repository at this point in the history
  4. Update digraph formatting to match Vim

    Vim only use the `~` prefix if the encoding is "latin1". We can just treat it as though the encoding is Unicode, and match the other places we format printable characters. Note that for Vim, if `'display'` contains "uhex", then all unprintable characters are shown in hex, including control characters (`^C`, etc.). IdeaVim does not support the `'display'` option.
    citizenmatt committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    6cb6e41 View commit details
    Browse the repository at this point in the history
  5. Output digraph character codes in decimal, like Vim

    Not sure why IdeaVim has used hex. Vim appears to have used decimal for at least 20 years.
    citizenmatt committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    40a5c7d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    36500de View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0e48f20 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    073920c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ccff399 View commit details
    Browse the repository at this point in the history
  3. Update default digraphs to match current Vim

    List is based on Vim's documentation, although not all digraphs are documented. Additional digraphs are added based on the output of `:digraphs`. These additional digraphs include some digraphs that produce the same character, so the code is updated to handle duplicates, with the same ordering/priority as Vim.
    
    Extra digraphs include the Euro symbol (`=e` and `Eu`), quadruple prime (`4'`) and bullet (`oo`), amongst others.
    
    Also removes a number of non-standard digraphs. The symbols generated don't match the descriptions. The code appears to be private use, so are not reliable. Once custom digraphs are implemented, they can be easily added back in `~/.ideavimrc`
    citizenmatt committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ce1389d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ed0c43b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f5623b3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5c56745 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3cdc90c View commit details
    Browse the repository at this point in the history
  8. Add digraph headers

    citizenmatt committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    0a08fbe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5aa3747 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    867853e View commit details
    Browse the repository at this point in the history