removed wezterm
14
wezterm/.config/.github/FUNDING.yml
vendored
@@ -1,14 +0,0 @@
|
|||||||
# These are supported funding model platforms
|
|
||||||
|
|
||||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
||||||
patreon: # Replace with a single Patreon username
|
|
||||||
open_collective: # Replace with a single Open Collective username
|
|
||||||
ko_fi: # Replace with a single Ko-fi username
|
|
||||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
||||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
||||||
liberapay: # Replace with a single Liberapay username
|
|
||||||
issuehunt: # Replace with a single IssueHunt username
|
|
||||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
|
||||||
polar: sravioli
|
|
||||||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
|
||||||
custom: ['https://www.paypal.me/SatansRavioli']
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: "[BUG]"
|
|
||||||
labels: bug
|
|
||||||
assignees: sravioli
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Desktop (please complete the following information):**
|
|
||||||
|
|
||||||
- OS: [e.g. Linux/Windows/etc.]
|
|
||||||
- Version [e.g. `wezterm 20240715-080945-c9116830`]
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: "[REQUEST]"
|
|
||||||
labels: enhancement
|
|
||||||
assignees: sravioli
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
68
wezterm/.config/.github/code_of_conduct.md
vendored
@@ -1,68 +0,0 @@
|
|||||||
# Code of Conduct - kanagawa.wezterm
|
|
||||||
|
|
||||||
## Our Pledge
|
|
||||||
|
|
||||||
In the interest of fostering an open and welcoming environment, we as
|
|
||||||
contributors and maintainers pledge to make participation in our project and
|
|
||||||
our community a harassment-free experience for everyone, regardless of age, body
|
|
||||||
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
||||||
level of experience, education, socio-economic status, nationality, personal
|
|
||||||
appearance, race, religion, or sexual identity and orientation.
|
|
||||||
|
|
||||||
## Our Standards
|
|
||||||
|
|
||||||
Examples of behavior that contributes to a positive environment for our
|
|
||||||
community include:
|
|
||||||
|
|
||||||
* Demonstrating empathy and kindness toward other people
|
|
||||||
* Being respectful of differing opinions, viewpoints, and experiences
|
|
||||||
* Giving and gracefully accepting constructive feedback
|
|
||||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
||||||
and learning from the experience
|
|
||||||
* Focusing on what is best not just for us as individuals, but for the
|
|
||||||
overall community
|
|
||||||
|
|
||||||
Examples of unacceptable behavior include:
|
|
||||||
|
|
||||||
* The use of sexualized language or imagery, and sexual attention or
|
|
||||||
advances
|
|
||||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
||||||
* Public or private harassment
|
|
||||||
* Publishing others' private information, such as a physical or email
|
|
||||||
address, without their explicit permission
|
|
||||||
* Other conduct which could reasonably be considered inappropriate in a
|
|
||||||
professional setting
|
|
||||||
|
|
||||||
## Our Responsibilities
|
|
||||||
|
|
||||||
Project maintainers are responsible for clarifying and enforcing our standards of
|
|
||||||
acceptable behavior and will take appropriate and fair corrective action in
|
|
||||||
response to any instances of unacceptable behavior.
|
|
||||||
|
|
||||||
Project maintainers have the right and responsibility to remove, edit, or reject
|
|
||||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
||||||
not aligned to this Code of Conduct, or to ban
|
|
||||||
temporarily or permanently any contributor for other behaviors that they deem
|
|
||||||
inappropriate, threatening, offensive, or harmful.
|
|
||||||
|
|
||||||
## Scope
|
|
||||||
|
|
||||||
This Code of Conduct applies within all community spaces, and also applies when
|
|
||||||
an individual is officially representing the community in public spaces.
|
|
||||||
Examples of representing our community include using an official e-mail address,
|
|
||||||
posting via an official social media account, or acting as an appointed
|
|
||||||
representative at an online or offline event.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
||||||
reported to the community leaders responsible for enforcement at <mailto:fsimone2002@proton.me>.
|
|
||||||
All complaints will be reviewed and investigated promptly and fairly.
|
|
||||||
|
|
||||||
All community leaders are obligated to respect the privacy and security of the
|
|
||||||
reporter of any incident.
|
|
||||||
|
|
||||||
## Attribution
|
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org/), version [1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md) and [2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md), and was generated by [contributing-gen](https://github.com/bttger/contributing-gen).
|
|
||||||
|
|
||||||
167
wezterm/.config/.github/contributing.md
vendored
@@ -1,167 +0,0 @@
|
|||||||
# Contributing to my wezterm config
|
|
||||||
|
|
||||||
First off, thanks for taking the time to contribute! ❤️
|
|
||||||
|
|
||||||
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
|
|
||||||
|
|
||||||
> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
|
|
||||||
>
|
|
||||||
> - Star the project
|
|
||||||
> - Tweet about it
|
|
||||||
> - Refer this project in your project's readme
|
|
||||||
> - Mention the project at local meetups and tell your friends/colleagues
|
|
||||||
|
|
||||||
## Table of Contents
|
|
||||||
|
|
||||||
- [Code of Conduct](#code-of-conduct)
|
|
||||||
- [I Have a Question](#i-have-a-question)
|
|
||||||
- [I Want To Contribute](#i-want-to-contribute)
|
|
||||||
- [Reporting Bugs](#reporting-bugs)
|
|
||||||
- [Suggesting Enhancements](#suggesting-enhancements)
|
|
||||||
- [Your First Code Contribution](#your-first-code-contribution)
|
|
||||||
- [Improving The Documentation](#improving-the-documentation)
|
|
||||||
- [Styleguides](#styleguides)
|
|
||||||
- [Commit Messages](#commit-messages)
|
|
||||||
|
|
||||||
## Code of Conduct
|
|
||||||
|
|
||||||
This project and everyone participating in it is governed by the
|
|
||||||
[project Code of Conduct](https://www.github.com/sravioli/wezterm/blob/main/code_of_conduct.md).
|
|
||||||
By participating, you are expected to uphold this code. Please report unacceptable behavior
|
|
||||||
to <mailto:fsimone2002@proton.me>.
|
|
||||||
|
|
||||||
## I Have a Question
|
|
||||||
|
|
||||||
Before you ask a question, it is best to search for existing [Issues](https://www.github.com/sravioli/wezterm/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
|
|
||||||
|
|
||||||
If you then still feel the need to ask a question and need clarification, we recommend the following:
|
|
||||||
|
|
||||||
- Open an [Issue](https://www.github.com/sravioli/wezterm/issues/new).
|
|
||||||
- Provide as much context as you can about what you're running into.
|
|
||||||
- Provide project and platform versions (Wezterm, Lua, etc), depending on what seems relevant.
|
|
||||||
|
|
||||||
We will then take care of the issue as soon as possible.
|
|
||||||
|
|
||||||
## I Want To Contribute
|
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
>
|
|
||||||
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
|
|
||||||
|
|
||||||
### Reporting Bugs
|
|
||||||
|
|
||||||
#### Before Submitting a Bug Report
|
|
||||||
|
|
||||||
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
|
|
||||||
|
|
||||||
- Make sure that you are using the latest version.
|
|
||||||
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (If you are looking for support, you might want to check [this section](#i-have-a-question)).
|
|
||||||
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://www.github.com/sravioli/wezterm/issues?q=label%3Abug).
|
|
||||||
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
|
|
||||||
- Collect information about the bug:
|
|
||||||
- Stack trace (Traceback)
|
|
||||||
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
|
|
||||||
- Version of Wezterm.
|
|
||||||
- Possibly your input and the output
|
|
||||||
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
|
|
||||||
|
|
||||||
#### How Do I Submit a Good Bug Report?
|
|
||||||
|
|
||||||
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <mailto:fsimone2002@proton.me>.
|
|
||||||
|
|
||||||
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
|
|
||||||
|
|
||||||
- Open an [Issue](https://www.github.com/sravioli/wezterm/issues/new).
|
|
||||||
- Explain the behavior you would expect and the actual behavior.
|
|
||||||
- Please provide as much context as possible and describe the _reproduction steps_ that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
|
|
||||||
- Provide the information you collected in the previous section.
|
|
||||||
|
|
||||||
Once it's filed:
|
|
||||||
|
|
||||||
- The project team will label the issue accordingly.
|
|
||||||
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
|
|
||||||
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
|
|
||||||
|
|
||||||
### Suggesting Enhancements
|
|
||||||
|
|
||||||
This section guides you through submitting an enhancement suggestion for wezterm, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
|
|
||||||
|
|
||||||
#### Before Submitting an Enhancement
|
|
||||||
|
|
||||||
- Make sure that you are using the latest version.
|
|
||||||
- Find out if the functionality is already covered, maybe by an individual configuration.
|
|
||||||
- Perform a [search](https://www.github.com/sravioli/wezterm/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
|
|
||||||
- Find out whether your idea fits with the scope and aims of the project.
|
|
||||||
|
|
||||||
#### How Do I Submit a Good Enhancement Suggestion?
|
|
||||||
|
|
||||||
Enhancement suggestions are tracked as [GitHub issues](https://www.github.com/sravioli/wezterm/issues).
|
|
||||||
|
|
||||||
- Use a **clear and descriptive title** for the issue to identify the suggestion.
|
|
||||||
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
|
|
||||||
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
|
|
||||||
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
|
|
||||||
- **Explain why this enhancement would be useful** to most wezterm users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
|
|
||||||
|
|
||||||
### Your First Code Contribution
|
|
||||||
|
|
||||||
1. **Fork the repository**:
|
|
||||||
|
|
||||||
~~~bash
|
|
||||||
gh repo fork sravioli/wezterm
|
|
||||||
cd wezterm
|
|
||||||
~~~
|
|
||||||
|
|
||||||
Otherwise click the "Fork" button at the top right of the repository page and then clone it:
|
|
||||||
|
|
||||||
~~~bash
|
|
||||||
git clone https://github.com/your-username/wezterm.git
|
|
||||||
cd wezterm
|
|
||||||
~~~
|
|
||||||
|
|
||||||
2. **Create a branch**:
|
|
||||||
|
|
||||||
~~~bash
|
|
||||||
git checkout -b feat/new-feature
|
|
||||||
~~~
|
|
||||||
|
|
||||||
Now make a change!
|
|
||||||
|
|
||||||
1. Make sure your fork is up to date with the latest changes from the original repository:
|
|
||||||
|
|
||||||
~~~bash
|
|
||||||
git remote add upstream https://github.com/sravioli/wezterm.git
|
|
||||||
git fetch upstream
|
|
||||||
git merge upstream/main
|
|
||||||
~~~
|
|
||||||
|
|
||||||
2. Make your changes in your branch.
|
|
||||||
|
|
||||||
3. **Commit your changes** (please refer to the [styleguide](#styleguides))
|
|
||||||
|
|
||||||
~~~bash
|
|
||||||
git add .
|
|
||||||
git commit -m "feat: my new great feature"
|
|
||||||
~~~
|
|
||||||
|
|
||||||
4. **Push your changes**:
|
|
||||||
|
|
||||||
~~~bash
|
|
||||||
git push origin feat/new-feature
|
|
||||||
~~~
|
|
||||||
|
|
||||||
5. **Open a Pull Request**: Go to your fork on GitHub and click the "New Pull
|
|
||||||
Request" button. Follow the template and provide as much detail as possible
|
|
||||||
about your changes.
|
|
||||||
|
|
||||||
## Styleguides
|
|
||||||
|
|
||||||
### Commit Messages
|
|
||||||
|
|
||||||
This project adheres to the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/#summary) specification.
|
|
||||||
|
|
||||||
You can install [cocogitto](https://github.com/cocogitto/cocogitto?tab=readme-ov-file#installation) to help you follow those rules.
|
|
||||||
|
|
||||||
## Attribution
|
|
||||||
|
|
||||||
This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
|
|
||||||
|
Before Width: | Height: | Size: 31 KiB |
BIN
wezterm/.config/.github/imgs/showcase-mode-copy.png
vendored
|
Before Width: | Height: | Size: 32 KiB |
BIN
wezterm/.config/.github/imgs/showcase-mode-font.png
vendored
|
Before Width: | Height: | Size: 19 KiB |
BIN
wezterm/.config/.github/imgs/showcase-mode-help.png
vendored
|
Before Width: | Height: | Size: 31 KiB |
BIN
wezterm/.config/.github/imgs/showcase-mode-pick.png
vendored
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 230 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 17 KiB |
BIN
wezterm/.config/.github/imgs/showcase.png
vendored
|
Before Width: | Height: | Size: 167 KiB |
674
wezterm/.config/.github/license
vendored
@@ -1,674 +0,0 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 29 June 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The GNU General Public License is a free, copyleft license for
|
|
||||||
software and other kinds of works.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
the GNU General Public License is intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users. We, the Free Software Foundation, use the
|
|
||||||
GNU General Public License for most of our software; it applies also to
|
|
||||||
any other work released this way by its authors. You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to prevent others from denying you
|
|
||||||
these rights or asking you to surrender the rights. Therefore, you have
|
|
||||||
certain responsibilities if you distribute copies of the software, or if
|
|
||||||
you modify it: responsibilities to respect the freedom of others.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must pass on to the recipients the same
|
|
||||||
freedoms that you received. You must make sure that they, too, receive
|
|
||||||
or can get the source code. And you must show them these terms so they
|
|
||||||
know their rights.
|
|
||||||
|
|
||||||
Developers that use the GNU GPL protect your rights with two steps:
|
|
||||||
(1) assert copyright on the software, and (2) offer you this License
|
|
||||||
giving you legal permission to copy, distribute and/or modify it.
|
|
||||||
|
|
||||||
For the developers' and authors' protection, the GPL clearly explains
|
|
||||||
that there is no warranty for this free software. For both users' and
|
|
||||||
authors' sake, the GPL requires that modified versions be marked as
|
|
||||||
changed, so that their problems will not be attributed erroneously to
|
|
||||||
authors of previous versions.
|
|
||||||
|
|
||||||
Some devices are designed to deny users access to install or run
|
|
||||||
modified versions of the software inside them, although the manufacturer
|
|
||||||
can do so. This is fundamentally incompatible with the aim of
|
|
||||||
protecting users' freedom to change the software. The systematic
|
|
||||||
pattern of such abuse occurs in the area of products for individuals to
|
|
||||||
use, which is precisely where it is most unacceptable. Therefore, we
|
|
||||||
have designed this version of the GPL to prohibit the practice for those
|
|
||||||
products. If such problems arise substantially in other domains, we
|
|
||||||
stand ready to extend this provision to those domains in future versions
|
|
||||||
of the GPL, as needed to protect the freedom of users.
|
|
||||||
|
|
||||||
Finally, every program is threatened constantly by software patents.
|
|
||||||
States should not allow patents to restrict development and use of
|
|
||||||
software on general-purpose computers, but in those that do, we wish to
|
|
||||||
avoid the special danger that patents applied to a free program could
|
|
||||||
make it effectively proprietary. To prevent this, the GPL assures that
|
|
||||||
patents cannot be used to render the program non-free.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU General Public License.
|
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Use with the GNU Affero General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU Affero General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the special requirements of the GNU Affero General Public License,
|
|
||||||
section 13, concerning interaction through a network will apply to the
|
|
||||||
combination as such.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program does terminal interaction, make it output a short
|
|
||||||
notice like this when it starts in an interactive mode:
|
|
||||||
|
|
||||||
<program> Copyright (C) <year> <name of author>
|
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, your program's commands
|
|
||||||
might be different; for a GUI interface, you would use an "about box".
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU GPL, see
|
|
||||||
<https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
The GNU General Public License does not permit incorporating your program
|
|
||||||
into proprietary programs. If your program is a subroutine library, you
|
|
||||||
may consider it more useful to permit linking proprietary applications with
|
|
||||||
the library. If this is what you want to do, use the GNU Lesser General
|
|
||||||
Public License instead of this License. But first, please read
|
|
||||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
||||||
25
wezterm/.config/.github/pull_request_template.md
vendored
@@ -1,25 +0,0 @@
|
|||||||
## Proposed changes
|
|
||||||
|
|
||||||
<!-- Describe the big picture of your changes here. If it fixes a bug or
|
|
||||||
resolves a feature request, be sure to link to that issue. -->
|
|
||||||
|
|
||||||
## Types of changes
|
|
||||||
|
|
||||||
What types of changes does your code introduce to this config?
|
|
||||||
_Put an `x` in the boxes that apply_
|
|
||||||
|
|
||||||
- [ ] Bugfix (non-breaking change which fixes an issue)
|
|
||||||
- [ ] New feature (non-breaking change which adds functionality)
|
|
||||||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
||||||
- [ ] Documentation Update (if none of the other choices apply)
|
|
||||||
|
|
||||||
## Checklist
|
|
||||||
|
|
||||||
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask._
|
|
||||||
|
|
||||||
- [ ] I have read the [CONTRIBUTING](https://github.com/sravioli/wezterm/blob/main/.github/contributing.md) doc
|
|
||||||
- [ ] I have added the necessary documentation (if appropriate)
|
|
||||||
|
|
||||||
## Further comments
|
|
||||||
|
|
||||||
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
|
|
||||||
388
wezterm/.config/.github/readme.md
vendored
@@ -1,388 +0,0 @@
|
|||||||
# My wezterm config
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
>
|
|
||||||
> Requirements:
|
|
||||||
>
|
|
||||||
> - [Wezterm _**nightly**_](https://wezfurlong.org/wezterm/installation.html)
|
|
||||||
> - [Fira Code NerdFont](https://www.nerdfonts.com).
|
|
||||||
> - [Monaspace Radon](https://github.com/githubnext/monaspace/releases/latest)
|
|
||||||
> - [Monaspace Krypton](https://github.com/githubnext/monaspace/releases/latest)
|
|
||||||
|
|
||||||
1. **Backup any old config**:
|
|
||||||
|
|
||||||
~~~sh
|
|
||||||
# on Linux
|
|
||||||
mv ~/.config/wezterm ~/.config/wezterm.bak
|
|
||||||
~~~
|
|
||||||
|
|
||||||
~~~powershell
|
|
||||||
# on Windows
|
|
||||||
Move-Item $env:HOME/.config/wezterm $env:HOME/.config/wezterm.bak
|
|
||||||
~~~
|
|
||||||
|
|
||||||
2. **Clone the repo:**
|
|
||||||
|
|
||||||
~~~sh
|
|
||||||
# on Linux
|
|
||||||
git clone https://github.com/sravioli/wezterm.git ~/.config/wezterm
|
|
||||||
~~~
|
|
||||||
|
|
||||||
~~~powershell
|
|
||||||
# on Windows
|
|
||||||
git clone https://github.com/sravioli/wezterm.git $env:HOME/.config/wezterm
|
|
||||||
~~~
|
|
||||||
|
|
||||||
3. **Done** 🎉.
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
### Flexible status bar
|
|
||||||
|
|
||||||
<https://github.com/user-attachments/assets/d8bd96f1-53d6-4fb0-9771-53ca8ecd604b>
|
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
>
|
|
||||||
> Compare to the stock wezterm status bar
|
|
||||||
>
|
|
||||||
> 
|
|
||||||
|
|
||||||
The status bar is flexile and responsive. This ensures that important
|
|
||||||
information is always visible and/or adapts gracefully to changes in the
|
|
||||||
terminal size.
|
|
||||||
|
|
||||||
The status bar attempts to display the most detailed version of each status
|
|
||||||
bar element. If space is insufficient, it falls back to shorter versions or
|
|
||||||
omits the element entirely.
|
|
||||||
|
|
||||||
Elements from Right-to-Left:
|
|
||||||
|
|
||||||
1. Battery:
|
|
||||||
- icon and percentage
|
|
||||||
- percentage only
|
|
||||||
- icon only
|
|
||||||
2. Datetime (using Rust [chrono strftime](https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html) syntax):
|
|
||||||
- `"%a %b %-d %H:%M"` (eg. `Thu Aug 1 19:30`)
|
|
||||||
- `"%d/%m %R"` (eg. `01/08 19:30`)
|
|
||||||
- `"%R"` (eg. `19:30`)
|
|
||||||
3. Hostname:
|
|
||||||
- hostname
|
|
||||||
- hostname initial only
|
|
||||||
4. Current working directory (cwd):
|
|
||||||
- full cwd
|
|
||||||
- cwd with directories shortened at four letters
|
|
||||||
- cwd with directories shortened at one letter
|
|
||||||
|
|
||||||
### Picker
|
|
||||||
|
|
||||||
The picker utility class simplify the use of the builtin
|
|
||||||
[`wezterm.action.InputSelector`](https://wezfurlong.org/wezterm/config/lua/keyassignment/InputSelector.html).
|
|
||||||
|
|
||||||
Creating a new picker is easy, only the two following fields must be specified if
|
|
||||||
you agree with the default settings.
|
|
||||||
|
|
||||||
~~~lua
|
|
||||||
local Picker = require("utils").class.picker
|
|
||||||
|
|
||||||
return Picker.new {
|
|
||||||
title = "Font picker",
|
|
||||||
subdir = "fonts",
|
|
||||||
}
|
|
||||||
~~~
|
|
||||||
|
|
||||||
You can otherwise specify every field for more control. After defining a picker
|
|
||||||
you should add the choices in the specified subdirectory (eg.
|
|
||||||
`./picker/assets/<subdir>/<file>.lua`). The picker expects asset files to
|
|
||||||
contain these two functions:
|
|
||||||
|
|
||||||
~~~lua
|
|
||||||
---The wezterm window object
|
|
||||||
---@class wt.Window
|
|
||||||
|
|
||||||
---The wezterm Pane object
|
|
||||||
---@class wt.Pane
|
|
||||||
|
|
||||||
---@alias PickList.Opts { window: wt.Window, pane: wt.Pane, id: string|nil, label: string|nil }
|
|
||||||
---@alias PickList.getReturn string|{ id: string|nil, label: string|table|nil }
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
---@field get fun(): PickList.getReturn
|
|
||||||
---@field activate fun(Config: table, opts: PickList.Opts): nil
|
|
||||||
~~~
|
|
||||||
|
|
||||||
For more documentation have a look at
|
|
||||||
[./utils/class/picker.lua](../utils/class/picker.lua)
|
|
||||||
|
|
||||||
Currently four picker are already implemented:
|
|
||||||
|
|
||||||
1. Colorscheme picker
|
|
||||||
<details><summary>Click for image</summary>
|
|
||||||
|
|
||||||

|
|
||||||
</details>
|
|
||||||
2. Font picker
|
|
||||||
<details><summary>Click for image</summary>
|
|
||||||
|
|
||||||

|
|
||||||
</details>
|
|
||||||
3. Font size picker
|
|
||||||
<details><summary>Click for image</summary>
|
|
||||||
|
|
||||||

|
|
||||||
</details>
|
|
||||||
4. Font leading picker
|
|
||||||
<details><summary>Click for image</summary>
|
|
||||||
|
|
||||||

|
|
||||||
</details>
|
|
||||||
|
|
||||||
Feel free to implement any new picker, [contributions](./contributing.md)
|
|
||||||
are welcome!
|
|
||||||
|
|
||||||
### Mode indicator with modal prompts
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
The mode indicator highlights the current operationsl mode of the terminal.
|
|
||||||
mode is represented by a distinct label and background color, providing a clear
|
|
||||||
visual cue. The mode indicator is positioned on the left side of the tab bar.
|
|
||||||
|
|
||||||
When a mode is activated, it shows a series of prompts to guide the user on
|
|
||||||
available commands. Each prompt includes a key and its description, styled
|
|
||||||
colors and fonts.
|
|
||||||
|
|
||||||
As for the status-bar, the prompt length gets calculated to ensure it fits within
|
|
||||||
the available space, then each prompt is formatted with a key (or list of keys)
|
|
||||||
enclosed in angle brackets (`<key>`) and followed by its description in
|
|
||||||
italicized text.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
<!--{{{1 MODES KEYMAPS -->
|
|
||||||
|
|
||||||
<!-- {{{2 COPY MODE-->
|
|
||||||
<details>
|
|
||||||
<summary><strong>copy-mode</strong></summary>
|
|
||||||
|
|
||||||
| Key | Action |
|
|
||||||
| --------- | ---------------------------------------- |
|
|
||||||
| `<ESC>` | Exit copy mode |
|
|
||||||
| `<Tab>` | Jump word forward |
|
|
||||||
| `<S-Tab>` | Jump word backward |
|
|
||||||
| `<CR>` | Jump to start of next line |
|
|
||||||
| `<Space>` | Set selection mode to cell |
|
|
||||||
| `0` | Jump to start of line |
|
|
||||||
| `$` | Jump to end of line content |
|
|
||||||
| `^` | Jump to start of line content |
|
|
||||||
| `,` | Jump again backward |
|
|
||||||
| `;` | Jump again |
|
|
||||||
| `F` | Jump backward (prev char off) |
|
|
||||||
| `f` | Jump forward (prev char off) |
|
|
||||||
| `T` | Jump backward (prev char on) |
|
|
||||||
| `t` | Jump forward (prev char on) |
|
|
||||||
| `G` | Jump to scrollback bottom |
|
|
||||||
| `g` | Jump to scrollback top |
|
|
||||||
| `h` | Move left |
|
|
||||||
| `j` | Move down |
|
|
||||||
| `k` | Move up |
|
|
||||||
| `l` | Move right |
|
|
||||||
| `H` | Jump to viewport top |
|
|
||||||
| `L` | Jump to viewport bottom |
|
|
||||||
| `M` | Jump to viewport middle |
|
|
||||||
| `V` | Set selection mode to line |
|
|
||||||
| `v` | Set selection mode to cell |
|
|
||||||
| `<C-v>` | Set selection mode to block |
|
|
||||||
| `O` | Jump to selection other end (horizontal) |
|
|
||||||
| `o` | Jump to selection other end |
|
|
||||||
| `b` | Jump backward word |
|
|
||||||
| `e` | Jump forward word end |
|
|
||||||
| `w` | Jump forward word |
|
|
||||||
| `<C-d>` | Move by page down |
|
|
||||||
| `<C-u>` | Move by page up |
|
|
||||||
| `y` | Copy selection and exit |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<!-- }}} -->
|
|
||||||
|
|
||||||
<!-- {{{2 SEARCH MODE -->
|
|
||||||
<details>
|
|
||||||
<summary><strong>search-mode</strong></summary>
|
|
||||||
|
|
||||||
| Key | Action |
|
|
||||||
| --------------------- | ------------------------ |
|
|
||||||
| `<ESC>` | Exit search mode |
|
|
||||||
| `<CR>` | Jump to prior match |
|
|
||||||
| `<C-n>`/`<DownArrow>` | Jump to next match |
|
|
||||||
| `<C-N>`/`<UpArrow>` | Jump to prior match |
|
|
||||||
| `<C-r>` | Cycle match type |
|
|
||||||
| `<C-u>` | Clear search pattern |
|
|
||||||
| `<PageUp>` | Jump to prior match page |
|
|
||||||
| `<PageDown>` | Jump to next match page |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<!-- }}} -->
|
|
||||||
|
|
||||||
<!-- FONT MODE {{{2 -->
|
|
||||||
<details>
|
|
||||||
<summary><strong>font-mode</strong></summary>
|
|
||||||
|
|
||||||
| Key | Action |
|
|
||||||
| ------------- | ------------------ |
|
|
||||||
| `<ESC>` | Exit font mode |
|
|
||||||
| `+` | Increase font size |
|
|
||||||
| `-` | Decrease font size |
|
|
||||||
| `0` | Reset font size |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<!-- }}} -->
|
|
||||||
|
|
||||||
<!-- WINDOW MODE {{{2 -->
|
|
||||||
<details>
|
|
||||||
<summary><strong>window-mode</strong></summary>
|
|
||||||
|
|
||||||
| Key | Action |
|
|
||||||
| ----------------- | ----------------------------- |
|
|
||||||
| `<ESC>` | Exit window mode |
|
|
||||||
| `p` | Pick pane |
|
|
||||||
| `x` | Swap with active pane |
|
|
||||||
| `q` | Close current pane |
|
|
||||||
| `o` | Toggle pane zoom state |
|
|
||||||
| `v` | Split horizontal |
|
|
||||||
| `s` | Split vertical |
|
|
||||||
| `h`/`<LeftArrow>` | Activate pane to the left |
|
|
||||||
| `j`/`<DownArrow>` | Activate pane below |
|
|
||||||
| `k`/`<UpArrow>` | Activate pane above |
|
|
||||||
| `l`/`<RightArrow>`| Activate pane to the right |
|
|
||||||
| `<` | Adjust pane size to the left |
|
|
||||||
| `>` | Adjust pane size to the right |
|
|
||||||
| `+` | Adjust pane size upwards |
|
|
||||||
| `-` | Adjust pane size downwards |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<!-- }}} -->
|
|
||||||
|
|
||||||
<!-- PICK MODE {{{2 -->
|
|
||||||
<details>
|
|
||||||
<summary><strong>pick-mode</strong></summary>
|
|
||||||
|
|
||||||
| Key | Action |
|
|
||||||
| ------------- | ------------------- |
|
|
||||||
| `<ESC>` | Exit pick mode |
|
|
||||||
| `c` | colorscheme picker |
|
|
||||||
| `f` | font picker |
|
|
||||||
| `s` | font size picker |
|
|
||||||
| `l` | font leading picker |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<!-- }}} -->
|
|
||||||
<!--}}}-->
|
|
||||||
|
|
||||||
### Vim-style keymaps
|
|
||||||
|
|
||||||
The `<leader>` (`LEADER` for wezterm) key is `<C-Space>` (Ctrl + Space).
|
|
||||||
|
|
||||||
Key combinations try to follow the same conventions as Vim, with the added
|
|
||||||
modifier of `W` that maps to the `SUPER`/`WINDOWS` key.
|
|
||||||
|
|
||||||
Switching mode is made possibile using designated leader key combinations:
|
|
||||||
`<leader>w` for window mode, `<leader>f` for font mode, `<leader>c` for copy mode,
|
|
||||||
`<leader>p` for pick mode and `<leader>s` for search mode.
|
|
||||||
|
|
||||||
Additional adjustments and bindings can be effortlessly incorporated to cater to
|
|
||||||
individual preferences and requirements. Adding or modifing existing keymaps is
|
|
||||||
very easy: add (or remove) the desired keymap to the table in
|
|
||||||
[./mappings/default.lua](../mappings/default.lua). The keymap will be
|
|
||||||
automatically converted to Wezterm's syntax.
|
|
||||||
|
|
||||||
Usage example as follows:
|
|
||||||
|
|
||||||
~~~lua
|
|
||||||
local act = require("wezterm").action
|
|
||||||
local Config = { keys = {} } ---wezterm config table
|
|
||||||
|
|
||||||
require("utils.fn").key.map("<M-CR>", act.ToggleFullScreen, Config.keys)
|
|
||||||
|
|
||||||
return Config
|
|
||||||
~~~
|
|
||||||
|
|
||||||
the previous mapping will be translated to:
|
|
||||||
|
|
||||||
~~~lua
|
|
||||||
{ key = "Enter", mods = "ALT", action = act.ToggleFullScreen }
|
|
||||||
~~~
|
|
||||||
|
|
||||||
<!--{{{1 DEFAULT KEYMAPS-->
|
|
||||||
<details>
|
|
||||||
<summary><strong>default keymaps</strong></summary>
|
|
||||||
|
|
||||||
| Key Combination | Action |
|
|
||||||
| --------------- |------------------------------------------ |
|
|
||||||
| `<C-Tab>` | Next Tab |
|
|
||||||
| `<C-S-Tab>` | Previous Tab |
|
|
||||||
| `<M-CR>` | Toggle Fullscreen |
|
|
||||||
| `<C-S-c>` | Copy to Clipboard |
|
|
||||||
| `<C-S-v>` | Paste from Clipboard |
|
|
||||||
| `<C-S-f>` | Search Current Selection or Empty String |
|
|
||||||
| `<C-S-k>` | Clear Scrollback Buffer |
|
|
||||||
| `<C-S-l>` | Show Debug Overlay |
|
|
||||||
| `<C-S-n>` | Spawn New Window |
|
|
||||||
| `<C-S-p>` | Activate Command Palette |
|
|
||||||
| `<C-S-r>` | Reload Configuration |
|
|
||||||
| `<C-S-t>` | Spawn Tab in Current Pane Domain |
|
|
||||||
| `<C-S-u>` | Character Select (Copy to Clipboard) |
|
|
||||||
| `<C-S-w>` | Close Current Tab (with confirmation) |
|
|
||||||
| `<C-S-z>` | Toggle Pane Zoom State |
|
|
||||||
| `<PageUp>` | Scroll Up by Page |
|
|
||||||
| `<PageDown>` | Scroll Down by Page |
|
|
||||||
| `<C-S-Insert>` | Paste from Primary Selection |
|
|
||||||
| `<C-Insert>` | Copy to Primary Selection |
|
|
||||||
| `<C-S-Space>` | Quick Select |
|
|
||||||
| `<C-S-">` | Split Horizontal (Current Pane Domain) |
|
|
||||||
| `<C-S-%>` | Split Vertical (Current Pane Domain) |
|
|
||||||
| `<C-M-h>` | Activate Pane Direction (Left) |
|
|
||||||
| `<C-M-j>` | Activate Pane Direction (Down) |
|
|
||||||
| `<C-M-k>` | Activate Pane Direction (Up) |
|
|
||||||
| `<C-M-l>` | Activate Pane Direction (Right) |
|
|
||||||
| `<leader>w` | Activate Window Mode |
|
|
||||||
| `<leader>f` | Activate Font Mode |
|
|
||||||
| `<leader>c` | Activate Copy Mode |
|
|
||||||
| `<leader>h` | Activate Help Mode |
|
|
||||||
| `<leader>p` | Activate Pick Mode |
|
|
||||||
| `<leader>s` | Search Current Selection or Empty String |
|
|
||||||
| `<S-F1>` | Activate Tab 1 |
|
|
||||||
| `<S-F2>` | Activate Tab 2 |
|
|
||||||
| `<S-F3>` | Activate Tab 3 |
|
|
||||||
| `<S-F4>` | Activate Tab 4 |
|
|
||||||
| `<S-F5>` | Activate Tab 5 |
|
|
||||||
| `<S-F6>` | Activate Tab 6 |
|
|
||||||
| `<S-F7>` | Activate Tab 7 |
|
|
||||||
| `<S-F8>` | Activate Tab 8 |
|
|
||||||
| `<S-F9>` | Activate Tab 9 |
|
|
||||||
| `<S-F10>` | Activate Tab 10 |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<!--}}}-->
|
|
||||||
|
|
||||||
## Thanks
|
|
||||||
|
|
||||||
- [@Wez](https://www.github.com/wez) of course, for the awesome terminal.
|
|
||||||
- [@apredezdc](https://github.com/aperezdc/) for it's implementation of [lua-wcwidth](https://github.com/aperezdc/lua-wcwidth).
|
|
||||||
- [@KevinSilvester](https://github.com/KevinSilvester) for his GPU adapter auto picker.
|
|
||||||
- [@twilsoft](https://github.com/twilsoft) inspired the modal prompts with their [wezmode](https://github.com/twilsoft/wezmode) project.
|
|
||||||
- [@akthe-at](https://github.com/akthe-at) for his contributions to the project.
|
|
||||||
|
|
||||||
<!-- vim: set fdm=marker fdl=1 -->
|
|
||||||
51
wezterm/.config/.github/workflows/release.yaml
vendored
@@ -1,51 +0,0 @@
|
|||||||
---
|
|
||||||
name: ci
|
|
||||||
run-name: Perform release from latest tag
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: ['*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
name: Create a GitHub release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout main
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- run: >-
|
|
||||||
git config user.name github-actions;
|
|
||||||
git config user.email github-actions@github.com;
|
|
||||||
git config --global user.email github-actions@github.com;
|
|
||||||
git config --global user.name github-actions;
|
|
||||||
|
|
||||||
- name: Fetch latest tag
|
|
||||||
run: >-
|
|
||||||
echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)"
|
|
||||||
>> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: SemVer release
|
|
||||||
uses: cocogitto/cocogitto-action@v3.5
|
|
||||||
id: relase
|
|
||||||
|
|
||||||
- name: Generate changelog
|
|
||||||
run: >-
|
|
||||||
cog changelog --at ${{env.LATEST_TAG }} --template
|
|
||||||
remote > GITHUB_CHANGELOG.md
|
|
||||||
|
|
||||||
- name: print
|
|
||||||
run: echo ${{ env.LATEST_TAG }}
|
|
||||||
|
|
||||||
- name: Upload github release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
body_path: GITHUB_CHANGELOG.md
|
|
||||||
tag_name: ${{ env.LATEST_TAG }}
|
|
||||||
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
# Approximate line length for printing. Used as a guide for line wrapping - this
|
|
||||||
# is not a hard requirement: lines may fall under or over the limit.
|
|
||||||
#
|
|
||||||
# (default: `120`)
|
|
||||||
column_width = 90
|
|
||||||
|
|
||||||
# Line endings type. Possible options: `Unix` (LF) or `Windows` (CRLF)
|
|
||||||
#
|
|
||||||
# (default: `Unix`)
|
|
||||||
line_endings = "Unix"
|
|
||||||
|
|
||||||
# Indent type. Possible options: `Tabs` or `Spaces`
|
|
||||||
#
|
|
||||||
# (default: `Tabs`)
|
|
||||||
indent_type = "Spaces"
|
|
||||||
|
|
||||||
# Character size of single indentation. If `indent_type` is set to `Tabs`, this
|
|
||||||
# option is used as a heuristic to determine column width only.
|
|
||||||
#
|
|
||||||
# (default: `4`)
|
|
||||||
indent_width = 2
|
|
||||||
|
|
||||||
# Quote style for string literals. Possible options:
|
|
||||||
#
|
|
||||||
# - `AutoPreferDouble`,
|
|
||||||
# - `AutoPreferSingle`,
|
|
||||||
# - `ForceDouble`,
|
|
||||||
# - `ForceSingle`.
|
|
||||||
#
|
|
||||||
# `AutoPrefer` styles will prefer the specified quote style, but fall back to the
|
|
||||||
# alternative if it has fewer string escapes.
|
|
||||||
# `Force` styles always use the specified style regardless of escapes.
|
|
||||||
#
|
|
||||||
# (default: `AutoPreferDouble`)
|
|
||||||
quote_style = "AutoPreferDouble"
|
|
||||||
|
|
||||||
# Whether parentheses should be applied on function calls with a single string/table
|
|
||||||
# argument. Possible options:
|
|
||||||
#
|
|
||||||
# - `Always` applies parentheses in all cases.
|
|
||||||
# - `NoSingleString` omits parentheses on calls with a single string argument.
|
|
||||||
# - `NoSingleTable` omits parentheses on calls with a single table argument.
|
|
||||||
# - `None` omits parentheses in both cases. Note: parentheses are still kept in
|
|
||||||
# situations where removal can lead to obscurity (e.g.
|
|
||||||
# `foo "bar".setup -> foo("bar").setup`, since the index is on the call result,
|
|
||||||
# not the string).
|
|
||||||
# - `Input` removes all automation and preserves parentheses only if they were
|
|
||||||
# present in input code: consistency is not enforced.
|
|
||||||
#
|
|
||||||
# (default: `Always`)
|
|
||||||
call_parentheses = "None"
|
|
||||||
|
|
||||||
# Specify whether to collapse simple statements. Possible options:
|
|
||||||
#
|
|
||||||
# - `Never`,
|
|
||||||
# - `FunctionOnly`,
|
|
||||||
# - `ConditionalOnly`,
|
|
||||||
# - `Always`
|
|
||||||
#
|
|
||||||
# (default: `Never`)
|
|
||||||
collapse_simple_statement = "Never"
|
|
||||||
|
|
||||||
# StyLua has built-in support for sorting require statements. We group consecutive
|
|
||||||
# require statements into a single "block", and then requires are sorted only within
|
|
||||||
# that block. Blocks of requires do not move around the file.
|
|
||||||
#
|
|
||||||
# We only include requires of the form `local NAME = require(EXPR)`, and sort
|
|
||||||
# lexicographically based on `NAME`. (We also sort Roblox services of the form
|
|
||||||
# `local NAME = game:GetService(EXPR)`)
|
|
||||||
#
|
|
||||||
# Requires sorting is off by default.
|
|
||||||
[sort_requires]
|
|
||||||
enabled = true
|
|
||||||
@@ -1,881 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
|
||||||
|
|
||||||
- - -
|
|
||||||
## [6.3.4](https://github.com/sravioli/wezterm/compare/83e571ae02cbb604c0f22d733d532d612e99588e..6.3.4) - 2025-01-17
|
|
||||||
#### Bug Fixes
|
|
||||||
- update git clone for windows - ([83e571a](https://github.com/sravioli/wezterm/commit/83e571ae02cbb604c0f22d733d532d612e99588e)) - Dawen
|
|
||||||
#### Features
|
|
||||||
- **(update-status)** reduce complexity, add comments - ([3a42f56](https://github.com/sravioli/wezterm/commit/3a42f561bead94b993e2c7701633f65c374b4aa6)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.3.3](https://github.com/sravioli/wezterm/compare/1950423c0ff727ce1436218cdbd08a37feed5210..6.3.3) - 2025-01-01
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(update-status)** close #13 - ([e93d0af](https://github.com/sravioli/wezterm/commit/e93d0af12ba57e07d54b69affa9d169d70fee48c)) - sravioli
|
|
||||||
- battery on desktops - ([1950423](https://github.com/sravioli/wezterm/commit/1950423c0ff727ce1436218cdbd08a37feed5210)) - drzbida
|
|
||||||
#### Features
|
|
||||||
- **(icons)** add yazi icon - ([132ebe1](https://github.com/sravioli/wezterm/commit/132ebe11ae9aea447138f7a1274ec3c377487232)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.3.2](https://github.com/sravioli/wezterm/compare/d49c76ebb93e229adc60b2b17e5bdc53cf2b2058..6.3.2) - 2024-11-24
|
|
||||||
#### Bug Fixes
|
|
||||||
- rename to fs.read_dir() to fs.ls_dir() also in docs - ([d49c76e](https://github.com/sravioli/wezterm/commit/d49c76ebb93e229adc60b2b17e5bdc53cf2b2058)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- standardize picker messages and tab names - ([227583c](https://github.com/sravioli/wezterm/commit/227583cc13f74d7b00becc70d59488fbe9aa4648)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.3.1](https://github.com/sravioli/wezterm/compare/447164147e155970af2be0abbefc2afe00e7d29e..6.3.1) - 2024-11-24
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(utils:fn)** rename fs.read_dir() to fs.ls_dir() - ([f0d9193](https://github.com/sravioli/wezterm/commit/f0d9193bcd9fc7c4d6fcdf9cc6cb7e5b83cbbcec)) - sravioli
|
|
||||||
- correctly instanciate wezterm cache - ([4471641](https://github.com/sravioli/wezterm/commit/447164147e155970af2be0abbefc2afe00e7d29e)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.3.0](https://github.com/sravioli/wezterm/compare/36ec0de9cd7b91b5de1ab3eb5cba7166ed897490..6.3.0) - 2024-11-22
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(utils:gpu_adapter)** use correct class name - ([b20c03c](https://github.com/sravioli/wezterm/commit/b20c03c8022fbbb327a87c0b295d78e173c2bdd2)) - sravioli
|
|
||||||
- disable wrong linter warnings - ([36ec0de](https://github.com/sravioli/wezterm/commit/36ec0de9cd7b91b5de1ab3eb5cba7166ed897490)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(logger)** also check for global enable_logging - ([506ba99](https://github.com/sravioli/wezterm/commit/506ba995859009359037132937fc8eeb5ea58e98)) - sravioli
|
|
||||||
- **(utils)** add gpu field, reorder comments - ([d50bb96](https://github.com/sravioli/wezterm/commit/d50bb961d1a0230386a7960f0b03417e2fa5a796)) - sravioli
|
|
||||||
- **(utils:class)** reorder comments - ([14f3308](https://github.com/sravioli/wezterm/commit/14f33081ee8847a00d89e981084f32a875a25753)) - sravioli
|
|
||||||
- improve statusbar flexibility (#19) - ([b382bb5](https://github.com/sravioli/wezterm/commit/b382bb5bd52593b7141e4900c6ddd678504967a4)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- use builtin tbl functions, minor optimizations - ([2beb355](https://github.com/sravioli/wezterm/commit/2beb355877044036593085d5c34fbae15cb2b222)) - sravioli
|
|
||||||
- organize utils better (#18) - ([8545605](https://github.com/sravioli/wezterm/commit/8545605c34bf17adf6c0c2bcfcf68eaa5bd3b390)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- use new utils.fn.tbl.merge() function - ([fa1ef35](https://github.com/sravioli/wezterm/commit/fa1ef3592a363bf51224eeb49b08aaa992c9eb10)) - sravioli
|
|
||||||
- use class instance logger - ([12ceca7](https://github.com/sravioli/wezterm/commit/12ceca7b657f2a5dc0ad57d898d2041459588392)) - sravioli
|
|
||||||
- refactor utils.fn to add more comments, improve performance - ([6f25268](https://github.com/sravioli/wezterm/commit/6f2526854b6a66f2d974b914d23f71e0888aa118)) - sravioli
|
|
||||||
- improve statusbar flexibility - ([d5ba634](https://github.com/sravioli/wezterm/commit/d5ba6340cc2b8d083db0929f9984dbcd9a088cd7)) - sravioli
|
|
||||||
#### Refactoring
|
|
||||||
- **(utils:gpu)** rename gpu_adapter to gpu - ([86ef9e5](https://github.com/sravioli/wezterm/commit/86ef9e5bcfe07321699e9cae3b7a8418b290a20b)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.2.0](https://github.com/sravioli/wezterm/compare/b3d1a3fde7f874cd2ff90f70f716227cc41d7d7e..6.2.0) - 2024-11-17
|
|
||||||
#### Bug Fixes
|
|
||||||
- change tab title formatting signature - ([62ab5a0](https://github.com/sravioli/wezterm/commit/62ab5a05476d61f204a98c82b3e95c32235d50de)) - sravioli
|
|
||||||
- make fields optionals to silence linter warnings - ([e284fc0](https://github.com/sravioli/wezterm/commit/e284fc0c23b8553a0ee09f1c1daa10db264448cd)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- remove wcwidth (use wezterm.column.width) - ([b3d1a3f](https://github.com/sravioli/wezterm/commit/b3d1a3fde7f874cd2ff90f70f716227cc41d7d7e)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- rewrite update-status, add icons, add workspace indicator - ([57d86d8](https://github.com/sravioli/wezterm/commit/57d86d8d25ae8581b871651be6bb086c07311aea)) - sravioli
|
|
||||||
- use new append function, adapt to format_tab_title signature - ([1c54511](https://github.com/sravioli/wezterm/commit/1c54511bc6028d1ae9fc04227cda417a21bef52e)) - sravioli
|
|
||||||
- add padl, padr, trim - ([3f64c57](https://github.com/sravioli/wezterm/commit/3f64c57ea1774317c571ead34d9582e4f1fea63a)) - sravioli
|
|
||||||
- add prepend function - ([17d72ea](https://github.com/sravioli/wezterm/commit/17d72ea30e4278f9da6475941b00098003979899)) - sravioli
|
|
||||||
- add new icons - ([3ac2a07](https://github.com/sravioli/wezterm/commit/3ac2a07efe472bd382de7075abc1183facba9088)) - sravioli
|
|
||||||
- add keymap to select new tab to open - ([ba524ab](https://github.com/sravioli/wezterm/commit/ba524ab9f644fdf507bcbeba544e09e63e2fe3ff)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- sort icons, change windows decorations for win - ([8e0c5e8](https://github.com/sravioli/wezterm/commit/8e0c5e82dbb6d11226e8a18b0bd931782207036c)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- minor perf tweaks - ([8bb2c5a](https://github.com/sravioli/wezterm/commit/8bb2c5afbc7f4ba9d605a4d53ddf71ddf396e3e3)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.1.1](https://github.com/sravioli/wezterm/compare/5457911ae31620f8584c2c821d72811c8bf42acd..6.1.1) - 2024-11-08
|
|
||||||
#### Bug Fixes
|
|
||||||
- restore leader key - ([3d57fbe](https://github.com/sravioli/wezterm/commit/3d57fbedd32b6a687ab8ac6555911b6f4f87dd70)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- rewrite gmemoize to actually work, add more memoization - ([5457911](https://github.com/sravioli/wezterm/commit/5457911ae31620f8584c2c821d72811c8bf42acd)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.1.0](https://github.com/sravioli/wezterm/compare/995a31aed8ea58579e6edde900db98db894311d3..6.1.0) - 2024-11-02
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(events:format-tab-title)** rm useless local - ([820566d](https://github.com/sravioli/wezterm/commit/820566da28a8ef9cacd29f24de5f4fc32fb4b45e)) - sravioli
|
|
||||||
- **(readme)** update links to files - ([991e4e9](https://github.com/sravioli/wezterm/commit/991e4e9f5bd61eb8a3f321a7b5d4874158806f80)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(utils:class)** update docs, minor fixes - ([985b21d](https://github.com/sravioli/wezterm/commit/985b21d712426f7e8113dd84b33a297c79c1c916)) - sravioli
|
|
||||||
- **(utils:config)** safe require of module, modify logging - ([1e9e092](https://github.com/sravioli/wezterm/commit/1e9e092a1bbb698293586d442eb4ed332bc7f3d2)) - sravioli
|
|
||||||
- **(utils:external)** move external libraries to separate folder - ([0a73acc](https://github.com/sravioli/wezterm/commit/0a73acc452af454f40461de58f0fa188d740dd8b)) - sravioli
|
|
||||||
- **(utils:fn)** simplify key.__has() function - ([9f9c726](https://github.com/sravioli/wezterm/commit/9f9c726541d143e407c47dbc76084bc90b82f5bf)) - sravioli
|
|
||||||
- **(utils:layout)** implement missing colors, add logging - ([d87355b](https://github.com/sravioli/wezterm/commit/d87355b4f968c92dd4d80cc040afe2c96019fe66)) - sravioli
|
|
||||||
- **(utils:logger)** enable logging by default at warn min level - ([f19daa5](https://github.com/sravioli/wezterm/commit/f19daa51a0dc5e380b79912424eb6f172466d583)) - sravioli
|
|
||||||
- status bar spacing, use wt.column_width - ([dff7b21](https://github.com/sravioli/wezterm/commit/dff7b214857ce345116705f65e7efb6d43b906f6)) - sravioli
|
|
||||||
- allow setting bg opacity (fixes #16) - ([923c39c](https://github.com/sravioli/wezterm/commit/923c39c8831fcb26e7c115327e8281149dff9fe8)) - sravioli
|
|
||||||
- add pick mode keymaps in readme - ([56e584f](https://github.com/sravioli/wezterm/commit/56e584f4753cfca559a5d49fe5445534caf23973)) - sravioli
|
|
||||||
- change colorscheme picker keymap in readme - ([995a31a](https://github.com/sravioli/wezterm/commit/995a31aed8ea58579e6edde900db98db894311d3)) - sravioli
|
|
||||||
#### Documentation
|
|
||||||
- **(utils:class)** update class documentation - ([277905e](https://github.com/sravioli/wezterm/commit/277905e96685225a5d6df4a2a7aa6eccb1c33ab3)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(events)** add layout names for logging purposes - ([3695273](https://github.com/sravioli/wezterm/commit/36952733900967ff2da13956906bfeeb9d242f50)) - sravioli
|
|
||||||
- **(picker:colorscheme)** add layout name for logging purposes - ([6093714](https://github.com/sravioli/wezterm/commit/6093714ec103206c866c62f0a076e53cdf27ba1f)) - sravioli
|
|
||||||
- **(utils)** add logging - ([d1bcc4d](https://github.com/sravioli/wezterm/commit/d1bcc4d8f9e8793541a7e7ef920865b3632b321c)) - sravioli
|
|
||||||
- **(utils)** get mod name using `...` - ([d885d04](https://github.com/sravioli/wezterm/commit/d885d0470c0691cad45169fd57b58b5c93529ae2)) - sravioli
|
|
||||||
- **(utils:fn)** split key.map() fn in multiple ones - ([fe5b0f6](https://github.com/sravioli/wezterm/commit/fe5b0f6e7c1b4d570af7b4869cc0de9ee61edccb)) - sravioli
|
|
||||||
- **(utils:logger)** implement a logger - ([a5eac0c](https://github.com/sravioli/wezterm/commit/a5eac0c2d4daf2ae1de670e86ac7f49ba8c4be7b)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- **(readme)** use correct require for map fn - ([4afadca](https://github.com/sravioli/wezterm/commit/4afadca0f03e38710f953873bb116aea982b8643)) - sravioli
|
|
||||||
#### Revert
|
|
||||||
- restore <M-\> as leader - ([f9cb72c](https://github.com/sravioli/wezterm/commit/f9cb72cf2346866338949f5851a70785307cdc9c)) - sravioli
|
|
||||||
#### Style
|
|
||||||
- **(.github)** rename to lowercase - ([2679fdb](https://github.com/sravioli/wezterm/commit/2679fdb08fb48382a2aa95b781ffe8d7906f42c6)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [6.0.0](https://github.com/sravioli/wezterm/compare/1ec7b8140eaa487467454decc9090349f3fde4aa..6.0.0) - 2024-08-02
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(.github)** linebreaks and formatting - ([9c80d09](https://github.com/sravioli/wezterm/commit/9c80d09ea7f445bbcee76f71af6dfea3da798267)) - sravioli
|
|
||||||
- **(event:update-status)** get more accurate tab title, update padding - ([898c0bc](https://github.com/sravioli/wezterm/commit/898c0bcfbc35b1a4b427c199e4adc93595f67796)) - sravioli
|
|
||||||
- **(events:augment-command-palette)** remove palette action to dump themes - ([bd746fa](https://github.com/sravioli/wezterm/commit/bd746facbcab533d0ea335f955551c0eeebbcc29)) - sravioli
|
|
||||||
- **(events:augment-command-palette)** add wezterm config_dir when concatenating path - ([8ace305](https://github.com/sravioli/wezterm/commit/8ace305928ec0fa1be5e18d23cd8f00e854757ea)) - sravioli
|
|
||||||
- **(events:format-tab-title)** use format tab title function - ([72e68a2](https://github.com/sravioli/wezterm/commit/72e68a213421bdee1900d2dcc0a98860b5871459)) - sravioli
|
|
||||||
- **(events:format-tab-title)** change how theme is retrieved - ([019459c](https://github.com/sravioli/wezterm/commit/019459ca81f15304dbc16ab3c6a6951f44a73174)) - sravioli
|
|
||||||
- **(events:update-status)** change font mode bg color - ([5145db3](https://github.com/sravioli/wezterm/commit/5145db399c97cbc5022455a0d569b930645d4930)) - sravioli
|
|
||||||
- **(mappings:modes)** set colorscheme picker key to `c`, remove picker from description - ([26be189](https://github.com/sravioli/wezterm/commit/26be1898327c8cd79aa42d917ca522d8151ef184)) - sravioli
|
|
||||||
- **(mappings:modes)** typo (rm ) - ([cf92888](https://github.com/sravioli/wezterm/commit/cf92888ed6828f7b150319ddbc9de0a9a8ba2f6b)) - sravioli
|
|
||||||
- **(mappings:modes)** typo (rm ) - ([d03ee30](https://github.com/sravioli/wezterm/commit/d03ee30cb6bdaf46f995ba1f5ade26294a799289)) - sravioli
|
|
||||||
- **(picker)** rm useless call to pathconcat - ([ff5c326](https://github.com/sravioli/wezterm/commit/ff5c326c4de70caf8d05e6213524f25be64d89a2)) - sravioli
|
|
||||||
- **(picker)** reimplement pickers with the new class - ([3aa8422](https://github.com/sravioli/wezterm/commit/3aa8422ccb3b958d3bbff7b8996bcb8a08a3a5ff)) - sravioli
|
|
||||||
- **(picker:colorschemes)** correct wrong id for tokyonight storm - ([f0594d4](https://github.com/sravioli/wezterm/commit/f0594d41b0f81178734a5bac4ae25d516d16ec73)) - sravioli
|
|
||||||
- **(picker:colorschemes)** capitalize harhacker label - ([c635fe6](https://github.com/sravioli/wezterm/commit/c635fe6d836654295f1af99beeed98c2e6b756b2)) - sravioli
|
|
||||||
- **(picker:font)** remove useless requires - ([ca54e5e](https://github.com/sravioli/wezterm/commit/ca54e5e2a4ac26d263a1a4e827442253c8561a5b)) - sravioli
|
|
||||||
- **(picker:font-size)** mv `font_size` `font-size` - ([37c6d5d](https://github.com/sravioli/wezterm/commit/37c6d5d502c0e105aa70f73ed06792556415f12b)) - sravioli
|
|
||||||
- **(picker:fonts)** use more expressive label for font reset - ([e872032](https://github.com/sravioli/wezterm/commit/e8720327ff9525d1e9a9397fa4611decdec33c03)) - sravioli
|
|
||||||
- **(picker:leading)** module path, give credit - ([7b9f6fa](https://github.com/sravioli/wezterm/commit/7b9f6fa9168ff628a26336cd55323bffdfd5bc10)) - sravioli
|
|
||||||
- **(readme)** update note block - ([c8e0d4b](https://github.com/sravioli/wezterm/commit/c8e0d4b705e86c421515bf27f6015921d07842dd)) - sravioli
|
|
||||||
- **(utils:fn)** use builtin format method to format layout - ([4285301](https://github.com/sravioli/wezterm/commit/428530160c9c5ff0cebfaba1a2005a68faaf0596)) - sravioli
|
|
||||||
- **(utils:fn)** nil check dirs_read cache - ([a2cbaff](https://github.com/sravioli/wezterm/commit/a2cbaff8f2f165f98031f108da61c5236693cf61)) - sravioli
|
|
||||||
- **(utils:fn)** correctly return early when reading dirs - ([19096b7](https://github.com/sravioli/wezterm/commit/19096b7ffc8cf3214ae5f0472d0e0a55350ae65c)) - sravioli
|
|
||||||
- **(utils:fn)** correctly handle file creation, implement caching - ([287ed24](https://github.com/sravioli/wezterm/commit/287ed240b0838e624fc83d8c003cac48c5701f78)) - sravioli
|
|
||||||
- **(utils:fn)** rm leading dot from filename, check file - ([9aaec0e](https://github.com/sravioli/wezterm/commit/9aaec0e6e245366a7ac950b4021aa099b6da9011)) - sravioli
|
|
||||||
- **(utils:fn)** change read_dir function to pipe to file - ([55eefbe](https://github.com/sravioli/wezterm/commit/55eefbef81b0481220f1fb77f4a6a9ecb9260776)) - sravioli
|
|
||||||
- **(utils:fn)** rm useless fn, implement fs and colors utils - ([a4eef08](https://github.com/sravioli/wezterm/commit/a4eef086ab942501d0a2cfbe7c9cda594e645805)) - sravioli
|
|
||||||
- **(utils:layout)** correctly format the layout - ([0aa37d4](https://github.com/sravioli/wezterm/commit/0aa37d48c45a3cbc5863670c6ec10928efc14486)) - sravioli
|
|
||||||
- **(wezterm.lua)** remove comment - ([65e2d5a](https://github.com/sravioli/wezterm/commit/65e2d5a7d0b317b84702dd9d6ee962cc072c3201)) - sravioli
|
|
||||||
- resolve merge conflicts - ([600b2b3](https://github.com/sravioli/wezterm/commit/600b2b3c20e88f3c4f01b4dae4a8a8afe50e5b16)) - sravioli
|
|
||||||
- resolve merge conflicts - ([8c98c2f](https://github.com/sravioli/wezterm/commit/8c98c2fae27714d61c034a1cec2c3c9f7b3d0fcd)) - sravioli
|
|
||||||
- upload statusbar showcase as gh cdn - ([4d4e27b](https://github.com/sravioli/wezterm/commit/4d4e27b8708880d91888e33fb8ba74f225a5d0ff)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- rename `leading` `font-leading` - ([12d1ff4](https://github.com/sravioli/wezterm/commit/12d1ff48d97fb3e34ba063f66d30a8f9a1ef66a3)) - sravioli
|
|
||||||
- rm outdated file - ([d7ea341](https://github.com/sravioli/wezterm/commit/d7ea341c899fb663138ef96bb651a5791ceb4f97)) - sravioli
|
|
||||||
- delete useless comments - ([c0e5645](https://github.com/sravioli/wezterm/commit/c0e564546b839fb23f4a74383fdeac1ea7afcd97)) - Adam K
|
|
||||||
- delete useless comments - ([f5ee737](https://github.com/sravioli/wezterm/commit/f5ee73776a5b8f88c96af513fb3c87a969f62591)) - Adam K
|
|
||||||
- not supposed to be in this branch... - ([c91689b](https://github.com/sravioli/wezterm/commit/c91689b6105b4db1333fa9f7d8459fcbf43cf29f)) - Adam K
|
|
||||||
#### Documentation
|
|
||||||
- **(utils:fn)** add `pathconcat` documentation - ([4138474](https://github.com/sravioli/wezterm/commit/413847438bb16a86a4d0f184d88c3a0c15154491)) - sravioli
|
|
||||||
- cleanup, ignore diagnostics false-positives, add docs - ([21bab7a](https://github.com/sravioli/wezterm/commit/21bab7a8d975aaa38e3d1e11c26be8b4c1cc64c5)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(README)** add refactor notice - ([88e10d5](https://github.com/sravioli/wezterm/commit/88e10d5eef0a180fb3465738b60b845694fa2844)) - sravioli
|
|
||||||
- **(colorschemes)** add tokyonight colors - ([5622865](https://github.com/sravioli/wezterm/commit/5622865dd00a07df07c793c565e9d21b9530a562)) - sravioli
|
|
||||||
- **(events:augment-command-palette)** add pickers to command palette - ([65e8824](https://github.com/sravioli/wezterm/commit/65e88243a7bb7800eb4ac15412bdcbb1ff12c59b)) - sravioli
|
|
||||||
- **(events:augment-command-palette)** add theme builder command - ([aaa7d8c](https://github.com/sravioli/wezterm/commit/aaa7d8cfab0ef702bf0661d302566bef1d587c8c)) - sravioli
|
|
||||||
- **(events:update-status)** update modes table - ([7154c09](https://github.com/sravioli/wezterm/commit/7154c09b67a6be5a6d899c6e059d79cac7a9f6bf)) - sravioli
|
|
||||||
- **(mappings:modes)** update to new colorscheme picker - ([4936c92](https://github.com/sravioli/wezterm/commit/4936c92e2743bbb1b350bb7775f8ffe155af575d)) - sravioli
|
|
||||||
- **(pick-lists:colorschemes)** add dracula & catppuccin variants - ([546e796](https://github.com/sravioli/wezterm/commit/546e7965e99309261d4989549a5f7ce03025504d)) - sravioli
|
|
||||||
- **(pick-lists:colorschemes)** add rosé pine variants - ([3536c00](https://github.com/sravioli/wezterm/commit/3536c0032d5f562f07c86504070a82f60816dfb7)) - sravioli
|
|
||||||
- **(pick-lists:font-sizes)** move to pick-lists folder, adapt to new picker - ([2e85e44](https://github.com/sravioli/wezterm/commit/2e85e44b9ffda8fe063e54272af0c747dbd0a6e6)) - sravioli
|
|
||||||
- **(picker:colorscheme)** update colorscheme picker - ([0ceaa57](https://github.com/sravioli/wezterm/commit/0ceaa57d50a4c82ca119db5ea1b46f8ab46ab183)) - sravioli
|
|
||||||
- **(picker:colorscheme)** change color of label - ([22a734f](https://github.com/sravioli/wezterm/commit/22a734f0032b18bb239ce20fdbeef8812d169ccd)) - sravioli
|
|
||||||
- **(picker:colorscheme)** streamline colorscheme picker, change var names - ([d3d0546](https://github.com/sravioli/wezterm/commit/d3d05467122660d2f4133497f5869a00bf1071aa)) - sravioli
|
|
||||||
- **(picker:colorscheme)** change palette display - ([7c0e242](https://github.com/sravioli/wezterm/commit/7c0e24241edf87273ee3e66e55a26b8b2fa821ef)) - sravioli
|
|
||||||
- **(picker:colorschemes)** add colors for missing fields - ([a171b00](https://github.com/sravioli/wezterm/commit/a171b0047cbe590f1c03a340f84aa89b652d0cce)) - sravioli
|
|
||||||
- **(picker:colorschemes)** port poimandres theme - ([9f21132](https://github.com/sravioli/wezterm/commit/9f21132280412c334eb026ae0ffa8520f1e5c8f1)) - sravioli
|
|
||||||
- **(picker:colorschemes)** port hardhacker theme - ([329451e](https://github.com/sravioli/wezterm/commit/329451e782d3249d15850f7cf397de4657b44aef)) - sravioli
|
|
||||||
- **(picker:colorschemes)** port eldritch theme - ([66a00c6](https://github.com/sravioli/wezterm/commit/66a00c6af49709ed11a8f8bbde3e181c4c35a4e0)) - sravioli
|
|
||||||
- **(picker:colorschemes)** port bamboo themes - ([0585f5d](https://github.com/sravioli/wezterm/commit/0585f5dba128413da08e753b22873b78058e73f5)) - sravioli
|
|
||||||
- **(picker:colorschemes)** port nightfox themes - ([ec9d8f0](https://github.com/sravioli/wezterm/commit/ec9d8f0c4db5632061cfe97a56170df16aa9ba36)) - sravioli
|
|
||||||
- **(picker:font)** re-implement font picker - ([f811d5c](https://github.com/sravioli/wezterm/commit/f811d5ccc0a80d526ec3fa27e123b2b1c540735e)) - sravioli
|
|
||||||
- **(picker:font-size)** rm useless require - ([bd84f3b](https://github.com/sravioli/wezterm/commit/bd84f3b94d88cc4572e47f1bac94fcad5c91cd43)) - sravioli
|
|
||||||
- **(picker:font_size)** Add a picker for selecting font size - ([bcfb3fd](https://github.com/sravioli/wezterm/commit/bcfb3fdacc52c4a967fb70e8beb9a515e77ffc93)) - Adam K
|
|
||||||
- **(picker:leading)** Dynamically pick line heightI find this one very useful when moving between workspaces withdifferent size monitors/screens - ([3d2df04](https://github.com/sravioli/wezterm/commit/3d2df042f9bc5b4edce4e349da9a981bf68a9eed)) - Adam K
|
|
||||||
- **(pr)** merge branch 'akthe-at-main' - ([562d74a](https://github.com/sravioli/wezterm/commit/562d74aa2f0b4e75704d89eac3beb517039db776)) - sravioli
|
|
||||||
- **(readme)** add status bar showcase - ([a149e2a](https://github.com/sravioli/wezterm/commit/a149e2ae0bb13d4ca1dd144c959626a1a0af8198)) - sravioli
|
|
||||||
- **(themes)** Adds rose pine to theme picker - ([abb8c42](https://github.com/sravioli/wezterm/commit/abb8c42f0fd8ca9b4e04f52017ac03c8d7474c3d)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(themes)** Adds rose pine to theme picker - ([1ec7b81](https://github.com/sravioli/wezterm/commit/1ec7b8140eaa487467454decc9090349f3fde4aa)) - Adam K
|
|
||||||
- **(utils:class)** add picker docs - ([70ebd03](https://github.com/sravioli/wezterm/commit/70ebd03d95b44fdcbee96c5213827009e3014838)) - sravioli
|
|
||||||
- **(utils:fn)** move tab title formatting - ([2d5a551](https://github.com/sravioli/wezterm/commit/2d5a55161dfb9868074483c51c367ebb1f65c5df)) - sravioli
|
|
||||||
- **(utils:fn)** upgrade gmemoize to handle non-fn values, gmemoize more stuff - ([ecaee0a](https://github.com/sravioli/wezterm/commit/ecaee0a53cbef621b6456fab435d4d9764713a87)) - sravioli
|
|
||||||
- **(utils:fn)** implement basic "memoization" using `wezterm.GLOBAL` - ([2d64360](https://github.com/sravioli/wezterm/commit/2d6436032780b55c36fef35dfbe0d0fdb393418f)) - sravioli
|
|
||||||
- **(utils:fn)** adapt to new picker path - ([d21ae41](https://github.com/sravioli/wezterm/commit/d21ae4171d99b4d585574e7f106d68878995872b)) - sravioli
|
|
||||||
- **(utils:fn)** impl pathconcat and fn to make themes compatible w/ cfg - ([f011a92](https://github.com/sravioli/wezterm/commit/f011a9298c585e6b93e23f587bf1b40086026553)) - sravioli
|
|
||||||
- **(utils:fn)** implement a table dump function - ([6e57004](https://github.com/sravioli/wezterm/commit/6e570047aa9611762e20e482b4b4748af3b3c6bd)) - sravioli
|
|
||||||
- **(utils:picker)** improve readability of `pick()` method - ([6d88728](https://github.com/sravioli/wezterm/commit/6d887288dc63583839a6dc54091d967586406385)) - sravioli
|
|
||||||
- **(utils:picker)** pass to build fn window and pane objects - ([693e386](https://github.com/sravioli/wezterm/commit/693e386da5dcf2044b30f3b0053cb42bf4d55144)) - sravioli
|
|
||||||
- **(utils:picker)** add documentation, adjust some functions - ([d8d2c29](https://github.com/sravioli/wezterm/commit/d8d2c291a880ce6519e4617bd54164f46f7b9eec)) - sravioli
|
|
||||||
- **(utils:picker)** re-implement a picker - ([7033c6e](https://github.com/sravioli/wezterm/commit/7033c6e229d317f69d52c79b81e7b185453fb9ff)) - sravioli
|
|
||||||
- re-enable format-tab-title event - ([3348d3a](https://github.com/sravioli/wezterm/commit/3348d3a3848356fc629cb77b426bbd2b651ea338)) - sravioli
|
|
||||||
- merge branch 'main' of https://github.com/sravioli/wezterm - ([09bb3f9](https://github.com/sravioli/wezterm/commit/09bb3f9cc3f972e20e9296ca4b212c1c82f35c9d)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- **(events:update-status)** enable flexible status bar (disabled for showcase) - ([62a8150](https://github.com/sravioli/wezterm/commit/62a815069bac02ebd25f5c9d7838eb95b9f94075)) - sravioli
|
|
||||||
- **(readme)** update link - ([1f839f1](https://github.com/sravioli/wezterm/commit/1f839f156db282310f1b1dd087dd41649070c9c0)) - sravioli
|
|
||||||
- **(readme)** update imgs link - ([2cc5c7a](https://github.com/sravioli/wezterm/commit/2cc5c7a161c5554a7caa5c72ffb4ecaa395a5256)) - sravioli
|
|
||||||
- **(utils:fn)** change command to read directory on windows - ([7ce516d](https://github.com/sravioli/wezterm/commit/7ce516d9c42167624d370b09a9b75342ff602c56)) - sravioli
|
|
||||||
#### Refactoring
|
|
||||||
- **(pick-lists:colorschemes)** move colorschemes to pick list folder, adapt to picker syntax - ([d963e7a](https://github.com/sravioli/wezterm/commit/d963e7a8162c0c7c8c576a8605278b9eba1b046d)) - sravioli
|
|
||||||
#### Style
|
|
||||||
- **(picker:colorschemes)** formatting - ([f53789d](https://github.com/sravioli/wezterm/commit/f53789d7cfe30e04ee39031a03449249cd781400)) - sravioli
|
|
||||||
#### Tests
|
|
||||||
- **(utils:fn)** try to solve popup problem on windows - ([b84ea68](https://github.com/sravioli/wezterm/commit/b84ea68c911acd74b02786864fdb5f55da04efc0)) - unknown
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [5.2.2](https://github.com/sravioli/wezterm/compare/caf9a2be4b599cbf0bff2d9419ed2cc44d364786..5.2.2) - 2024-07-21
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(colors:kanagawa-wave)** change active tab bg color - ([ab7881e](https://github.com/sravioli/wezterm/commit/ab7881ee1774d7bf948d6959f8d48a9b3116d1fb)) - sravioli
|
|
||||||
- **(config:appearance)** enable resize decorations only on windows - ([249f2e5](https://github.com/sravioli/wezterm/commit/249f2e50b5ad8b68f79e1f956a732c80ff4052cc)) - sravioli
|
|
||||||
- **(events:format-tab-title)** update to new utils - ([fb86efa](https://github.com/sravioli/wezterm/commit/fb86efa02dbce3f843227e9dd6253deb539a04bc)) - sravioli
|
|
||||||
- **(utils:fn)** usa local variable to cache colorschemes - ([55d9aa7](https://github.com/sravioli/wezterm/commit/55d9aa782e77f3cdb93e398b59b59f35f606d535)) - sravioli
|
|
||||||
- **(utils:fn)** cache colorscheme values - ([caf9a2b](https://github.com/sravioli/wezterm/commit/caf9a2be4b599cbf0bff2d9419ed2cc44d364786)) - sravioli
|
|
||||||
- **(wezterm.lua)** disable format-tab-title event due to performance - ([0bce154](https://github.com/sravioli/wezterm/commit/0bce154266db69b5f3159323f0372763c9bf0b18)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(picker:theme)** add color palettes to themes - ([42a01fe](https://github.com/sravioli/wezterm/commit/42a01fe7557f9ea38b6f98bc628bd1af122445bb)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [5.2.1](https://github.com/sravioli/wezterm/compare/778e44ff4c56b6a85833451d005a085a8da216d5..5.2.1) - 2024-07-19
|
|
||||||
#### Hotfixes
|
|
||||||
- **(mappings)** enable the theme picker - ([778e44f](https://github.com/sravioli/wezterm/commit/778e44ff4c56b6a85833451d005a085a8da216d5)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [5.2.0](https://github.com/sravioli/wezterm/compare/710aa39c85cd4574b40cf6e7b6ebaa81aea74276..5.2.0) - 2024-07-19
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(colors:kanagawa-dragon)** tab bar now has the same color - ([8d964b2](https://github.com/sravioli/wezterm/commit/8d964b2603059077c9574feed501a3e716fd5d7a)) - sravioli
|
|
||||||
- **(config:gpu)** extract battery info to variable - ([9b25d7a](https://github.com/sravioli/wezterm/commit/9b25d7a22a3ff0ae6503a2d7cb1de268c360b8e0)) - sravioli
|
|
||||||
- **(events:augment-command-palette)** rm useless config variable - ([1b7e943](https://github.com/sravioli/wezterm/commit/1b7e943acde72d1a132a0a8efbfab4cf3662291a)) - sravioli
|
|
||||||
- **(events:format-tab-title)** update to new fn file, get theme dynamically - ([7e27b83](https://github.com/sravioli/wezterm/commit/7e27b83b51dc1dfc83f9310e9910f4f76d45d1a2)) - sravioli
|
|
||||||
- **(events:format-window-title)** update to new fn file - ([7dbdb40](https://github.com/sravioli/wezterm/commit/7dbdb4058c6dfe9b35902435d2b0971e91cf2335)) - sravioli
|
|
||||||
- **(events:lock-interface)** remove useless lock event - ([6b20383](https://github.com/sravioli/wezterm/commit/6b203838ce2aad4e48715df0634dcfb8a51735b5)) - sravioli
|
|
||||||
- **(events:update-status)** update to new fn file, don't use ipairs - ([424ca5d](https://github.com/sravioli/wezterm/commit/424ca5d5345edda43a69340b2300286716cb006b)) - sravioli
|
|
||||||
- **(mappings:default)** update to new fn file - ([bfa37c2](https://github.com/sravioli/wezterm/commit/bfa37c285708b58f4d4c7ddc0d9bba95b690ebc8)) - sravioli
|
|
||||||
- **(mappings:init.lua)** update to new fn file - ([67e8cd4](https://github.com/sravioli/wezterm/commit/67e8cd44eb259d5c94c24dba5a68d6e8643e4d26)) - sravioli
|
|
||||||
- **(mappings:modes)** rm lock interface keymap - ([136c524](https://github.com/sravioli/wezterm/commit/136c524e476c08f477a3691c85af6b3cb42d732d)) - sravioli
|
|
||||||
- **(mappings:modes)** update to new fn file - ([b670ac3](https://github.com/sravioli/wezterm/commit/b670ac384a8a8d582c4b09d64d337463242f4025)) - sravioli
|
|
||||||
- **(utils:class)** update icons class name - ([d97ed99](https://github.com/sravioli/wezterm/commit/d97ed99612ad2583ddad27523d2cdf241f526c1c)) - sravioli
|
|
||||||
- **(utils:class)** rm useless logs, change class name - ([77e9249](https://github.com/sravioli/wezterm/commit/77e92492d7f752990ed3d979eeafbf1382a151aa)) - sravioli
|
|
||||||
- **(utils:class)** change config class name - ([51ad0bd](https://github.com/sravioli/wezterm/commit/51ad0bd8a199588b3555b08b74d642498201472d)) - sravioli
|
|
||||||
- **(utils:fn)** change `fun.lua` to `fn.lua`, divide by classes - ([507007b](https://github.com/sravioli/wezterm/commit/507007b44b033aa928c392bcf5fae1b0ee36ab8a)) - sravioli
|
|
||||||
- **(utils:gpu_adapter)** update to new fn file - ([fdd6d47](https://github.com/sravioli/wezterm/commit/fdd6d47e5be73be9afcbc6b2858dfd55c1f9add7)) - sravioli
|
|
||||||
- **(utils:icons)** move to class folder - ([197ae1e](https://github.com/sravioli/wezterm/commit/197ae1e84a0bf87e1ea3dadb488013252befc91b)) - sravioli
|
|
||||||
- **(utils:modes-list)** remove separate file for mode list - ([393a9c7](https://github.com/sravioli/wezterm/commit/393a9c7763e8e47566d5f257c18476688d70f8bb)) - sravioli
|
|
||||||
- **(wezterm.lua)** rm spacing - ([b875d14](https://github.com/sravioli/wezterm/commit/b875d142e4502122c3567496df0468067c94af28)) - sravioli
|
|
||||||
- rm .luarc.json - ([a6e4950](https://github.com/sravioli/wezterm/commit/a6e4950f7546c5975c2acbb19d85c65bce365d8d)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(config:appearance)** adapt to new fn file - ([cd4dc5a](https://github.com/sravioli/wezterm/commit/cd4dc5a8c25bc9ec99fd0b1fb6ca34f9e1082e03)) - sravioli
|
|
||||||
- **(config:font)** adapt to new fn file - ([24725a2](https://github.com/sravioli/wezterm/commit/24725a29ebb6755e2c68a414d583642ab25abf28)) - sravioli
|
|
||||||
- **(config:general)** adapt to new fn file - ([0df811e](https://github.com/sravioli/wezterm/commit/0df811e03c4907024358265d7a5970afd2826a19)) - sravioli
|
|
||||||
- **(config:general)** add spacing between imports - ([3986aa5](https://github.com/sravioli/wezterm/commit/3986aa569a08d4945eb63a9dc7756fc5b8e1d26c)) - sravioli
|
|
||||||
- **(config:gpu)** switch to low power mode when battery is low - ([cb21880](https://github.com/sravioli/wezterm/commit/cb21880b74524762b2195ec4397a77382e9528b8)) - sravioli
|
|
||||||
- **(config:init.lua)** adapt to new fn file - ([a34f96b](https://github.com/sravioli/wezterm/commit/a34f96bb7c299e2257b07b473122c02b6737a775)) - sravioli
|
|
||||||
- **(picker:theme)** implement a theme picker - ([694a1c8](https://github.com/sravioli/wezterm/commit/694a1c8267198b4914a81f617c99664aff9f348f)) - sravioli
|
|
||||||
- **(utils:class)** move utility classes to separate folder - ([641e83c](https://github.com/sravioli/wezterm/commit/641e83c9e4ad3710cc910de7d93fae1e46e31e23)) - sravioli
|
|
||||||
- **(utils:layout)** add clear method for Layout - ([710aa39](https://github.com/sravioli/wezterm/commit/710aa39c85cd4574b40cf6e7b6ebaa81aea74276)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [5.1.1](https://github.com/sravioli/wezterm/compare/2c59e48069895b1cf8ab053382bfd7dad5dd12d0..5.1.1) - 2024-07-07
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(config:font)** disable font stretch for italics - ([41d54cd](https://github.com/sravioli/wezterm/commit/41d54cd3e9ccdf2fc43760cb50d45c7c8148757a)) - sravioli
|
|
||||||
- **(utils:fun)** rename wez to wt - ([1a61d2e](https://github.com/sravioli/wezterm/commit/1a61d2e516b5bbaaaa32353d5be27eaeab39887a)) - sravioli
|
|
||||||
- rename wez to wt - ([64974e8](https://github.com/sravioli/wezterm/commit/64974e8b0d78f115c9b349197efcf0e78f32ff62)) - sravioli
|
|
||||||
- improve contributing body - ([4425de2](https://github.com/sravioli/wezterm/commit/4425de2b308a64e8eb7e5c8fba5260f9092bb9e6)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(utils:config)** add documentation and logging - ([c81fc41](https://github.com/sravioli/wezterm/commit/c81fc418ed59139c6fd61bbfe98401b77bd30280)) - sravioli
|
|
||||||
- add documentation and logging - ([7140548](https://github.com/sravioli/wezterm/commit/7140548088b89d1d0048857c2054ca9efd51d2cf)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- incorrect path to contributing file from pr template - ([2bf6875](https://github.com/sravioli/wezterm/commit/2bf68750f5c8b18fdaa24c4bed53257ad19b2ecf)) - sravioli
|
|
||||||
#### Style
|
|
||||||
- **(mapping:modes)** add vim folds - ([2c59e48](https://github.com/sravioli/wezterm/commit/2c59e48069895b1cf8ab053382bfd7dad5dd12d0)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [5.1.0](https://github.com/sravioli/wezterm/compare/4c1e5280db288cdbc5b9ad41830ebd93b09ea871..5.1.0) - 2024-07-03
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(utils:modes-list)** rename file, remove mappings table, add padding - ([e7fa846](https://github.com/sravioli/wezterm/commit/e7fa846adbfff32e8c8c483f5e94ca0b93647147)) - sravioli
|
|
||||||
- get current scheme from config - ([2e11c6b](https://github.com/sravioli/wezterm/commit/2e11c6b496bfbde0fc13e644c15f4f27a40fc18f)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(events:update-status)** change the source of mappings table - ([eb19548](https://github.com/sravioli/wezterm/commit/eb195481f88e17e4885c10019c22df08c82d53f1)) - sravioli
|
|
||||||
- **(utils:fun)** add padding function - ([adff13f](https://github.com/sravioli/wezterm/commit/adff13fbe1785eb51eb4b18f4ad07a0d08b2f377)) - sravioli
|
|
||||||
- change mapping definition, add descriptions - ([fd46ab9](https://github.com/sravioli/wezterm/commit/fd46ab9b335a51076fae86fadf75d54bafcb9b26)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- **(readme)** change leader key value, fix file name - ([06b09ac](https://github.com/sravioli/wezterm/commit/06b09ac710bb19690e22d49a9ca2becc53376ea0)) - sravioli
|
|
||||||
- add missing asset - ([4c1e528](https://github.com/sravioli/wezterm/commit/4c1e5280db288cdbc5b9ad41830ebd93b09ea871)) - sravioli
|
|
||||||
#### Refactoring
|
|
||||||
- **(utils:layout)** move insert declaration - ([7520197](https://github.com/sravioli/wezterm/commit/75201977f714f656091b1c90f43f2160f3d4d2e7)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [5.0.0](https://github.com/sravioli/wezterm/compare/fc631022c60027a0461db747782d4c936fb47350..5.0.0) - 2024-07-02
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(README)** streamline key tables by removing dupes - ([112a55a](https://github.com/sravioli/wezterm/commit/112a55a3a507c8f3c04f8752972e0d6ac160635b)) - sravioli
|
|
||||||
- **(mappings:default)** CHANGE LEADER TO `C-Space` - ([894a104](https://github.com/sravioli/wezterm/commit/894a104e23ad0cce08f8dd9285526325e1072b49)) - sravioli
|
|
||||||
- **(mappings:modes)** remove redundant keymaps - ([0d805e3](https://github.com/sravioli/wezterm/commit/0d805e3f96099c8784e5f01431fd13aa15353fdb)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(events:update-status)** add flexible modal prompts when invoking key tables - ([6976650](https://github.com/sravioli/wezterm/commit/69766500cab51b80507d96e39a02b380be4993dc)) - sravioli
|
|
||||||
- **(mappings)** add help mode key table - ([116c743](https://github.com/sravioli/wezterm/commit/116c743349acc75dcd3f9a6d7e83e2afb65da008)) - sravioli
|
|
||||||
- **(utils:icon)** add separator for modal prompt - ([9142bd3](https://github.com/sravioli/wezterm/commit/9142bd3243eb1d6a0c2eed6974103c5ac925af30)) - sravioli
|
|
||||||
- **(utils:modes_list)** move modes list, add keymap list and descr - ([8b32196](https://github.com/sravioli/wezterm/commit/8b3219688bc36d877cac548e7acc78631a52c6f5)) - sravioli
|
|
||||||
- document the new modal prompts in the README - ([83f9f82](https://github.com/sravioli/wezterm/commit/83f9f82f8f27dfcd4406085249ce5accc16fef40)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- **(cocogitto)** add the remote name - ([fc63102](https://github.com/sravioli/wezterm/commit/fc631022c60027a0461db747782d4c936fb47350)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.1.0](https://github.com/sravioli//compare/9222ba36fa40e458dd5ff5cf6b719045c3c90504..4.1.0) - 2024-07-01
|
|
||||||
#### Bug Fixes
|
|
||||||
- do not automatically fallback to dark mode - ([5db3d26](https://github.com/sravioli//commit/5db3d260ba1d1d5d7b477246c5f27d5d9a627682)) - sravioli
|
|
||||||
- remove `fun.in_windows()` function - ([e181391](https://github.com/sravioli//commit/e181391744a5a3dac1837b12d174f6a4401bc852)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(README)** thanks KevinSilvester! - ([f492b9d](https://github.com/sravioli//commit/f492b9d1a48f36a88e09df3d491e56948ba2a7a3)) - sravioli
|
|
||||||
- **(utils:fun)** add function to determine platform - ([55847ed](https://github.com/sravioli//commit/55847edd50715003e6fdd0a6695cff3ff29351b0)) - sravioli
|
|
||||||
- add KevinSilvester gpu picker - ([70a5a8d](https://github.com/sravioli//commit/70a5a8df8ce5cc424f374b73c8356b8ec7f10230)) - sravioli
|
|
||||||
#### Style
|
|
||||||
- change all occurences of 'WezTerm' to 'Wezterm' - ([9222ba3](https://github.com/sravioli//commit/9222ba36fa40e458dd5ff5cf6b719045c3c90504)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.0.5](https://github.com/sravioli//compare/55f272029d7d9369a738d1ea01a1bceb7734dd52..4.0.5) - 2024-07-01
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.0.4](https://github.com/sravioli//compare/28f3f4caa47a4a2f9c440b8e83527e2e4ca00ecf..4.0.4) - 2024-07-01
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.0.3](https://github.com/sravioli//compare/96aaed2d091a8dc74dab9912fc409d84d837b094..4.0.3) - 2024-07-01
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.0.2](https://github.com/sravioli//compare/017d5d39052c2510a491df990a50604a2ffbd2b1..4.0.2) - 2024-07-01
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(cocogitto)** remove tag prefix - ([6a42bfa](https://github.com/sravioli//commit/6a42bfa10fa3541548221a96edbe2bed1c15e051)) - sravioli
|
|
||||||
- **(cog)** update username - ([570babc](https://github.com/sravioli//commit/570babc3b229737ed612d5e38d71ca7cd79afca6)) - sravioli
|
|
||||||
- **(colors)** change kanagawa-lotus tab bar backround colors - ([81b1819](https://github.com/sravioli//commit/81b18197633b38982c3afdbb9236af2e7fdea269)) - sravioli
|
|
||||||
- **(config:general)** remove default program for Alpine - ([a28e46d](https://github.com/sravioli//commit/a28e46d48df48a86a297acac4311be59c1cad22e)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(events:format-tab-title)** don't render in fancy bar and with no bar, nil check icons - ([5438969](https://github.com/sravioli//commit/5438969db37e87caeebdfd5e2fa420ee60cb2b12)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(events:update-status)** increase padding for status-bar - ([396a15e](https://github.com/sravioli//commit/396a15e8817ebf531b0e9e1a9b7400aaea7779dc)) - sravioli
|
|
||||||
- **(events:update-status)** increase padding for status-bar - ([3e6bf9c](https://github.com/sravioli//commit/3e6bf9c915e578df85bb154e9dcd93653d356c0e)) - sravioli
|
|
||||||
- **(events:update-status)** add fancy tab bar support - ([4047afc](https://github.com/sravioli//commit/4047afcdbb0e12285f9a101566805bfb90456075)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(events:update-status)** check usable width with `<=` instead of `<` - ([fb8651c](https://github.com/sravioli//commit/fb8651cc632d3c5d758358a2a17aefd76dabe407)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(events:update-stauts)** display correct battery percentage, add padding - ([bf42e1b](https://github.com/sravioli//commit/bf42e1b1978cd729b1a5ded630e004563b8b3236)) - sravioli
|
|
||||||
- **(mappings)** change leader key - ([88adc01](https://github.com/sravioli//commit/88adc0100afcfa1c124c15f15815326ae42e59e8)) - sravioli
|
|
||||||
- **(mappings:default)** change leader key - ([c6940cf](https://github.com/sravioli//commit/c6940cf7084c2cb1df620556dd13fb579366cc12)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(mappings:default)** change leader key - ([d96ff2f](https://github.com/sravioli//commit/d96ff2f46fc8854348a79a1fa28a015af71ae1cf)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(mappings:modes)** change config initialization - ([911af0a](https://github.com/sravioli//commit/911af0a2829a458f73920257982f039766ec4a2d)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(utils:fun)** correctly retrieve the user home directory - ([77f53de](https://github.com/sravioli//commit/77f53de1da29800b1dd17bdf21fff1465038ff13)) - sravioli
|
|
||||||
- **(utils:fun)** make `tbl_merge()` take a list of strings - ([196e915](https://github.com/sravioli//commit/196e915b65032234470bf660051b2ab81757b74b)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- remove README repetitions - ([e1a665a](https://github.com/sravioli//commit/e1a665af160083eab31d5dcead01bd3f9da93d25)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- update icons.luafixes issue with battery.ico if computer reports "Full" instead of charging or discharging. Issue #2 in main repo. - ([45fbf19](https://github.com/sravioli//commit/45fbf19f72828ce8e74037e233f5f9b91c074395)) - Adam K
|
|
||||||
- embed showcase video - ([017d5d3](https://github.com/sravioli//commit/017d5d39052c2510a491df990a50604a2ffbd2b1)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
#### Features
|
|
||||||
- **(config:font)** add linux support - ([6eb2499](https://github.com/sravioli//commit/6eb2499a83d8a05669621da21665f443a3f3a71f)) - sravioli
|
|
||||||
- **(config:general)** add linux support - ([0ddfe3d](https://github.com/sravioli//commit/0ddfe3d63586dd8c6e1af8d891163c50e0901378)) - sravioli
|
|
||||||
- **(events)** add command palette entry to rename tab - ([7e0331e](https://github.com/sravioli//commit/7e0331ef486598fcd94688192fef16f57d90b4bc)) - sravioli
|
|
||||||
- **(events:format-window-title)** check for nvim and cmd - ([d3a5e9e](https://github.com/sravioli//commit/d3a5e9e5f5f2b78ea2512a60137b7e89ec3294c7)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(events:lock-interface)** add event to lock the interface - ([494f5f9](https://github.com/sravioli//commit/494f5f936a29b5a1880959f8ed5c1f82af3b30b4)) - sravioli
|
|
||||||
- **(events:update-status)** make status-bar truly flexible, add padding - ([16695c5](https://github.com/sravioli//commit/16695c5bf07d1efdc2ef2fb463f289899200f8a7)) - sravioli
|
|
||||||
- **(events:update-status)** display real battery level - ([ad89081](https://github.com/sravioli//commit/ad890817f031718a5a6cddae1c72747ff15bd7a4)) - sravioli
|
|
||||||
- **(mappings)** add lock mode - ([7d4fa6b](https://github.com/sravioli//commit/7d4fa6bb5d8050f8632f7022f133f737c3058cca)) - sravioli
|
|
||||||
- **(mappings:default)** add mapping for quick window navigation - ([16763f9](https://github.com/sravioli//commit/16763f929dcb30458b6c12f1745fa93c243e7c0e)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(utils)** improve is_windows function - ([8bc3bb9](https://github.com/sravioli//commit/8bc3bb9cba91168668621c5ffa41c6491c944cac)) - sravioli
|
|
||||||
- **(utils)** improve is_windows function - ([ba8ddb1](https://github.com/sravioli//commit/ba8ddb1812a6d248f4984019b6ed8dc3c0f4d36d)) - sravioli
|
|
||||||
- **(utils)** add path shortener function - ([88bca6b](https://github.com/sravioli//commit/88bca6b1db9494f4d8b9f07b3abe681af639d345)) - sravioli
|
|
||||||
- **(utils:fun)** add linux support, uppercase first letter of hostname - ([c4d1856](https://github.com/sravioli//commit/c4d18560482b4debe0267b442729d2067fad23ed)) - sravioli
|
|
||||||
- **(wezterm.lua)** load new event - ([44e2043](https://github.com/sravioli//commit/44e204367db52214eb09e1e87cd4158d3cb91196)) - sravioli
|
|
||||||
- **(wezterm.lua)** source new event - ([70181bb](https://github.com/sravioli//commit/70181bb0f567f80c6617d9cfd3cc8a26552d161e)) - sravioli
|
|
||||||
- **(wezterm.lua)** load new config - ([9cc1a97](https://github.com/sravioli//commit/9cc1a971772f70323b1f4c4849aaaa000a0f44c0)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- rewrite and update README - ([cdcfaa8](https://github.com/sravioli//commit/cdcfaa8018d6ee632ac0d1c831b5f6d9e7c392ea)) - sravioli
|
|
||||||
- merge config in config and mappings folder - ([4dace64](https://github.com/sravioli//commit/4dace64f1d2fc7d7353153ef959d3aa9a52f3456)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
#### Hotfixes
|
|
||||||
- **(config)** remove RESIZE decoration, not working under wayland - ([14845f1](https://github.com/sravioli//commit/14845f133bea85e99fd374ea2937898e92630da0)) - sravioli
|
|
||||||
- **(config:general)** typo in wsl domains - ([8588bbc](https://github.com/sravioli//commit/8588bbc7e2c01c9dcc65eba45ba58d93af0d7532)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- **(utils)** add is_windows function, fixes #1 - ([5313598](https://github.com/sravioli//commit/53135983af7f7f4bd3db86f6579dd7bf9f28a053)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- display correctly the status-bar showcase - ([8f292c7](https://github.com/sravioli//commit/8f292c7a227e59d44a67db79265cc38a93a308db)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- correctly call is_windows() as a function - ([f06414a](https://github.com/sravioli//commit/f06414a2777508f849d7e292b04cea7240dfed8c)) - sravioli
|
|
||||||
#### Refactoring
|
|
||||||
- **(utils:wcwidth)** rewrite portions of the wcwidth file - ([bbf92cb](https://github.com/sravioli//commit/bbf92cb116590053d4993784fd6b70003382e649)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.0.1](https://github.com/sravioli/wezterm/compare/12048c2a19d1b7878838039bf480866cffb5fcb1..4.0.1) - 2024-07-01
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(events:update-status)** increase padding for status-bar - ([259a6b2](https://github.com/sravioli/wezterm/commit/259a6b20b707ac481dcfe3fa7faf43d676c95e6b)) - sravioli
|
|
||||||
- update battery icons (fixes #2) - ([405e918](https://github.com/sravioli/wezterm/commit/405e91842ca5173ab28cc35c57ce005325551c55)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
- remove README repetitions - ([05b8162](https://github.com/sravioli/wezterm/commit/05b816256d047fd704338015ead1f47672cd560d)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
#### Features
|
|
||||||
- **(utils)** improve is_windows function - ([8cd6247](https://github.com/sravioli/wezterm/commit/8cd624721f2608c27f1da67147807c073b9563b1)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- display correctly the status-bar showcase - ([12048c2](https://github.com/sravioli/wezterm/commit/12048c2a19d1b7878838039bf480866cffb5fcb1)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
#### Miscellaneous Chores
|
|
||||||
- remove line ending whitespace - ([c1a9f33](https://github.com/sravioli/wezterm/commit/c1a9f33ac251d70a62e473260bf028e681cb9f28)) - sravioli
|
|
||||||
- format with stylua - ([b69abb3](https://github.com/sravioli/wezterm/commit/b69abb302ac3eadd5b2535927d542a6bdbfe09a1)) - sravioli
|
|
||||||
- remove unused asset - ([ae00027](https://github.com/sravioli/wezterm/commit/ae00027dcfa8a9b6a3978edf27cd6f26e8c4669d)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [4.0.0](https://github.com/sravioli/wezterm/compare/2a1412cd060a7047feeea4d2e4efd702384e87f7..4.0.0) - 2024-05-16
|
|
||||||
#### Features
|
|
||||||
- **(events)** add command palette entry to rename tab - ([560bd59](https://github.com/sravioli/wezterm/commit/560bd59c1e46f9ef52324d627cb2db69b5eca8b0)) - sravioli
|
|
||||||
- **(events:update-status)** make status-bar truly flexible, add padding - ([946fafa](https://github.com/sravioli/wezterm/commit/946fafa4d6a9bf4abc55c20e438cef5403f72520)) - sravioli
|
|
||||||
- **(utils)** add path shortener function - ([2a1412c](https://github.com/sravioli/wezterm/commit/2a1412cd060a7047feeea4d2e4efd702384e87f7)) - sravioli
|
|
||||||
- **(wezterm.lua)** load new event - ([1a22b9a](https://github.com/sravioli/wezterm/commit/1a22b9ae0b79bb61ccc91caf9b81216da371375a)) - sravioli
|
|
||||||
- rewrite and update README - ([7bc203d](https://github.com/sravioli/wezterm/commit/7bc203dd41e353ede22f5049e9162112f29534ef)) - sravioli
|
|
||||||
#### Miscellaneous Chores
|
|
||||||
- update all README assets - ([23357f0](https://github.com/sravioli/wezterm/commit/23357f051322293b4a583cb620a5e0270f10097d)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.1.1](https://github.com/sravioli/wezterm/compare/c4dfb7a506e89c021026507f1194853f8694096b..3.1.1) - 2024-05-14
|
|
||||||
#### Hotfixes
|
|
||||||
- correctly call is_windows() as a function - ([c4dfb7a](https://github.com/sravioli/wezterm/commit/c4dfb7a506e89c021026507f1194853f8694096b)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.1.0](https://github.com/sravioli/wezterm/compare/3709298bb9ac25a75dba06caee5383a8412602cb..3.1.0) - 2024-05-14
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(cog)** update username - ([3709298](https://github.com/sravioli/wezterm/commit/3709298bb9ac25a75dba06caee5383a8412602cb)) - sravioli
|
|
||||||
#### Hotfixes
|
|
||||||
- **(config)** remove RESIZE decoration, not working under wayland - ([32e1d1e](https://github.com/sravioli/wezterm/commit/32e1d1e1709e0dfaff5f2735cc910309fff30a6b)) - sravioli
|
|
||||||
- **(utils)** add is_windows function, fixes #1 - ([40f3306](https://github.com/sravioli/wezterm/commit/40f330649a92b1bdca6e76bd66da59feebaa9aa1)) - [@sravioli](https://github.com/sravioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.0.6](https://github.com/sRavioli/wezterm/compare/3.0.5..3.0.6) - 2024-01-24
|
|
||||||
#### Bug Fixes
|
|
||||||
- **(colors)** change kanagawa-lotus tab bar backround colors - ([dfe5c92](https://github.com/sRavioli/wezterm/commit/dfe5c921e5be7ddf86665d8f2f5762b8260aadf8)) - sravioli
|
|
||||||
- **(events:update-stauts)** display correct battery percentage, add padding - ([525881e](https://github.com/sRavioli/wezterm/commit/525881e2b8cb39da7ed156c2d06fbc6de3b7b313)) - sravioli
|
|
||||||
- **(mappings)** change leader key - ([6160705](https://github.com/sRavioli/wezterm/commit/61607051e20e0ba987ed8cdbddcdf0ca869d4529)) - sravioli
|
|
||||||
- **(utils:fun)** correctly retrieve the user home directory - ([3ed4dfd](https://github.com/sRavioli/wezterm/commit/3ed4dfdb4e6a6b78c384daad6fae16dded93fa18)) - sravioli
|
|
||||||
#### Features
|
|
||||||
- **(config:font)** add linux support - ([d0d309a](https://github.com/sRavioli/wezterm/commit/d0d309a008a7c3367a975fccc68f962154d8d7fb)) - sravioli
|
|
||||||
- **(config:general)** add linux support - ([7a68ea6](https://github.com/sRavioli/wezterm/commit/7a68ea648be556bcf1194264b8c438ed178bf886)) - sravioli
|
|
||||||
- **(events:lock-interface)** add event to lock the interface - ([d80dfe2](https://github.com/sRavioli/wezterm/commit/d80dfe21579f5bada297b0388f5cf1c3d2b33b88)) - sravioli
|
|
||||||
- **(events:update-status)** display real battery level - ([13b26cb](https://github.com/sRavioli/wezterm/commit/13b26cb9463a4a10ace1e485aaaca5e95bf1be8d)) - sravioli
|
|
||||||
- **(mappings)** add lock mode - ([0957fa8](https://github.com/sRavioli/wezterm/commit/0957fa8ad025f3858909352a87a872cdcffb8673)) - sravioli
|
|
||||||
- **(utils:fun)** add linux support, uppercase first letter of hostname - ([432e9ff](https://github.com/sRavioli/wezterm/commit/432e9ffe76148dfa539846da4d60e4502e9c5943)) - sravioli
|
|
||||||
- **(wezterm.lua)** source new event - ([e821785](https://github.com/sRavioli/wezterm/commit/e821785c17c8531082d0537a45b5880e76bb9193)) - sravioli
|
|
||||||
#### Miscellaneous Chores
|
|
||||||
- **(changelog)** format with markdownlint - ([bf8fd33](https://github.com/sRavioli/wezterm/commit/bf8fd33fa272468fc579783e926611faec4fd155)) - sravioli
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
|
|
||||||
## [3.0.5](https://github.com/sRavioli/wezterm/compare/3.0.4..3.0.5) - 2023-12-16
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:general)** remove default program for Alpine - ([7b05ee2](https://github.com/sRavioli/wezterm/commit/7b05ee2dc7d90702f2da245f1b87cdb16667151e)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-tab-title)** don't render in fancy bar and with no bar, nil check icons - ([0743b90](https://github.com/sRavioli/wezterm/commit/0743b90cc58e3e31d99dbe216ac4728807be7e53)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:update-status)** add fancy tab bar support - ([9685c2a](https://github.com/sRavioli/wezterm/commit/9685c2abf3701612a847f37ae9729fa48cf69e64)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(mappings:default)** change leader key - ([fa46272](https://github.com/sRavioli/wezterm/commit/fa462726f598da1e3204b559f5aa57aebeba5796)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(mappings:modes)** change config initialization - ([11cc38c](https://github.com/sRavioli/wezterm/commit/11cc38c25e45ef69a51762311d0a739dc5413e34)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:fun)** make `tbl_merge()` take a list of strings - ([e74ea0c](https://github.com/sRavioli/wezterm/commit/e74ea0cf3d8cc56a699d70141c08e869d2b60b74)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(wezterm.lua)** load new config - ([49c6c55](https://github.com/sRavioli/wezterm/commit/49c6c5564ef97cffe6a99f7f1f5ebf19d177a509)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- merge config in config and mappings folder - ([1c7d50a](https://github.com/sRavioli/wezterm/commit/1c7d50a119b84e47d40ec63537c0b0422aadc04a)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Hotfixes
|
|
||||||
|
|
||||||
- **(config:general)** typo in wsl domains - ([4b88a75](https://github.com/sRavioli/wezterm/commit/4b88a75fd5987b15210133cb422c79e4489a9a22)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Refactoring
|
|
||||||
|
|
||||||
- **(utils:wcwidth)** rewrite portions of the wcwidth file - ([ba48223](https://github.com/sRavioli/wezterm/commit/ba48223a60333768a55e983404ae0608a9cebe5b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.0.4](https://github.com/sRavioli/wezterm/compare/3.0.3..3.0.4) - 2023-12-15
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(events:update-status)** check usable width with `<=` instead of `<` - ([c1c8972](https://github.com/sRavioli/wezterm/commit/c1c8972bd44ac66bfbaa177a4f2b1d8ccf19d4f9)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(mappings:default)** change leader key - ([5fa58a4](https://github.com/sRavioli/wezterm/commit/5fa58a47468bd608b21c203c9ed84ccf36b904f6)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(events:format-window-title)** check for nvim and cmd - ([c078d40](https://github.com/sRavioli/wezterm/commit/c078d40587978de999cb855ba80e7daae4a4778c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(mappings:default)** add mapping for quick window navigation - ([5994425](https://github.com/sRavioli/wezterm/commit/5994425d04439489f6ca60468b3043d4cdb84d08)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.0.3](https://github.com/sRavioli/wezterm/compare/3.0.2..3.0.3) - 2023-12-14
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(events:update-status)** improve width calculation - ([6004de6](https://github.com/sRavioli/wezterm/commit/6004de6f683f959eaaccb1c1593a4e0629fa2807)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- embed showcase video - ([b31ab12](https://github.com/sRavioli/wezterm/commit/b31ab12c9437acd51d14d2bc87508dae7c09b719)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(assets)** update flexible statusbar showcase - ([25c2c3e](https://github.com/sRavioli/wezterm/commit/25c2c3e46d4bcca888a8dea7d72433cae6d3574a)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.0.2](https://github.com/sRavioli/wezterm/compare/3.0.1..3.0.2) - 2023-12-14
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:font)** don't adjust window size when changing font size - ([aa35df7](https://github.com/sRavioli/wezterm/commit/aa35df7b0869e1d7d7e9b5b5f950b0d044ba9207)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** use correct nerd font fallback - ([7d2d1ff](https://github.com/sRavioli/wezterm/commit/7d2d1ffb3939c7f2790172c3cd5eea55fa8831c7)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(event:format-tab-title)** rename `opts` to `attributes` - ([c2fbfb9](https://github.com/sRavioli/wezterm/commit/c2fbfb97e875c698853f13da4a0fc31600b1fdd2)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-tab-title)** re-use nvim cmd hack - ([434e7d2](https://github.com/sRavioli/wezterm/commit/434e7d23fd9b48939a75d39673d81365514f8266)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:fun)** use # operator for string length - ([de9f6e8](https://github.com/sRavioli/wezterm/commit/de9f6e8f692a775d2557d35eb321d5e21706f473)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:layout)** documentation, add attributes option - ([7c390f0](https://github.com/sRavioli/wezterm/commit/7c390f08ebed776ced4e1aa56644330b44ba0bbb)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- remove copy mode indicator from tab title - ([6c9d1e2](https://github.com/sRavioli/wezterm/commit/6c9d1e2a14757725833e59c0e6e823c1f093ddd2)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(events:update-status)** add 2 cells of padding from tab bar - ([a0b83d9](https://github.com/sRavioli/wezterm/commit/a0b83d9f361619a2d7193b41726023ff2d40ed4c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(readme)** add README - ([a8f7f82](https://github.com/sRavioli/wezterm/commit/a8f7f82cc82e487a9969c961218879debfe6d1e6)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Hotfixes
|
|
||||||
|
|
||||||
- **(github)** wrong folder name for github workflows - ([2e0e69e](https://github.com/sRavioli/wezterm/commit/2e0e69e549d51e49194f9b2228b83505e8fa8c58)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Style
|
|
||||||
|
|
||||||
- **(mappings)** remove variable - ([e84c855](https://github.com/sRavioli/wezterm/commit/e84c855948a64f2ae601aa31cb7b2a0df4109eef)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.0.1](https://github.com/sRavioli/wezterm/compare/3.0.0..3.0.1) - 2023-12-14
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- update changelog - ([79a3f9b](https://github.com/sRavioli/wezterm/commit/79a3f9b0a8173cbecde6a697a1b3de33845af421)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Hotfixes
|
|
||||||
|
|
||||||
- **(github)** restore release action - ([37e5719](https://github.com/sRavioli/wezterm/commit/37e5719f93bf38cfda0682e7b31c7ea7d7eb75b8)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [3.0.0](https://github.com/sRavioli/wezterm/compare/2.1.2..3.0.0) - 2023-12-14
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(colors)** remove catpuccin colorcheme, add colors to kanagawa themes - ([e6aead9](https://github.com/sRavioli/wezterm/commit/e6aead91b32bb9cd9e550823d517746a27dd0a50)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config)** refactor config to use less files - ([a2be4b1](https://github.com/sRavioli/wezterm/commit/a2be4b1724911650725cd9a574fa22828eebf844)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(event:format-tab-title)** don't wrap in `setup()`, check nvim from foreground process - ([9139ff0](https://github.com/sRavioli/wezterm/commit/9139ff07b86564eee72918b286b25c2fe99f0488)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(event:format-window-title)** don't wrap `wezterm.on()` in a setup function - ([5765bf3](https://github.com/sRavioli/wezterm/commit/5765bf30d7c5223d7d4020635704cbb859b114d6)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(event:new-tab-button-click)** don't wrap `wezterm.on()` in a setup function - ([35f8cc2](https://github.com/sRavioli/wezterm/commit/35f8cc2cfdc697ba18ee8eeadd842fc60a671402)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(github)** typo in release workflow - ([b4e5087](https://github.com/sRavioli/wezterm/commit/b4e50876a4f7f4e4c85e7e191c71fce8f800d057)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(github)** typo in release workflow - ([a0a4b12](https://github.com/sRavioli/wezterm/commit/a0a4b12ef20d0274399c7b8ef8e3d4c77b52f8c0)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(stylua)** update stylua configuration - ([4287cb9](https://github.com/sRavioli/wezterm/commit/4287cb9cb99604127cf8e4ea8103e12ccf12f048)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils)** add config utils, `wcwidth()` and fix `Layout:new()` - ([936b008](https://github.com/sRavioli/wezterm/commit/936b008d375f618a6853c80b609638f3e2b8d10c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:fun)** rename to un.lua, add strwidth and key parser - ([7d1f7fc](https://github.com/sRavioli/wezterm/commit/7d1f7fc34841521e4c5bf6331d69dc3ccc4c4cce)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- remove changelog - ([161e264](https://github.com/sRavioli/wezterm/commit/161e2645c2b298128215b08277f9493ebe4bde1d)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- remove useless yamlfix - ([a4eaf51](https://github.com/sRavioli/wezterm/commit/a4eaf510893fc7d74c4a6361580ad20e4d8cec9b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- remove current colorscheme file - ([5511725](https://github.com/sRavioli/wezterm/commit/55117256b5175d0a91a39b0a7fc7ff2b534f562d)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(event:update-status)** add mode indicator, correctly calculate widths - ([a943b31](https://github.com/sRavioli/wezterm/commit/a943b310dce5ed57de82b43c05bcc68c9644c94c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(mappings)** switch to vim-like mapping style, add modes - ([a08a2fa](https://github.com/sRavioli/wezterm/commit/a08a2fa9991928ca869a2429a9d22a1d8d11e511)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm.lua)** load new config - ([3ad7119](https://github.com/sRavioli/wezterm/commit/3ad7119ee008f9822b4776acb4d6ec518553107d)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- add .luarc.json - ([e0b51dd](https://github.com/sRavioli/wezterm/commit/e0b51ddc5e0651db24db6e78cf11b564d41eaeae)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Style
|
|
||||||
|
|
||||||
- format with stylua - ([85d1820](https://github.com/sRavioli/wezterm/commit/85d182058013d4d4b270a97c78cc6b9d4d937320)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.1.2](https://github.com/sRavioli/wezterm/compare/2.1.1..2.1.2) - 2023-12-08
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:font)** add LegacyComputing font, reduce font size - ([309c6c2](https://github.com/sRavioli/wezterm/commit/309c6c2716b71cfa4eb54a33707df8c8ae030862)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.1.1](https://github.com/sRavioli/wezterm/compare/2.1.0..2.1.1) - 2023-11-17
|
|
||||||
|
|
||||||
#### Hotfixes
|
|
||||||
|
|
||||||
- **(wezterm.lua)** load new-tab-button-click event - ([31ee482](https://github.com/sRavioli/wezterm/commit/31ee4821acb4785b831b460f7630f020e5222311)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.1.0](https://github.com/sRavioli/wezterm/compare/2.0.10..2.1.0) - 2023-11-17
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(colorschemes:kanagawa)** use correct bg and fg for tabs - ([9b62fc7](https://github.com/sRavioli/wezterm/commit/9b62fc7d4e28a21a79e02ea924c51b5b8f3b75d7)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-tab-title)** substitute `~` with home icon, remove useless stuff - ([7b29ee8](https://github.com/sRavioli/wezterm/commit/7b29ee8cfdc3deafb9e78567f7287ddf59bf79fa)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Documentation
|
|
||||||
|
|
||||||
- **(utils:functions)** format comment - ([199ce14](https://github.com/sRavioli/wezterm/commit/199ce14b4f3289c0d6976838998d2328916eda32)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:layout)** add supported attributes for `layout:push()` - ([794bceb](https://github.com/sRavioli/wezterm/commit/794bcebd17b4ecc9e923cbb07a73c17fc0185207)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** remove comments - ([851e82c](https://github.com/sRavioli/wezterm/commit/851e82c91bad20942b9b4a6c184e780a95cae4d6)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:appearance)** enable the new tab button, style it - ([fe41c3a](https://github.com/sRavioli/wezterm/commit/fe41c3a50f805fdb7e4a45e6c9752b5b7aa84d26)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:new-tab-button-click)** launch wezterm launcher on left click of new tab button - ([64832c7](https://github.com/sRavioli/wezterm/commit/64832c708cc598ce721b9afcc04774674e957acc)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:update-status)** dynamically resolve status-bar rendering - ([17e948a](https://github.com/sRavioli/wezterm/commit/17e948a24837e46b9f085962f87905248fd436b9)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.10](https://github.com/sRavioli/wezterm/compare/2.0.9..2.0.10) - 2023-11-14
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:window)** change window padding - ([2675a42](https://github.com/sRavioli/wezterm/commit/2675a4286aad5ce2b7bbc7e6e0d776489a671fb4)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:font)** use MonaspaceRadon for italic and MonaspaceKrypton for bold-italic - ([63b0b3f](https://github.com/sRavioli/wezterm/commit/63b0b3fbd6be8b55658bffcef24ba26733ac6d6b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.9](https://github.com/sRavioli/wezterm/compare/2.0.8..2.0.9) - 2023-11-11
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:appearance)** remove `notification_handling` - ([501762c](https://github.com/sRavioli/wezterm/commit/501762cda6c24d4e74fb795fb9ac1ab05d1448de)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:font)** use `font_with_fallback`, list all `harbuzz_features` - ([0549df4](https://github.com/sRavioli/wezterm/commit/0549df48e8e3e7bb359176c36c07148c12757240)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.8](https://github.com/sRavioli/wezterm/compare/2.0.7..2.0.8) - 2023-11-08
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:appearance)** suppress notification (only nightly builds) - ([9ed4b14](https://github.com/sRavioli/wezterm/commit/9ed4b14557e07f1864539f4622f5c64fa41f2e24)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.7](https://github.com/sRavioli/wezterm/compare/2.0.6..2.0.7) - 2023-11-04
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(utils:layout)** use table mapping to check for attributes - ([4ce974f](https://github.com/sRavioli/wezterm/commit/4ce974f32dd990f76ee58e7afa5a71c33a33c05c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.6](https://github.com/sRavioli/wezterm/compare/2.0.5..2.0.6) - 2023-11-02
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:appearance)** make acrylic background a bit darker - ([f17d0a4](https://github.com/sRavioli/wezterm/commit/f17d0a4e416d8a100a31c135c799a69699933cb1)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.5](https://github.com/sRavioli/wezterm/compare/2.0.4..2.0.5) - 2023-10-31
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(utils:functions)** get `USERPROFILE` variable instead of combining two - ([10145fb](https://github.com/sRavioli/wezterm/commit/10145fb30b8aa2c25a29e4bceadae4ebfef84931)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- make changing colorscheme easier - ([0531534](https://github.com/sRavioli/wezterm/commit/053153423b5c3741216d5d9eac466680a3377be5)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.4](https://github.com/sRavioli/wezterm/compare/2.0.3..2.0.4) - 2023-10-29
|
|
||||||
|
|
||||||
#### Hotfixes
|
|
||||||
|
|
||||||
- **(colorschemes:kanagawa)** add `tab_bar` colors, update config to use correct colors - ([e48910c](https://github.com/sRavioli/wezterm/commit/e48910cd07c750938be9c2435dfabeccc5276149)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.3](https://github.com/sRavioli/wezterm/compare/2.0.2..2.0.3) - 2023-10-29
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(colorschemes:kanagawa)** update kanagawa-wave, add dragon and lotus variants - ([63d7fd9](https://github.com/sRavioli/wezterm/commit/63d7fd938cd11bc99ff73f2783a81a4d6dc95965)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.2](https://github.com/sRavioli/wezterm/compare/2.0.1..2.0.2) - 2023-10-26
|
|
||||||
|
|
||||||
#### Hotfixes
|
|
||||||
|
|
||||||
- **(events:format-tab-title)** truncate more whe showing neovim directory - ([8d240c6](https://github.com/sRavioli/wezterm/commit/8d240c6a3aed29c4c2ad3732c81368002544646c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.1](https://github.com/sRavioli/wezterm/compare/2.0.0..2.0.1) - 2023-10-25
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(utils:layout)** insert text after attributes - ([bf1d779](https://github.com/sRavioli/wezterm/commit/bf1d779367850ab8c6eaecc2d2e178e380477677)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [2.0.0](https://github.com/sRavioli/wezterm/compare/1.0.2..2.0.0) - 2023-10-25
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:appearance)** reduce tab title max width - ([1a976b9](https://github.com/sRavioli/wezterm/commit/1a976b9486ad0236cf5476909fdc3a4586617a9a)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(event:format-tab-title)** improve trucation, improve unseen notification handling, use new `nf.Separators` class - ([6116cda](https://github.com/sRavioli/wezterm/commit/6116cdae841399c6243381ef600cee6cca3d7520)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** remove `Powerline` and `SemiCircle` class, add the `Separators` class - ([a1fe61b](https://github.com/sRavioli/wezterm/commit/a1fe61be209a259c1ff1cb977cf7cc7d7cd580d7)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** swap the `Circle` class with simpler `UnseenNotification` string - ([a2354bf](https://github.com/sRavioli/wezterm/commit/a2354bf1bc1103b67ad77387424af728fd762bf5)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** remove unused icons - ([4445508](https://github.com/sRavioli/wezterm/commit/4445508fd5dcb9b9fe378b63b9147275ce9be8de)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(events:update-status)** improve cell push cycle, when possible display the git project root - ([8678a79](https://github.com/sRavioli/wezterm/commit/8678a7986adceccd4a8a5a9b1e9d629a753cbd7c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:functions)** update `get_cwd_hostname()` to have the option to search for the git root - ([64a3913](https://github.com/sRavioli/wezterm/commit/64a39132750c104a246990eef637a8eed330927c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:functions)** implement `find_git_dir()` that given a directory finds the project git root - ([e83f41d](https://github.com/sRavioli/wezterm/commit/e83f41d1dab181b6e47f2f1c197194ee23764e91)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Style
|
|
||||||
|
|
||||||
- **(events:format-tab-title)** move includes inside the `wezterm.on()` call - ([a141adb](https://github.com/sRavioli/wezterm/commit/a141adb2a074697b65855e2535440c42fff443b3)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [1.0.2](https://github.com/sRavioli/wezterm/compare/1.0.1..1.0.2) - 2023-10-23
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:appearance)** increase tab max width - ([6d54ff9](https://github.com/sRavioli/wezterm/commit/6d54ff9a3ef61809203911d1663591a0ac979afe)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [1.0.1](https://github.com/sRavioli/wezterm/compare/1.0.0..1.0.1) - 2023-10-23
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(utils:functions)** remove `is_admin()` function - ([67cf00f](https://github.com/sRavioli/wezterm/commit/67cf00f295f8614d17a95550873bdd4c8bb77035)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(keys:bindings)** add command to fullscreen window - ([6c0de47](https://github.com/sRavioli/wezterm/commit/6c0de477f7feacd1253dd3e014a6ca1e5c26cbba)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Refactoring
|
|
||||||
|
|
||||||
- **(events:format-tab-title)** don't check for admin, just `:gsub()` the string to the icon - ([bf5740a](https://github.com/sRavioli/wezterm/commit/bf5740a79cebe2be80cf906e9a6fff22abf705cf)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [1.0.0](https://github.com/sRavioli/wezterm/compare/0.2.0..1.0.0) - 2023-10-23
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(utils:functions)** remove comments and unused function - ([fe3862f](https://github.com/sRavioli/wezterm/commit/fe3862fbc504d607f641bd5ff700ff180f0f1754)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(colorschemes:kanagawa)** change tag bar background color - ([e62f4fd](https://github.com/sRavioli/wezterm/commit/e62f4fdc1507a8767e6896fe5f05143dc1c62ef7)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:update-status)** create status bar layout - ([c37d4bc](https://github.com/sRavioli/wezterm/commit/c37d4bc1610b5a62f2dc11a2d00b4410e0338c8f)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:functions)** implement `mround`, `toint` and `get_cwd_hostname` functions - ([0e6d866](https://github.com/sRavioli/wezterm/commit/0e6d8665f0bdb13ab745bea3e10ac58e0b6982e5)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:layout)** crate layout class with utility `:push()` method - ([810ca3c](https://github.com/sRavioli/wezterm/commit/810ca3c54385d21acd2fdea736fcfff0a0ec7212)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** add powerline symbols - ([517dce3](https://github.com/sRavioli/wezterm/commit/517dce3e76498cfa90871f784c34f8d682f01e66)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Refactoring
|
|
||||||
|
|
||||||
- **(events:format-tab-title)** get cwd outside the call to `string.format` when formatting tab title - ([4aea4d8](https://github.com/sRavioli/wezterm/commit/4aea4d8f8d93e1ca25ef4594256cee6c6e169a48)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-tab-title)** set background once since it does not change - ([161eb99](https://github.com/sRavioli/wezterm/commit/161eb99dcba7d03d9fb9c71bfd74e36fd03e9bbe)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-tab-title)** make `layout` use the `Layout` class object - ([7f961b1](https://github.com/sRavioli/wezterm/commit/7f961b101ea8a01dd74c205aaa8e29794d681a80)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-window-title)** get cwd outside the `string.format` call when setting the title - ([c7513f4](https://github.com/sRavioli/wezterm/commit/c7513f4193efdc0a8ea83eb73c3ff01dd35b6bf9)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** add battery icons for charging and discharging with indexes - ([7aae5c2](https://github.com/sRavioli/wezterm/commit/7aae5c24acd231a84b2ae59d707b7486d94d81fe)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [0.2.0](https://github.com/sRavioli/wezterm/compare/0.1.0..0.2.0) - 2023-10-22
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(colorschemes:kanagawa)** remove comment - ([7145dff](https://github.com/sRavioli/wezterm/commit/7145dff78ab59b2cefa0dff8608a556eb7f6938d)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config/keys)** rename `wz` to `wez` - ([262a6b1](https://github.com/sRavioli/wezterm/commit/262a6b1759af6821bdf7a259aad51bb763b99006)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** reduce tab title max width - ([115e70b](https://github.com/sRavioli/wezterm/commit/115e70b48a766fa48cc7d067aafb69fb66280970)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** disable fancy tab bar, move it to bottom - ([2b0a891](https://github.com/sRavioli/wezterm/commit/2b0a89199d5c094a2cac1272bbe6fa31ca76fcb1)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** disable `NO_BITMAP` option that would prevent emojis from showing up - ([51d1e51](https://github.com/sRavioli/wezterm/commit/51d1e5119e2c056bd70389a9154f717be2abbd29)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:window)** do not use integrated buttons - ([6eaae36](https://github.com/sRavioli/wezterm/commit/6eaae36299d45ef56c365ba08c1624e823b4dbec)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:appearance)** add documentation, add tab bar settings - ([c164e03](https://github.com/sRavioli/wezterm/commit/c164e03b9cd1895ae742178cb5c856b1548d5baa)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** try to change underline pos based on display - ([4b59f06](https://github.com/sRavioli/wezterm/commit/4b59f06c56a0b6f56982dd31c7d45c7f62eb8f82)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-tab-title)** custom format tab title - ([5d2b1a6](https://github.com/sRavioli/wezterm/commit/5d2b1a61a54d47f51a765a7949afb7a2729a7864)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:format-window-title)** custom format window title - ([cb876ce](https://github.com/sRavioli/wezterm/commit/cb876ce8a40d509a9956154ffc0b1c8d7bf8f9fa)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(events:update-status)** (wip) create status bar - ([a529aec](https://github.com/sRavioli/wezterm/commit/a529aec29a6e45a1ab3aace695b4d432b103e9aa)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:functions)** add some utility functions - ([f34834f](https://github.com/sRavioli/wezterm/commit/f34834ffe394ae2e7b0895603015b9058c9d185e)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(utils:nerdfont-icons)** categorize `wezterm` nerdfont icons - ([59227c3](https://github.com/sRavioli/wezterm/commit/59227c325adf62c670787db267fb946198baee0b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** load events - ([f0ba708](https://github.com/sRavioli/wezterm/commit/f0ba708a42dede6d416eb81fc4a6572751b1d204)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Refactoring
|
|
||||||
|
|
||||||
- **(config:window)** move tab bar settings - ([bf839eb](https://github.com/sRavioli/wezterm/commit/bf839eb6508910299bb592a5d3b7f9c1ccfce140)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [0.1.0](https://github.com/sRavioli/wezterm/compare/0.0.2..0.1.0) - 2023-10-20
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:font)** move underline a bit down - ([7d79450](https://github.com/sRavioli/wezterm/commit/7d79450eb6b86e2907634f6e01dd7ab03c3b774b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** remove deprecated font setting - ([3f64fa6](https://github.com/sRavioli/wezterm/commit/3f64fa6f77cd72173e9f48888b85bc557d5d33ef)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** bug where the command palette would render letters wrongly - ([9e83117](https://github.com/sRavioli/wezterm/commit/9e83117269283afcd727c277711aae5440d59b60)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** disable backslash render variant - ([f375b51](https://github.com/sRavioli/wezterm/commit/f375b51e6be7e0cd2a55ac1a09bf0767080d91e1)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:appearance)** change styling for inactive panes - ([e9db4da](https://github.com/sRavioli/wezterm/commit/e9db4da757ce406bc0528864521899a31293073e)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:domains)** add wsl domain - ([69ec567](https://github.com/sRavioli/wezterm/commit/69ec5678134cc8aa429e19429506493472e54dc4)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(keys)** add various keybinds - ([a804ed2](https://github.com/sRavioli/wezterm/commit/a804ed24ae41cc00153d3c2358a1c7f760400d9e)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** load settings - ([d04a9c1](https://github.com/sRavioli/wezterm/commit/d04a9c1ba51c110e5787a502ee0d91d0481356df)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [0.0.2](https://github.com/sRavioli/wezterm/compare/0.0.1..0.0.2) - 2023-10-19
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(config:font)** increase underline heigth - ([db21668](https://github.com/sRavioli/wezterm/commit/db216684548c587cf561b37f761e4f88e383f30f)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(config:appearance)** add hyperlink rules, require colorschemes just once - ([35b12c5](https://github.com/sRavioli/wezterm/commit/35b12c57fdbdb859dd6269938eb79160b79d0ef1)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:general)** add some general configuration options - ([a2e42a1](https://github.com/sRavioli/wezterm/commit/a2e42a17ec4376466abd08baa9e902422c951737)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:window)** add window padding options - ([b6b495a](https://github.com/sRavioli/wezterm/commit/b6b495adc39cf23dbf4cbcbfe115bf5d435b14be)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** load configs - ([93473fd](https://github.com/sRavioli/wezterm/commit/93473fddc3cf854443259fe5256f5ed00178ba6a)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
## [0.0.1](https://github.com/sRavioli/wezterm/compare/1660c836279c83a7c0ec119e99d2960a9dbb70e7..0.0.1) - 2023-10-19
|
|
||||||
|
|
||||||
#### Bug Fixes
|
|
||||||
|
|
||||||
- **(colorschemes)** rename `colors` folder to `colorshemes` - ([09e7186](https://github.com/sRavioli/wezterm/commit/09e7186962a4d62f9df8cf845f8dbf85882db2e4)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(colorschemes:kanagawa)** reactivate kanagawa backround color - ([01a7372](https://github.com/sRavioli/wezterm/commit/01a737268dcaa2b13fae891cf4a1eed1a4c14538)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** disable vertical bar style variation - ([ebca8ab](https://github.com/sRavioli/wezterm/commit/ebca8ab58622c6e8886b265fc89b57cfce9d048c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** move font config to it's own file - ([7c59a93](https://github.com/sRavioli/wezterm/commit/7c59a93d0ffe8e7611a23788cb77612c45fbfe62)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:gpu)** move gpu config to it's own file - ([5fae2d7](https://github.com/sRavioli/wezterm/commit/5fae2d77b28294d10a7df0560a4c5e5ee5512863)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:init)** add correct `config` usage - ([de8d86d](https://github.com/sRavioli/wezterm/commit/de8d86d62afc5b66a11e56850b658ddfa8b593f2)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Features
|
|
||||||
|
|
||||||
- **(colorscheme)** add kanagawa colorscheme from [`kanagawa.nvim`](https://github.com/rebelot/kanagawa.nvim/blob/master/extras/wezterm.lua) - ([1590c13](https://github.com/sRavioli/wezterm/commit/1590c13a7bd962a7ff8cceeb72029263e0a52b44)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** add backgound color layer to improve acrylic effect - ([966d887](https://github.com/sRavioli/wezterm/commit/966d887fd3dc7770b2271ac1574b1a930a404c94)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** add black transparent background, choose cpu - ([c05c588](https://github.com/sRavioli/wezterm/commit/c05c5880b8338ab79b3601361b67cc057496b1a9)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** add appearance configurations - ([7f1c1ae](https://github.com/sRavioli/wezterm/commit/7f1c1aee3a0196cf396374d2706f0dc6e67127e4)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:bell)** add bell configuration - ([068684a](https://github.com/sRavioli/wezterm/commit/068684aa370424bc0ee6e1ed049ec55aee7a49d2)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:command-palette)** add config for command palette and charSelect - ([fb54f4c](https://github.com/sRavioli/wezterm/commit/fb54f4c72cae61bfd280bd24af8f04767aff6e68)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:cursors)** make cursor underline blink - ([3bd6964](https://github.com/sRavioli/wezterm/commit/3bd6964bfea74fe649b4798ea5a39715406bbf17)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:exit-behavior)** add exit behavior config - ([46b474b](https://github.com/sRavioli/wezterm/commit/46b474b8fecb6674f6eb68c5bc4d48e8b1468762)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:font)** add base config table for font, need to populate it - ([cb464cb](https://github.com/sRavioli/wezterm/commit/cb464cbcb05f6816c3269c5751128c430b830432)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:window)** add window appearance configuration - ([cedce79](https://github.com/sRavioli/wezterm/commit/cedce79a0350178dc238c02df453f9fa6b7f9c08)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** load additional modules - ([3279fd1](https://github.com/sRavioli/wezterm/commit/3279fd102f301564855ed504a59deb4629560045)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** unload old config modules - ([5c09600](https://github.com/sRavioli/wezterm/commit/5c0960065475f6cf7c4ba7a1a4ddf9342561fdb6)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** load new config modules - ([b987dd2](https://github.com/sRavioli/wezterm/commit/b987dd2648bc7af3f82fbb4890b3cdb8d315ff89)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- load wezterm config - ([440ee43](https://github.com/sRavioli/wezterm/commit/440ee43d7fdf004e3e4e55169a57c07a49236774)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- add functions to load config - ([198604a](https://github.com/sRavioli/wezterm/commit/198604a4f53b5d7fe97b77ae50921c300ce86316)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Miscellaneous Chores
|
|
||||||
|
|
||||||
- **(config:bell)** remove useless comment - ([449ab6a](https://github.com/sRavioli/wezterm/commit/449ab6ad9a643b0facef804bd840d212e622ff76)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(misc)** add release action, add cog and yamlfix config - ([2ad8489](https://github.com/sRavioli/wezterm/commit/2ad8489128c3909f5341a35aad9ffdb97a4dfd20)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(wezterm)** cleanup `wezterm.lua`, load options - ([17f11df](https://github.com/sRavioli/wezterm/commit/17f11dfd2f2f446e13284643d48691b3975984f1)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
#### Refactoring
|
|
||||||
|
|
||||||
- **(config:Config)** rewrite `Config` methods, document them, use `wezterm.config_builder()` - ([7c02733](https://github.com/sRavioli/wezterm/commit/7c027332a9925bdd26cb189cb5b6004fcdd2517b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** move command palette and char select config to appearance - ([0764700](https://github.com/sRavioli/wezterm/commit/0764700bf216a8864b33f1152fd9c79bada6b33b)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:appearance)** move various configs to other files - ([7f9c256](https://github.com/sRavioli/wezterm/commit/7f9c2561a5ba99af5e379461d6aca4bd69ac1a6c)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:command-palette)** move command palette and char select config to appearance file - ([e606d50](https://github.com/sRavioli/wezterm/commit/e606d501afaccd46a289af478a49d87f0d5e9d30)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:init)** make usage example use markdown syntax - ([3329753](https://github.com/sRavioli/wezterm/commit/332975326fea44a06b442522cd164b6de1aeeac4)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
- **(config:window)** remove useless comments - ([eea2e20](https://github.com/sRavioli/wezterm/commit/eea2e20f189854d2644fdcee79267cf76127c37e)) - [@sRavioli](https://github.com/sRavioli)
|
|
||||||
|
|
||||||
- - -
|
|
||||||
|
|
||||||
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ General ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
|
|
||||||
|
|
||||||
# Type: `boolean: false` (optional)
|
|
||||||
# Whether to only consider commits since the latest SemVer tag.
|
|
||||||
from_latest_tag = true
|
|
||||||
|
|
||||||
# Type: `string` (optional)
|
|
||||||
# Set a tag prefix value for cocogitto. For instance if you have a `v` as a tag
|
|
||||||
# prefix, cocogitto will generate version starting with `v` and commands like
|
|
||||||
# `cog changelog` will pick only those versions.
|
|
||||||
tag_prefix = ""
|
|
||||||
|
|
||||||
# Type: `Array<String>` (optional)
|
|
||||||
# A list of glob patterns to allow bumping only on matching branches.
|
|
||||||
branch_whitelist = ["main"]
|
|
||||||
|
|
||||||
# Type: `boolean: false` (optional)
|
|
||||||
# Whether to ignore or to lint merge commits.
|
|
||||||
ignore_merge_commits = true
|
|
||||||
|
|
||||||
|
|
||||||
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Bump Config ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
|
|
||||||
|
|
||||||
# Type: `Array<String>` (optional)
|
|
||||||
# An array of command to execute before a version bump.
|
|
||||||
pre_bump_hooks = []
|
|
||||||
|
|
||||||
# Type: `Array<String>` (optional)
|
|
||||||
# An array of command to execute after a version bump.
|
|
||||||
post_bump_hooks = ["git push origin {{version}}", "git push"]
|
|
||||||
|
|
||||||
# Type: `String` (optional)
|
|
||||||
# A "skip-ci" string to add to the commits when using the bump or commit commands.
|
|
||||||
# Default value is `[skip ci]`.
|
|
||||||
# skip_ci = "[skip ci]"
|
|
||||||
|
|
||||||
# Type: `boolean: false` (optional)
|
|
||||||
# Allows to perform bump even if there are untracked or uncommited changes.
|
|
||||||
# skip_untracked = false
|
|
||||||
|
|
||||||
# Type: `boolean: false` (optional)
|
|
||||||
# Disable changelog generation when bumping.
|
|
||||||
# disable_changelog = false
|
|
||||||
|
|
||||||
# Type: `boolean: false` (optional)
|
|
||||||
# Cocogitto will not create a bump commit and will instead tag the latest commit.
|
|
||||||
# disable_bump_commit = false
|
|
||||||
|
|
||||||
# Type: `Hashmap<String, BumpProfile>` (optional)
|
|
||||||
# Add additional pre-bump and post-bump hooks profile. a profile can be used with
|
|
||||||
# the `cog bump --hook-profile <profile_name>` flag.
|
|
||||||
[bump_profiles]
|
|
||||||
|
|
||||||
|
|
||||||
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Commit Types ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
|
|
||||||
# Type: `Hashmap<String, CommitType>` (optional)
|
|
||||||
# Extend the allowed commit types, creating a new cog commit command, and allowing
|
|
||||||
# generation of changelog entries for the given type. Can also be used to override
|
|
||||||
# the default commit types.
|
|
||||||
#
|
|
||||||
# FIELDS:
|
|
||||||
# - `changelog_title` [string]: change changelog title for the given commit type.
|
|
||||||
# - `omit_from_changelog` [boolean: false] (optional): Do not generate changelog
|
|
||||||
# entries for the given commit type.
|
|
||||||
# - `bump_patch` [boolean: false] (optional): Commits of this type will bump the
|
|
||||||
# patch version of a tag.
|
|
||||||
# - `bump_minor` [boolean: false] (optional): Commits of this type will bump the
|
|
||||||
# minor version of a tag.
|
|
||||||
[commit_types]
|
|
||||||
chore = { changelog_title = "Misc", omit_from_changelog = true }
|
|
||||||
hotfix = { changelog_title = "Hotfixes" }
|
|
||||||
release = { changelog_title = "Releases" }
|
|
||||||
|
|
||||||
|
|
||||||
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Changelog ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
|
|
||||||
[changelog]
|
|
||||||
# Type: `string: "CHANGELOG.md"` (optional)
|
|
||||||
# Path the repository markdown changelog.
|
|
||||||
path = "CHANGELOG.md"
|
|
||||||
|
|
||||||
# Type: `string: "default"` (optional)
|
|
||||||
# Name of the builtin template to use for changelog generation or path to a custom
|
|
||||||
# template. Note that remote, repository and owner are mandatory if the `"remote"`
|
|
||||||
# built-in template us used or if your custom template make use of those variables.
|
|
||||||
#
|
|
||||||
# Built-in templates : `default`, `remote`, `full_hash`
|
|
||||||
template = "remote"
|
|
||||||
|
|
||||||
# Type: `string` (optional)
|
|
||||||
# Domain name of the git platform hosting the repository, used for Markdown link
|
|
||||||
# generation in changelogs. when provided repository and owner are also required.
|
|
||||||
remote = "github.com"
|
|
||||||
|
|
||||||
# Type: `string` (optional)
|
|
||||||
# Name of the repository on the remote git platform.
|
|
||||||
repository = "wezterm"
|
|
||||||
|
|
||||||
# Type: `string` (optional)
|
|
||||||
# Owner of the repository on the remote git platform.
|
|
||||||
owner = "sravioli"
|
|
||||||
|
|
||||||
# Type: `Array<Author>` (optional)
|
|
||||||
# A list of commit authors with their git signature and git platform username
|
|
||||||
# to generate Markdown links in changelogs.
|
|
||||||
authors = [{ signature = "Simone Fidanza", username = "sravioli" }]
|
|
||||||
|
|
||||||
|
|
||||||
[packages]
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
local Utils = require "utils"
|
|
||||||
local color = Utils.fn.color
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
local G = require("wezterm").GLOBAL
|
|
||||||
|
|
||||||
local Config = {}
|
|
||||||
|
|
||||||
Config.color_schemes = color.get_schemes()
|
|
||||||
Config.color_scheme = color.get_scheme()
|
|
||||||
|
|
||||||
local theme = Config.color_schemes[Config.color_scheme]
|
|
||||||
|
|
||||||
Config.background = {
|
|
||||||
{
|
|
||||||
source = { Color = theme.background },
|
|
||||||
width = "100%",
|
|
||||||
height = "100%",
|
|
||||||
opacity = G.opacity or 1,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.bold_brightens_ansi_colors = "BrightAndBold"
|
|
||||||
|
|
||||||
---char select and command palette
|
|
||||||
Config.char_select_bg_color = theme.brights[6]
|
|
||||||
Config.char_select_fg_color = theme.background
|
|
||||||
Config.char_select_font_size = 12
|
|
||||||
|
|
||||||
Config.command_palette_bg_color = theme.brights[6]
|
|
||||||
Config.command_palette_fg_color = theme.background
|
|
||||||
Config.command_palette_font_size = 14
|
|
||||||
Config.command_palette_rows = 20
|
|
||||||
|
|
||||||
---cursor
|
|
||||||
Config.cursor_blink_ease_in = "EaseIn"
|
|
||||||
Config.cursor_blink_ease_out = "EaseOut"
|
|
||||||
Config.cursor_blink_rate = 500
|
|
||||||
Config.default_cursor_style = "BlinkingUnderline"
|
|
||||||
Config.cursor_thickness = 1
|
|
||||||
Config.force_reverse_video_cursor = true
|
|
||||||
|
|
||||||
Config.enable_scroll_bar = true
|
|
||||||
|
|
||||||
Config.hide_mouse_cursor_when_typing = true
|
|
||||||
|
|
||||||
---text blink
|
|
||||||
Config.text_blink_ease_in = "EaseIn"
|
|
||||||
Config.text_blink_ease_out = "EaseOut"
|
|
||||||
Config.text_blink_rapid_ease_in = "Linear"
|
|
||||||
Config.text_blink_rapid_ease_out = "Linear"
|
|
||||||
Config.text_blink_rate = 500
|
|
||||||
Config.text_blink_rate_rapid = 250
|
|
||||||
|
|
||||||
---visual bell
|
|
||||||
Config.audible_bell = "SystemBeep"
|
|
||||||
Config.visual_bell = {
|
|
||||||
fade_in_function = "EaseOut",
|
|
||||||
fade_in_duration_ms = 200,
|
|
||||||
fade_out_function = "EaseIn",
|
|
||||||
fade_out_duration_ms = 200,
|
|
||||||
}
|
|
||||||
|
|
||||||
---window appearance
|
|
||||||
Config.window_padding = { left = 2, right = 2, top = 2, bottom = 1 }
|
|
||||||
Config.integrated_title_button_alignment = "Right"
|
|
||||||
Config.integrated_title_button_style = "Windows"
|
|
||||||
Config.integrated_title_buttons = { "Hide", "Maximize", "Close" }
|
|
||||||
|
|
||||||
---exit behavior
|
|
||||||
Config.clean_exit_codes = { 130 }
|
|
||||||
Config.exit_behavior = "CloseOnCleanExit"
|
|
||||||
Config.exit_behavior_messaging = "Verbose"
|
|
||||||
Config.skip_close_confirmation_for_processes_named = {
|
|
||||||
"bash",
|
|
||||||
"sh",
|
|
||||||
"zsh",
|
|
||||||
"fish",
|
|
||||||
"tmux",
|
|
||||||
"nu",
|
|
||||||
"cmd.exe",
|
|
||||||
"pwsh.exe",
|
|
||||||
"powershell.exe",
|
|
||||||
}
|
|
||||||
Config.window_close_confirmation = "AlwaysPrompt"
|
|
||||||
|
|
||||||
color.set_tab_button(Config, theme)
|
|
||||||
|
|
||||||
return Config
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
---@diagnostic disable: undefined-field
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
local fs = require("utils.fn").fs
|
|
||||||
|
|
||||||
local Config = {}
|
|
||||||
|
|
||||||
Config.adjust_window_size_when_changing_font_size = false
|
|
||||||
Config.allow_square_glyphs_to_overflow_width = "WhenFollowedBySpace"
|
|
||||||
Config.anti_alias_custom_block_glyphs = true
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "FiraCode Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
-- "cv01", ---styles: a
|
|
||||||
-- "cv02", ---styles: g
|
|
||||||
"cv06", ---styles: i (03..06)
|
|
||||||
-- "cv09", ---styles: l (07..10)
|
|
||||||
"cv12", ---styles: 0 (11..13, zero)
|
|
||||||
"cv14", ---styles: 3
|
|
||||||
"cv16", ---styles: * (15..16)
|
|
||||||
-- "cv17", ---styles: ~
|
|
||||||
-- "cv18", ---styles: %
|
|
||||||
-- "cv19", ---styles: <= (19..20)
|
|
||||||
-- "cv21", ---styles: =< (21..22)
|
|
||||||
-- "cv23", ---styles: >=
|
|
||||||
-- "cv24", ---styles: /=
|
|
||||||
"cv25", ---styles: .-
|
|
||||||
"cv26", ---styles: :-
|
|
||||||
-- "cv27", ---styles: []
|
|
||||||
"cv28", ---styles: {. .}
|
|
||||||
"cv29", ---styles: { }
|
|
||||||
-- "cv30", ---styles: |
|
|
||||||
"cv31", ---styles: ()
|
|
||||||
"cv32", ---styles: .=
|
|
||||||
-- "ss01", ---styles: r
|
|
||||||
-- "ss02", ---styles: <= >=
|
|
||||||
"ss03", ---styles: &
|
|
||||||
"ss04", ---styles: $
|
|
||||||
"ss05", ---styles: @
|
|
||||||
-- "ss06", ---styles: \\
|
|
||||||
"ss07", ---styles: =~ !~
|
|
||||||
-- "ss08", ---styles: == === != !==
|
|
||||||
"ss09", ---styles: >>= <<= ||= |=
|
|
||||||
-- "ss10", ---styles: Fl Tl fi fj fl ft
|
|
||||||
-- "onum", ---styles: 1234567890
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
if fs.platform().is_win then
|
|
||||||
Config.font_size = 9.5
|
|
||||||
else
|
|
||||||
Config.font_size = 10.5
|
|
||||||
end
|
|
||||||
|
|
||||||
Config.underline_position = -2.5
|
|
||||||
Config.underline_thickness = "2px"
|
|
||||||
Config.warn_about_missing_glyphs = false
|
|
||||||
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon Var",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Normal",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return Config
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
local Icons = require "utils.class.icon"
|
|
||||||
local fs = require("utils.fn").fs
|
|
||||||
|
|
||||||
local Config = {}
|
|
||||||
|
|
||||||
if fs.platform().is_win then
|
|
||||||
Config.default_prog =
|
|
||||||
{ "pwsh", "-NoLogo", "-ExecutionPolicy", "RemoteSigned", "-NoProfileLoadTime" }
|
|
||||||
|
|
||||||
Config.launch_menu = {
|
|
||||||
{
|
|
||||||
label = Icons.Progs["pwsh.exe"] .. " PowerShell V7",
|
|
||||||
args = {
|
|
||||||
"pwsh",
|
|
||||||
"-NoLogo",
|
|
||||||
"-ExecutionPolicy",
|
|
||||||
"RemoteSigned",
|
|
||||||
"-NoProfileLoadTime",
|
|
||||||
},
|
|
||||||
cwd = "~",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label = Icons.Progs["pwsh.exe"] .. " PowerShell V5",
|
|
||||||
args = { "powershell" },
|
|
||||||
cwd = "~",
|
|
||||||
},
|
|
||||||
{ label = "Command Prompt", args = { "cmd.exe" }, cwd = "~" },
|
|
||||||
{ label = Icons.Progs["git"] .. " Git bash", args = { "sh", "-l" }, cwd = "~" },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- ref: https://wezfurlong.org/wezterm/config/lua/WslDomain.html
|
|
||||||
Config.wsl_domains = {
|
|
||||||
{
|
|
||||||
name = "WSL:Ubuntu",
|
|
||||||
distribution = "Ubuntu",
|
|
||||||
username = "sravioli",
|
|
||||||
default_cwd = "~",
|
|
||||||
default_prog = { "bash", "-i", "-l" },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "WSL:Alpine",
|
|
||||||
distribution = "Alpine",
|
|
||||||
username = "sravioli",
|
|
||||||
default_cwd = "/home/sravioli",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
Config.default_cwd = fs.home()
|
|
||||||
|
|
||||||
-- ref: https://wezfurlong.org/wezterm/config/lua/SshDomain.html
|
|
||||||
Config.ssh_domains = {}
|
|
||||||
|
|
||||||
-- ref: https://wezfurlong.org/wezterm/multiplexing.html#unix-domains
|
|
||||||
Config.unix_domains = {}
|
|
||||||
|
|
||||||
return Config
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
local Config = {}
|
|
||||||
|
|
||||||
Config.front_end = "WebGpu"
|
|
||||||
Config.webgpu_force_fallback_adapter = false
|
|
||||||
|
|
||||||
---switch to low power mode when battery is low
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
local battery = require("wezterm").battery_info()[1]
|
|
||||||
Config.webgpu_power_preference = (battery and battery.state_of_charge < 0.35)
|
|
||||||
and "LowPower"
|
|
||||||
or "HighPerformance"
|
|
||||||
|
|
||||||
Config.webgpu_preferred_adapter = require("utils.gpu"):pick_best()
|
|
||||||
|
|
||||||
return Config
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
return require("utils.fn").tbl.merge(
|
|
||||||
(require "config.appearance"),
|
|
||||||
(require "config.font"),
|
|
||||||
(require "config.tab-bar"),
|
|
||||||
(require "config.general"),
|
|
||||||
(require "config.gpu")
|
|
||||||
)
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
local Config = {}
|
|
||||||
|
|
||||||
Config.enable_tab_bar = true
|
|
||||||
Config.hide_tab_bar_if_only_one_tab = false
|
|
||||||
Config.show_new_tab_button_in_tab_bar = true
|
|
||||||
Config.show_tab_index_in_tab_bar = false
|
|
||||||
Config.show_tabs_in_tab_bar = true
|
|
||||||
Config.switch_to_last_active_tab_when_closing_tab = false
|
|
||||||
Config.tab_and_split_indices_are_zero_based = false
|
|
||||||
Config.tab_bar_at_bottom = true
|
|
||||||
Config.tab_max_width = 25
|
|
||||||
Config.use_fancy_tab_bar = false
|
|
||||||
|
|
||||||
return Config
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
---@module "events.augment-command-palette"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@diagnostic disable: undefined-field
|
|
||||||
local wt = require "wezterm"
|
|
||||||
local act = wt.action
|
|
||||||
|
|
||||||
wt.on("augment-command-palette", function(_, _)
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
brief = "Rename tab",
|
|
||||||
icon = "md_rename_box",
|
|
||||||
|
|
||||||
action = act.PromptInputLine {
|
|
||||||
description = "Enter new name for tab",
|
|
||||||
action = wt.action_callback(function(inner_window, _, line)
|
|
||||||
if line then
|
|
||||||
inner_window:active_tab():set_title(line)
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brief = "Colorscheme picker",
|
|
||||||
icon = "md_palette",
|
|
||||||
action = require("picker.colorscheme"):pick(),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brief = "Font picker",
|
|
||||||
icon = "md_format_font",
|
|
||||||
action = require("picker.font"):pick(),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brief = "Font size picker",
|
|
||||||
icon = "md_format_font_size_decrease",
|
|
||||||
action = require("picker.font-size"):pick(),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brief = "Font leading picker",
|
|
||||||
icon = "fa_text_height",
|
|
||||||
action = require("picker.font-leading"):pick(),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end)
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
---@module "events.format-tab-title"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@diagnostic disable: undefined-field
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
local Utils = require "utils"
|
|
||||||
local str = Utils.fn.str
|
|
||||||
local Icon = Utils.class.icon
|
|
||||||
local tabicons = Icon.Sep.tb
|
|
||||||
|
|
||||||
wt.on("format-tab-title", function(tab, _, _, config, hover, max_width)
|
|
||||||
if config.use_fancy_tab_bar or not config.enable_tab_bar then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local theme = config.color_schemes[config.color_scheme]
|
|
||||||
local bg = theme.tab_bar.background
|
|
||||||
local fg
|
|
||||||
|
|
||||||
local Title = Utils.class.layout:new "TabTitle"
|
|
||||||
|
|
||||||
local tab_idx = tab.tab_index
|
|
||||||
local attributes = {}
|
|
||||||
|
|
||||||
---set colors based on states
|
|
||||||
if tab.is_active then
|
|
||||||
fg = theme.ansi[5]
|
|
||||||
attributes = { "Bold" }
|
|
||||||
elseif hover then
|
|
||||||
fg = theme.tab_bar.inactive_tab_hover.bg_color
|
|
||||||
else
|
|
||||||
fg = theme.brights[1]
|
|
||||||
end
|
|
||||||
|
|
||||||
---Check if any pane has unseen output
|
|
||||||
local unseen_output = false
|
|
||||||
for _, p in ipairs(tab.panes) do
|
|
||||||
if p.has_unseen_output then
|
|
||||||
unseen_output = true
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local pane = tab.active_pane
|
|
||||||
local tab_title = (tab.tab_title and #tab.tab_title > 0) and tab.tab_title or pane.title
|
|
||||||
local title = str.format_tab_title(pane, tab_title, config, max_width)
|
|
||||||
|
|
||||||
---add the either the leftmost element or the normal left separator. This is done to
|
|
||||||
---esure a bit of space from the left margin.
|
|
||||||
Title:append(bg, fg, tab_idx == 0 and tabicons.leftmost or tabicons.left, attributes)
|
|
||||||
|
|
||||||
---add the tab number. can be substituted by the `has_unseen_output` notification
|
|
||||||
Title:append(
|
|
||||||
fg,
|
|
||||||
bg,
|
|
||||||
(unseen_output and Icon.Notification or Icon.Nums[tab_idx + 1] or "") .. " ",
|
|
||||||
attributes
|
|
||||||
)
|
|
||||||
|
|
||||||
---the formatted tab title
|
|
||||||
Title:append(fg, bg, title, attributes)
|
|
||||||
|
|
||||||
---the right tab bar separator
|
|
||||||
Title:append(bg, fg, Icon.Sep.block .. tabicons.right, attributes)
|
|
||||||
|
|
||||||
return Title
|
|
||||||
end)
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
---@module "events.augment-window-title"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
local fs = require("utils.fn").fs
|
|
||||||
|
|
||||||
wt.on("format-window-title", function(tab, pane, tabs, _, _)
|
|
||||||
local zoomed = ""
|
|
||||||
if tab.active_pane.is_zoomed then
|
|
||||||
zoomed = "[Z] "
|
|
||||||
end
|
|
||||||
|
|
||||||
local index = ""
|
|
||||||
if #tabs > 1 then
|
|
||||||
index = ("[%d/%d] "):format(tab.tab_index + 1, #tabs)
|
|
||||||
end
|
|
||||||
|
|
||||||
---tab title
|
|
||||||
local title = fs.basename(pane.title):gsub("%.exe%s?$", "")
|
|
||||||
|
|
||||||
local proc = pane.foreground_process_name
|
|
||||||
if proc:find "nvim" then
|
|
||||||
proc = proc:sub(proc:find "nvim")
|
|
||||||
end
|
|
||||||
if proc == "nvim" or title == "cmd" then
|
|
||||||
local cwd, _ = fs.basename(pane.current_working_dir.file_path)
|
|
||||||
title = ("Neovim (dir: %s)"):format(cwd)
|
|
||||||
end
|
|
||||||
|
|
||||||
return zoomed .. index .. title
|
|
||||||
end)
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
---@module "events.new-tab-button-click"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
wt.on("new-tab-button-click", function(window, pane, button, default_action)
|
|
||||||
if default_action and button == "Left" then
|
|
||||||
window:perform_action(default_action, pane)
|
|
||||||
end
|
|
||||||
|
|
||||||
if default_action and button == "Right" then
|
|
||||||
window:perform_action(
|
|
||||||
wt.action.ShowLauncherArgs {
|
|
||||||
title = " Select/Search:",
|
|
||||||
flags = "FUZZY|LAUNCH_MENU_ITEMS|DOMAINS",
|
|
||||||
},
|
|
||||||
pane
|
|
||||||
)
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end)
|
|
||||||
@@ -1,334 +0,0 @@
|
|||||||
---@diagnostic disable: undefined-field
|
|
||||||
---
|
|
||||||
---@module "events.update-status"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
-- selene: allow(incorrect_standard_library_use)
|
|
||||||
local tunpack, tinsert = table.unpack or unpack, table.insert
|
|
||||||
local tostring, tonumber = tostring, tonumber
|
|
||||||
local floor = math.floor
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
local timefmt, color_parse = wt.strftime, wt.color.parse
|
|
||||||
|
|
||||||
local class, fn = require "utils.class", require "utils.fn"
|
|
||||||
local icon, sep, sb = class.icon, class.icon.Sep, class.layout:new "StatusBar"
|
|
||||||
local fs, mt, str, tbl = fn.fs, fn.mt, fn.str, fn.tbl
|
|
||||||
|
|
||||||
---@class UpdateStatusEvent
|
|
||||||
local e = {}
|
|
||||||
|
|
||||||
-- {{{1 e.__get_modes()
|
|
||||||
|
|
||||||
---Retrieves a table of available modes, each represented by a set of properties.
|
|
||||||
---Each key corresponds to a mode, and the associated value is a table containing
|
|
||||||
---information about the mode's icon, text, background color, and padding.
|
|
||||||
---
|
|
||||||
---@return UpdateStatusEvent.Modes modes mode information.
|
|
||||||
e.__get_modes = function()
|
|
||||||
---@class UpdateStatusEvent.Modes
|
|
||||||
---
|
|
||||||
---Each mode has the following properties:
|
|
||||||
---* `i` (string): The icon for the mode (eg ).
|
|
||||||
---* `txt` (string): The label text for the mode (eg "SEARCH").
|
|
||||||
---* `bg` (string): The background color for the mode.
|
|
||||||
---* `pad` (number): The padding value for the mode.
|
|
||||||
---
|
|
||||||
---@field search_mode table "SEARCH" mode.
|
|
||||||
---@field window_mode table "WINDOW" mode.
|
|
||||||
---@field copy_mode table "COPY" mode.
|
|
||||||
---@field font_mode table "FONT" mode.
|
|
||||||
---@field help_mode table "NORMAL" mode.
|
|
||||||
---@field pick_mode table "PICK" mode.
|
|
||||||
return {
|
|
||||||
search_mode = { i = "", txt = "SEARCH", bg = e.theme.brights[4], pad = 5 },
|
|
||||||
window_mode = { i = "", txt = "WINDOW", bg = e.theme.ansi[6], pad = 4 },
|
|
||||||
copy_mode = { i = "", txt = "COPY", bg = e.theme.brights[3], pad = 5 },
|
|
||||||
font_mode = { i = "", txt = "FONT", bg = e.theme.ansi[7], pad = 4 },
|
|
||||||
help_mode = { i = "", txt = "NORMAL", bg = e.theme.ansi[5], pad = 5 },
|
|
||||||
pick_mode = { i = "", txt = "PICK", bg = e.theme.ansi[2], pad = 5 },
|
|
||||||
}
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.__get_width(Config, pane, window)
|
|
||||||
|
|
||||||
---Retrieves the width configuration for a given pane and window.
|
|
||||||
---The function calculates the usable width based on the pane's dimensions and the
|
|
||||||
---window's width, and returns a table with various width-related properties for use in
|
|
||||||
---the interface.
|
|
||||||
---
|
|
||||||
---@param Config table UI settings.
|
|
||||||
---@param pane wt.Pane Wezterm's pane object
|
|
||||||
---@param window wt.Window Wezterm's window object
|
|
||||||
---@return UpdateStatusEvent.Width width width-related properties.
|
|
||||||
e.__get_width = function(Config, pane, window)
|
|
||||||
local pane_dimensions = pane:get_dimensions()
|
|
||||||
local win_width = window:get_dimensions().pixel_width
|
|
||||||
|
|
||||||
---@class UpdateStatusEvent.Width
|
|
||||||
---@field ws number workspace (0).
|
|
||||||
---@field mode number mode section (0).
|
|
||||||
---@field tabs number tab section (5).
|
|
||||||
---@field prompt number prompt section (0).
|
|
||||||
---@field usable number usable width
|
|
||||||
---@field new_button number new tab button, (8 if present, otherwise 0)
|
|
||||||
return {
|
|
||||||
ws = 0,
|
|
||||||
mode = 0,
|
|
||||||
tabs = 5,
|
|
||||||
prompt = 0,
|
|
||||||
usable = math.floor((win_width * pane_dimensions.cols) / pane_dimensions.pixel_width),
|
|
||||||
new_button = Config.show_new_tab_button_in_tab_bar and 8 or 0,
|
|
||||||
}
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.__compute_combination_width(combination, sep_width, pad_width)
|
|
||||||
|
|
||||||
---Computes the total width of a combination of elements, accounting for separators and
|
|
||||||
---padding. This function iterates over the elements in the given `combination`,
|
|
||||||
---calculates the width of each element, and adds the width of separators and padding
|
|
||||||
---between the elements.
|
|
||||||
---
|
|
||||||
---@param combination table elements whose widths are to be calculated.
|
|
||||||
---@param sep_width number width of the separator to be added between each element.
|
|
||||||
---@param pad_width number width of the padding to be added around each element.
|
|
||||||
---@return number width computed width of the combination, including separators and padding.
|
|
||||||
e.__compute_combination_width = function(combination, sep_width, pad_width)
|
|
||||||
local total_width = 0
|
|
||||||
for i = 1, #combination do
|
|
||||||
total_width = total_width + str.width(combination[i]) + sep_width + pad_width
|
|
||||||
end
|
|
||||||
return total_width
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.__find_best_fit(combinations, max_width, sep_width, pad_width)
|
|
||||||
|
|
||||||
---Finds the combination that best fits within the specified maximum width.
|
|
||||||
---The function iterates over a list of combinations, calculates their total width, and
|
|
||||||
---selects the combination whose width is less than or equal to the specified `max_width`
|
|
||||||
---but as large as possible.
|
|
||||||
---
|
|
||||||
---@param combinations table multiple combinations of elements to evaluate.
|
|
||||||
---@param max_width number maximum allowable width for the combination.
|
|
||||||
---@param sep_width number width of the separator between elements in the combination.
|
|
||||||
---@param pad_width number padding width around each element in the combination.
|
|
||||||
---@return table best_fit best fitS within `max_width`, or am empty combination if none fit.
|
|
||||||
e.__find_best_fit = function(combinations, max_width, sep_width, pad_width)
|
|
||||||
local best_fit = nil
|
|
||||||
local best_fit_width = 0
|
|
||||||
|
|
||||||
for i = 1, #combinations do
|
|
||||||
local total_width =
|
|
||||||
e.__compute_combination_width(combinations[i], sep_width, pad_width)
|
|
||||||
if total_width <= max_width and total_width > best_fit_width then
|
|
||||||
best_fit = combinations[i]
|
|
||||||
best_fit_width = total_width
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return best_fit or { "", "", "", "" }
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.set_left_status(window)
|
|
||||||
|
|
||||||
---Updates and sets the left status bar for the given window.
|
|
||||||
---The function constructs the left status bar by checking the current mode and workspace,
|
|
||||||
---appending relevant information such as mode icon, text, workspace name, and width,
|
|
||||||
---then formats and sets it to the window's left status bar.
|
|
||||||
---
|
|
||||||
---@param window wt.Window Wezterm's window object
|
|
||||||
e.set_left_status = function(window)
|
|
||||||
local lsb = sb:new "LeftStatusBar"
|
|
||||||
|
|
||||||
e.mode = window:active_key_table()
|
|
||||||
if e.mode and e.modes[e.mode] then
|
|
||||||
local mode_fg = e.modes[e.mode].bg
|
|
||||||
local txt, ico = e.modes[e.mode].txt or "", e.modes[e.mode].i or ""
|
|
||||||
local indicator = str.pad(str.padr(ico) .. txt, 1)
|
|
||||||
|
|
||||||
lsb:append(mode_fg, e.bg, indicator, { "Bold" })
|
|
||||||
|
|
||||||
e.width.mode = str.width(indicator)
|
|
||||||
end
|
|
||||||
|
|
||||||
local ws = window:active_workspace()
|
|
||||||
if ws ~= "" and not e.mode then
|
|
||||||
local ws_bg = e.theme.brights[6]
|
|
||||||
ws = str.pad(str.padr(icon.Workspace) .. ws)
|
|
||||||
e.width.ws = str.width(ws) + 4
|
|
||||||
|
|
||||||
if e.width.usable >= e.width.ws then
|
|
||||||
lsb:append(ws_bg, e.bg, ws, { "Bold" })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
window:set_left_status(lsb:format())
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.set_modal_prompts(window)
|
|
||||||
|
|
||||||
---Constructs and sets the right status bar to display modal prompts for the given window.
|
|
||||||
---The function creates a series of prompts based on the current mode's key bindings
|
|
||||||
---and descriptions, adjusting the layout according to the available width. The status bar
|
|
||||||
---is then updated in the window.
|
|
||||||
---
|
|
||||||
---@param window wt.Window Wezterm's window object
|
|
||||||
e.set_modal_prompts = function(window)
|
|
||||||
local rsb = sb:new "RightStatusBar"
|
|
||||||
local prompt_bg, map_fg, txt_fg =
|
|
||||||
e.theme.tab_bar.background, e.modes[e.mode].bg, e.theme.foreground
|
|
||||||
local msep = sep.sb.modal
|
|
||||||
|
|
||||||
local key_tbl = require("mappings.modes")[2][e.mode]
|
|
||||||
for idx = 1, #key_tbl do
|
|
||||||
local map, _, desc = tunpack(key_tbl[idx])
|
|
||||||
|
|
||||||
if map:find "%b<>" then
|
|
||||||
map = map:gsub("(%b<>)", function(s)
|
|
||||||
return s:sub(2, -2)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
e.width.prompt = str.width(map .. str.pad(desc)) + e.modes[e.mode].pad
|
|
||||||
e.width.usable = e.width.usable - e.width.prompt
|
|
||||||
if e.width.usable > 0 and desc ~= "" then
|
|
||||||
rsb:append(prompt_bg, txt_fg, "<", { "Bold" })
|
|
||||||
rsb:append(prompt_bg, map_fg, map)
|
|
||||||
rsb:append(prompt_bg, txt_fg, ">")
|
|
||||||
rsb:append(prompt_bg, txt_fg, str.pad(desc), { "Normal", "Italic" })
|
|
||||||
|
|
||||||
local next_map, _, next_desc = tunpack(key_tbl[idx + 1] or { "", "", "" })
|
|
||||||
local next_prompt_len = str.width(next_map .. str.pad(next_desc))
|
|
||||||
if idx < #key_tbl and next_prompt_len < e.width.usable then
|
|
||||||
rsb:append(prompt_bg, e.theme.brights[1], str.padr(msep, 1), { "NoItalic" })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
window:set_right_status(rsb:format())
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.update_width(Config, window, pane)
|
|
||||||
|
|
||||||
---Updates the width calculations for the window and pane, factoring in various UI elements.
|
|
||||||
---The function computes the width of tabs, mode, new button, and workspace, then returns
|
|
||||||
---the remaining usable width.
|
|
||||||
---
|
|
||||||
---@param Config table The configuration settings used for formatting the tab titles.
|
|
||||||
---@param window wt.Window Wezterm's window object
|
|
||||||
---@param pane wt.Pane Wezterm's pane object
|
|
||||||
---@return number usable_width remaining usable width
|
|
||||||
e.update_width = function(Config, window, pane)
|
|
||||||
for _ = 1, #window:mux_window():tabs() do
|
|
||||||
local tab_title = pane:get_title()
|
|
||||||
e.width.tabs = e.width.tabs
|
|
||||||
+ str.width(str.format_tab_title(pane, tab_title, Config, 25))
|
|
||||||
end
|
|
||||||
|
|
||||||
return e.width.usable - (e.width.tabs + e.width.mode + e.width.new_button + e.width.ws)
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
-- {{{1 e.set_right_status(Config, window, pane)
|
|
||||||
|
|
||||||
---Updates and sets the right status bar for the given window.
|
|
||||||
---The function constructs the right status bar by gathering information on battery
|
|
||||||
---status, time, current working directory (cwd), and hostname, then formats and appends
|
|
||||||
---these pieces of information as cells to the status bar.
|
|
||||||
---The status bar is then updated in the window.
|
|
||||||
---
|
|
||||||
---@param Config table configuration settings
|
|
||||||
---@param window wt.Window Wezterm's window object
|
|
||||||
---@param pane wt.Pane Wezterm's pane object
|
|
||||||
e.set_right_status = function(Config, window, pane)
|
|
||||||
local rsb = sb:new "RightStatusBar"
|
|
||||||
|
|
||||||
e.fg = color_parse(e.fg)
|
|
||||||
local palette = { e.fg:darken(0.15), e.fg, e.fg:lighten(0.15), e.fg:lighten(0.25) }
|
|
||||||
local cwd, hostname = fs.get_cwd_hostname(pane, true)
|
|
||||||
|
|
||||||
--~ {{{2: battery cells
|
|
||||||
|
|
||||||
local battery = wt.battery_info()[1]
|
|
||||||
if battery then
|
|
||||||
battery.charge_lvl = battery.state_of_charge * 100
|
|
||||||
battery.charge_lvl_round = mt.toint(mt.mround(battery.charge_lvl, 10))
|
|
||||||
battery.ico = icon.Bat[battery.state][tostring(battery.charge_lvl_round)]
|
|
||||||
battery.lvl = tonumber(floor(battery.charge_lvl + 0.5)) .. "%"
|
|
||||||
battery.full = ("%s %s"):format(battery.lvl, battery.ico)
|
|
||||||
battery.cells = { battery.full, battery.lvl, battery.ico }
|
|
||||||
end --~ }}}
|
|
||||||
|
|
||||||
--~ {{{2: datime cells
|
|
||||||
|
|
||||||
local time_ico = str.padl(icon.Clock[timefmt "%I"])
|
|
||||||
local time_cells = {
|
|
||||||
timefmt "%a %b %-d %H:%M" .. time_ico,
|
|
||||||
timefmt "%d/%m %R" .. time_ico,
|
|
||||||
timefmt "%R" .. time_ico,
|
|
||||||
time_ico,
|
|
||||||
} --~ }}}
|
|
||||||
|
|
||||||
--~ {{{2: cwd cells
|
|
||||||
local cwd_ico = str.padl(icon.Folder)
|
|
||||||
local cwd_cells = {
|
|
||||||
cwd .. cwd_ico,
|
|
||||||
fs.pathshortener(cwd, 4) .. cwd_ico,
|
|
||||||
fs.pathshortener(cwd, 2) .. cwd_ico,
|
|
||||||
fs.pathshortener(cwd, 1) .. cwd_ico,
|
|
||||||
} --~ }}}
|
|
||||||
|
|
||||||
--~ {{{2: hostname cells
|
|
||||||
local hostname_ico = str.padl(icon.Hostname)
|
|
||||||
local hostname_cells =
|
|
||||||
{ hostname .. hostname_ico, hostname:sub(1, 1) .. hostname_ico, hostname_ico }
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
local fancy_bg = Config.window_frame.active_titlebar_bg
|
|
||||||
local last_fg = Config.use_fancy_tab_bar and fancy_bg or e.theme.tab_bar.background
|
|
||||||
|
|
||||||
local sets = { cwd_cells, hostname_cells, time_cells }
|
|
||||||
if battery then
|
|
||||||
tinsert(sets, battery.cells)
|
|
||||||
end
|
|
||||||
|
|
||||||
local cells = tbl.reverse(
|
|
||||||
e.__find_best_fit(tbl.cartesian(sets), e.width.usable, str.width(sep.sb.right), 5)
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Render the best fit, ensuring correct colors
|
|
||||||
for i = 1, #cells do
|
|
||||||
local cell_bg, cell_fg = palette[i], i == 1 and last_fg or palette[i - 1]
|
|
||||||
local rsep = sep.sb.right
|
|
||||||
|
|
||||||
rsb:append(cell_fg, cell_bg, rsep)
|
|
||||||
rsb:append(cell_bg, e.theme.tab_bar.background, str.pad(cells[i]), { "Bold" })
|
|
||||||
end
|
|
||||||
|
|
||||||
window:set_right_status(rsb:format())
|
|
||||||
end -- }}}
|
|
||||||
|
|
||||||
---Update status event
|
|
||||||
---@param window wt.Window Wezterm's window object
|
|
||||||
---@param pane wt.Pane Wezterm's pane object
|
|
||||||
wt.on("update-status", function(window, pane)
|
|
||||||
local Config, Overrides = window:effective_config(), window:get_config_overrides() or {}
|
|
||||||
e.theme = Config.color_schemes[Overrides.color_scheme or Config.color_scheme]
|
|
||||||
e.bg, e.fg = e.theme.background, e.theme.ansi[5]
|
|
||||||
|
|
||||||
e.modes = e.__get_modes()
|
|
||||||
e.width = e.__get_width(Config, pane, window)
|
|
||||||
|
|
||||||
e.set_left_status(window)
|
|
||||||
|
|
||||||
e.width.usable = e.update_width(Config, window, pane)
|
|
||||||
|
|
||||||
if e.mode and e.modes[e.mode] then
|
|
||||||
e.set_modal_prompts(window)
|
|
||||||
return -- return early to not render the status-bar
|
|
||||||
end
|
|
||||||
|
|
||||||
e.set_right_status(Config, window, pane)
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- vim: fdm=marker fdl=1
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
---@module "mappings.default"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
local act = require("wezterm").action
|
|
||||||
local key = require("utils.fn").key
|
|
||||||
|
|
||||||
local Config = {}
|
|
||||||
|
|
||||||
Config.disable_default_key_bindings = true
|
|
||||||
Config.leader = { key = "Space", mods = "CTRL", timeout_milliseconds = 1000 }
|
|
||||||
|
|
||||||
local mappings = {
|
|
||||||
{ "<C-Tab>", act.ActivateTabRelative(1), "next tab" },
|
|
||||||
{ "<C-S-Tab>", act.ActivateTabRelative(-1), "prev tab" },
|
|
||||||
{ "<M-CR>", act.ToggleFullScreen, "fullscreen" },
|
|
||||||
{ "<C-S-c>", act.CopyTo "Clipboard", "copy" },
|
|
||||||
{ "<C-S-v>", act.PasteFrom "Clipboard", "paste" },
|
|
||||||
{ "<C-S-f>", act.Search "CurrentSelectionOrEmptyString", "search" },
|
|
||||||
{ "<C-S-k>", act.ClearScrollback "ScrollbackOnly", "clear scrollback" },
|
|
||||||
{ "<C-S-l>", act.ShowDebugOverlay, "debug overlay" },
|
|
||||||
{ "<C-S-n>", act.SpawnWindow, "new window" },
|
|
||||||
{ "<C-S-p>", act.ActivateCommandPalette, "command palette" },
|
|
||||||
{ "<C-S-r>", act.ReloadConfiguration, "reload config" },
|
|
||||||
{ "<C-S-t>", act.SpawnTab "CurrentPaneDomain", "new pane" },
|
|
||||||
{
|
|
||||||
"<C-S-u>",
|
|
||||||
act.CharSelect {
|
|
||||||
copy_on_select = true,
|
|
||||||
copy_to = "ClipboardAndPrimarySelection",
|
|
||||||
},
|
|
||||||
"char select",
|
|
||||||
},
|
|
||||||
{ "<C-S-w>", act.CloseCurrentTab { confirm = true }, "close tab" },
|
|
||||||
{ "<C-S-z>", act.TogglePaneZoomState, "toggle zoom" },
|
|
||||||
{ "<PageUp>", act.ScrollByPage(-1), "" },
|
|
||||||
{ "<PageDown>", act.ScrollByPage(1), "" },
|
|
||||||
{ "<C-S-Insert>", act.PasteFrom "PrimarySelection", "" },
|
|
||||||
{ "<C-Insert>", act.CopyTo "PrimarySelection", "" },
|
|
||||||
{ "<C-S-Space>", act.QuickSelect, "quick select" },
|
|
||||||
{
|
|
||||||
"<S-M-t>",
|
|
||||||
act.ShowLauncherArgs {
|
|
||||||
title = " Search:",
|
|
||||||
flags = "FUZZY|LAUNCH_MENU_ITEMS|DOMAINS",
|
|
||||||
},
|
|
||||||
"new window",
|
|
||||||
},
|
|
||||||
|
|
||||||
---quick split and nav
|
|
||||||
{ '<C-S-">', act.SplitHorizontal { domain = "CurrentPaneDomain" }, "vsplit" },
|
|
||||||
{ "<C-S-%>", act.SplitVertical { domain = "CurrentPaneDomain" }, "hsplit" },
|
|
||||||
{ "<C-M-h>", act.ActivatePaneDirection "Left", "move left" },
|
|
||||||
{ "<C-M-j>", act.ActivatePaneDirection "Down", "mode down" },
|
|
||||||
{ "<C-M-k>", act.ActivatePaneDirection "Up", "move up" },
|
|
||||||
{ "<C-M-l>", act.ActivatePaneDirection "Right", "move right" },
|
|
||||||
|
|
||||||
---key tables
|
|
||||||
{ "<leader>h", act.ActivateKeyTable { name = "help_mode", one_shot = true }, "help" },
|
|
||||||
{
|
|
||||||
"<leader>w",
|
|
||||||
act.ActivateKeyTable { name = "window_mode", one_shot = false },
|
|
||||||
"window mode",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>f",
|
|
||||||
act.ActivateKeyTable { name = "font_mode", one_shot = false },
|
|
||||||
"font mode",
|
|
||||||
},
|
|
||||||
{ "<leader>c", act.ActivateCopyMode, "copy mode" },
|
|
||||||
{ "<leader>s", act.Search "CurrentSelectionOrEmptyString", "search mode" },
|
|
||||||
{ "<leader>p", act.ActivateKeyTable { name = "pick_mode" }, "pick mode" },
|
|
||||||
}
|
|
||||||
|
|
||||||
for i = 1, 24 do
|
|
||||||
mappings[#mappings + 1] =
|
|
||||||
{ "<S-F" .. i .. ">", act.ActivateTab(i - 1), "activate tab " .. i }
|
|
||||||
end
|
|
||||||
|
|
||||||
Config.keys = {}
|
|
||||||
for _, map_tbl in ipairs(mappings) do
|
|
||||||
key.map(map_tbl[1], map_tbl[2], Config.keys)
|
|
||||||
end
|
|
||||||
|
|
||||||
return Config
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
return require("utils.fn").tbl.merge(
|
|
||||||
(require "mappings.default"),
|
|
||||||
(require "mappings.modes")[1]
|
|
||||||
)
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
---@module "mappings.modes"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
local act = require("wezterm").action
|
|
||||||
local key = require("utils.fn").key
|
|
||||||
|
|
||||||
local Config = {}
|
|
||||||
|
|
||||||
local key_tables = {
|
|
||||||
-- {{{1 COPY MODE (copy_mode)
|
|
||||||
copy_mode = {
|
|
||||||
{ "<ESC>", act.CopyMode "Close", "exit" },
|
|
||||||
{
|
|
||||||
"y",
|
|
||||||
act.Multiple {
|
|
||||||
{ CopyTo = "ClipboardAndPrimarySelection" },
|
|
||||||
{ CopyMode = "Close" },
|
|
||||||
},
|
|
||||||
"copy selection",
|
|
||||||
},
|
|
||||||
{ "h", act.CopyMode "MoveLeft", "left" },
|
|
||||||
{ "j", act.CopyMode "MoveDown", "up" },
|
|
||||||
{ "k", act.CopyMode "MoveUp", "down" },
|
|
||||||
{ "l", act.CopyMode "MoveRight", "right" },
|
|
||||||
{ "b", act.CopyMode "MoveBackwardWord", "word backward" },
|
|
||||||
{ "e", act.CopyMode "MoveForwardWordEnd", "word end" },
|
|
||||||
{ "w", act.CopyMode "MoveForwardWord", "word forward" },
|
|
||||||
{ "<Tab>", act.CopyMode "MoveForwardWord", "forward" },
|
|
||||||
{ "<S-Tab>", act.CopyMode "MoveBackwardWord", "backward" },
|
|
||||||
{ "<CR>", act.CopyMode "MoveToStartOfNextLine", "next line" },
|
|
||||||
{ "<Space>", act.CopyMode { SetSelectionMode = "Cell" }, "" },
|
|
||||||
{ "0", act.CopyMode "MoveToStartOfLine", "line start" },
|
|
||||||
{ "<S-$>", act.CopyMode "MoveToEndOfLineContent", "line end" },
|
|
||||||
{ "^", act.CopyMode "MoveToStartOfLineContent", "" },
|
|
||||||
{ ",", act.CopyMode "JumpReverse", "repeat back" },
|
|
||||||
{ ";", act.CopyMode "JumpAgain", "repeat" },
|
|
||||||
{ "F", act.CopyMode { JumpBackward = { prev_char = false } }, "" },
|
|
||||||
{ "f", act.CopyMode { JumpForward = { prev_char = false } }, "" },
|
|
||||||
{ "T", act.CopyMode { JumpBackward = { prev_char = true } }, "" },
|
|
||||||
{ "t", act.CopyMode { JumpForward = { prev_char = true } }, "" },
|
|
||||||
{ "G", act.CopyMode "MoveToScrollbackBottom", "bot" },
|
|
||||||
{ "g", act.CopyMode "MoveToScrollbackTop", "top" },
|
|
||||||
{ "H", act.CopyMode "MoveToViewportTop", "viewport top" },
|
|
||||||
{ "M", act.CopyMode "MoveToViewportMiddle", "viewport middle" },
|
|
||||||
{ "L", act.CopyMode "MoveToViewportBottom", "viewport bot" },
|
|
||||||
{ "V", act.CopyMode { SetSelectionMode = "Line" }, "line mode" },
|
|
||||||
{ "v", act.CopyMode { SetSelectionMode = "Cell" }, "cell mode" },
|
|
||||||
{ "<C-v>", act.CopyMode { SetSelectionMode = "Block" }, "block mode" },
|
|
||||||
{ "O", act.CopyMode "MoveToSelectionOtherEndHoriz", "selection other end" },
|
|
||||||
{ "o", act.CopyMode "MoveToSelectionOtherEnd", "selection end" },
|
|
||||||
{ "<C-d>", act.CopyMode { MoveByPage = 0.5 }, "scroll down" },
|
|
||||||
{ "<C-u>", act.CopyMode { MoveByPage = -0.5 }, "scroll up" },
|
|
||||||
}, -- }}}
|
|
||||||
|
|
||||||
-- {{{1 SEARCH MODE (search_mode)
|
|
||||||
search_mode = {
|
|
||||||
{ "<ESC>", act.CopyMode "Close", "exit" },
|
|
||||||
{ "<C-n>", act.CopyMode "NextMatch", "next" },
|
|
||||||
{ "<C-N>", act.CopyMode "PriorMatch", "prev" },
|
|
||||||
{ "<C-r>", act.CopyMode "CycleMatchType", "cycle type" },
|
|
||||||
{ "<C-u>", act.CopyMode "ClearPattern", "clear pattern" },
|
|
||||||
{ "<PageUp>", act.CopyMode "PriorMatchPage", "prev page" },
|
|
||||||
{ "<PageDown>", act.CopyMode "NextMatchPage", "next page" },
|
|
||||||
{ "<UpArrow>", act.CopyMode "PriorMatch", "next" },
|
|
||||||
{ "<DownArrow>", act.CopyMode "NextMatch", "prev" },
|
|
||||||
}, -- }}}
|
|
||||||
|
|
||||||
-- {{{1 FONT MODE (font_mode)
|
|
||||||
font_mode = {
|
|
||||||
{ "<ESC>", "PopKeyTable", "exit" },
|
|
||||||
{ "+", act.IncreaseFontSize, "increase size" },
|
|
||||||
{ "-", act.DecreaseFontSize, "decrease size" },
|
|
||||||
{ "0", act.ResetFontSize, "reset size" },
|
|
||||||
}, -- }}}
|
|
||||||
|
|
||||||
-- {{{1 WINDOW MODE (window_mode)
|
|
||||||
window_mode = {
|
|
||||||
{ "<ESC>", "PopKeyTable", "exit" },
|
|
||||||
{ "q", act.CloseCurrentPane { confirm = true }, "close" },
|
|
||||||
{ "h", act.ActivatePaneDirection "Left", "left" },
|
|
||||||
{ "j", act.ActivatePaneDirection "Down", "down" },
|
|
||||||
{ "k", act.ActivatePaneDirection "Up", "up" },
|
|
||||||
{ "l", act.ActivatePaneDirection "Right", "right" },
|
|
||||||
{ "v", act.SplitHorizontal { domain = "CurrentPaneDomain" }, "vsplit" },
|
|
||||||
{ "s", act.SplitVertical { domain = "CurrentPaneDomain" }, "hsplit" },
|
|
||||||
{ "p", act.PaneSelect, "pick" },
|
|
||||||
{ "x", act.PaneSelect { mode = "SwapWithActive" }, "swap" },
|
|
||||||
{ "o", act.TogglePaneZoomState, "toggle zoom" },
|
|
||||||
{ "<LeftArrow>", act.ActivatePaneDirection "Left", "" },
|
|
||||||
{ "<DownArrow>", act.ActivatePaneDirection "Down", "" },
|
|
||||||
{ "<UpArrow>", act.ActivatePaneDirection "Up", "" },
|
|
||||||
{ "<RightArrow>", act.ActivatePaneDirection "Right", "" },
|
|
||||||
{ "<", act.AdjustPaneSize { "Left", 2 }, "resize left" },
|
|
||||||
{ "<S->>", act.AdjustPaneSize { "Right", 2 }, "resize right" },
|
|
||||||
{ "+", act.AdjustPaneSize { "Up", 2 }, "resize top" },
|
|
||||||
{ "-", act.AdjustPaneSize { "Down", 2 }, "resize bot" },
|
|
||||||
}, -- }}}
|
|
||||||
|
|
||||||
-- {{{1 HELP MODE (help_mode)
|
|
||||||
help_mode = {
|
|
||||||
{ "<ESC>", "PopKeyTable", "exit" },
|
|
||||||
{ "<C-Tab>", act.ActivateTabRelative(1), "next tab" },
|
|
||||||
{ "<C-S-Tab>", act.ActivateTabRelative(-1), "prev tab" },
|
|
||||||
{ "<C-S-c>", act.CopyTo "Clipboard", "copy" },
|
|
||||||
{ "<C-S-v>", act.PasteFrom "Clipboard", "paste" },
|
|
||||||
{ "<C-S-f>", act.Search "CurrentSelectionOrEmptyString", "search" },
|
|
||||||
{ "<C-S-k>", act.ClearScrollback "ScrollbackOnly", "clear scrollback" },
|
|
||||||
{ "<C-S-l>", act.ShowDebugOverlay, "debug overlay" },
|
|
||||||
{ "<C-S-n>", act.SpawnWindow, "new window" },
|
|
||||||
{ "<C-S-p>", act.ActivateCommandPalette, "command palette" },
|
|
||||||
{ "<C-S-r>", act.ReloadConfiguration, "reload config" },
|
|
||||||
{ "<C-S-t>", act.SpawnTab "CurrentPaneDomain", "new pane" },
|
|
||||||
{
|
|
||||||
"<C-S-u>",
|
|
||||||
act.CharSelect {
|
|
||||||
copy_on_select = true,
|
|
||||||
copy_to = "ClipboardAndPrimarySelection",
|
|
||||||
},
|
|
||||||
"char select",
|
|
||||||
},
|
|
||||||
{ "<C-S-w>", act.CloseCurrentTab { confirm = true }, "close tab" },
|
|
||||||
{ "<C-S-z>", act.TogglePaneZoomState, "toggle zoom" },
|
|
||||||
{ "<PageUp>", act.ScrollByPage(-1), "" },
|
|
||||||
{ "<PageDown>", act.ScrollByPage(1), "" },
|
|
||||||
{ "<C-S-Insert>", act.PasteFrom "PrimarySelection", "" },
|
|
||||||
{ "<C-Insert>", act.CopyTo "PrimarySelection", "" },
|
|
||||||
{ "<C-S-Space>", act.QuickSelect, "quick select" },
|
|
||||||
|
|
||||||
---quick split and nav
|
|
||||||
{ '<C-S-">', act.SplitHorizontal { domain = "CurrentPaneDomain" }, "vsplit" },
|
|
||||||
{ "<C-S-%>", act.SplitVertical { domain = "CurrentPaneDomain" }, "hsplit" },
|
|
||||||
{ "<C-M-h>", act.ActivatePaneDirection "Left", "move left" },
|
|
||||||
{ "<C-M-j>", act.ActivatePaneDirection "Down", "mode down" },
|
|
||||||
{ "<C-M-k>", act.ActivatePaneDirection "Up", "move up" },
|
|
||||||
{ "<C-M-l>", act.ActivatePaneDirection "Right", "move right" },
|
|
||||||
|
|
||||||
---key tables
|
|
||||||
{ "<leader>h", act.ActivateKeyTable { name = "help_mode", one_shot = true }, "help" },
|
|
||||||
{
|
|
||||||
"<leader>w",
|
|
||||||
act.ActivateKeyTable { name = "window_mode", one_shot = false },
|
|
||||||
"window mode",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>f",
|
|
||||||
act.ActivateKeyTable { name = "font_mode", one_shot = false },
|
|
||||||
"font mode",
|
|
||||||
},
|
|
||||||
{ "<leader>c", act.ActivateCopyMode, "copy mode" },
|
|
||||||
{ "<leader>s", act.Search "CurrentSelectionOrEmptyString", "search mode" },
|
|
||||||
},
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{1 PICK MODE (pick_mode)
|
|
||||||
pick_mode = {
|
|
||||||
{ "<ESC>", "PopKeyTable", "exit" },
|
|
||||||
{ "c", require("picker.colorscheme"):pick(), "colorscheme" },
|
|
||||||
{ "f", require("picker.font"):pick(), "font" },
|
|
||||||
{ "s", require("picker.font-size"):pick(), "font size" },
|
|
||||||
{ "l", require("picker.font-leading"):pick(), "line height" },
|
|
||||||
}, -- }}}
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.key_tables = {}
|
|
||||||
for mode, mode_table in pairs(key_tables) do
|
|
||||||
Config.key_tables[mode] = {}
|
|
||||||
for _, map_tbl in ipairs(mode_table) do
|
|
||||||
key.map(map_tbl[1], map_tbl[2], Config.key_tables[mode])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return { Config, key_tables }
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---@module "picker.assets.colorschemes.bamboo-light"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#FAFAE0",
|
|
||||||
foreground = "#3A4238",
|
|
||||||
cursor_bg = "#0F0800",
|
|
||||||
cursor_fg = "#FFF8F0",
|
|
||||||
cursor_border = "#0F0800",
|
|
||||||
selection_bg = "#A1A7A0",
|
|
||||||
selection_fg = "#3A4238",
|
|
||||||
scrollbar_thumb = "#C7C7AF",
|
|
||||||
split = "#838781",
|
|
||||||
ansi = {
|
|
||||||
"#DADAC2",
|
|
||||||
"#C72A3C",
|
|
||||||
"#27850B",
|
|
||||||
"#A77B00",
|
|
||||||
"#1745D5",
|
|
||||||
"#8A4ADF",
|
|
||||||
"#188A9E",
|
|
||||||
"#3A4238",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#C7C7AF",
|
|
||||||
"#C72A3C",
|
|
||||||
"#27850B",
|
|
||||||
"#A77B00",
|
|
||||||
"#1745D5",
|
|
||||||
"#8A4ADF",
|
|
||||||
"#188A9E",
|
|
||||||
"#252623",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#DF5926",
|
|
||||||
visual_bell = "#E4E4CC",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#A1A7A0" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#3A4238" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#C7C7AF" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#0F0800" },
|
|
||||||
quick_select_label_bg = { Color = "#C72A3C" },
|
|
||||||
quick_select_label_fg = { Color = "#3A4238" },
|
|
||||||
quick_select_match_bg = { Color = "#A77B00" },
|
|
||||||
quick_select_match_fg = { Color = "#3A4238" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#E4E4CC",
|
|
||||||
inactive_tab_edge = "#DADAC2",
|
|
||||||
active_tab = { bg_color = "#3A4238", fg_color = "#FAFAE0" },
|
|
||||||
inactive_tab = { bg_color = "#C7C7AF", fg_color = "#5B5E5A" },
|
|
||||||
inactive_tab_hover = { bg_color = "#838781", fg_color = "#DADAC2", italic = true },
|
|
||||||
new_tab = { bg_color = "#A1A7A0", fg_color = "#DADAC2" },
|
|
||||||
new_tab_hover = { bg_color = "#838781", fg_color = "#3A4238", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "bamboo-light", label = "Bamboo Light" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---@module "picker.assets.colorschemes.bamboo-multiplex"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#232923",
|
|
||||||
foreground = "#ECE1C0",
|
|
||||||
cursor_bg = "#FFF8F0",
|
|
||||||
cursor_fg = "#0F0800",
|
|
||||||
cursor_border = "#FFF8F0",
|
|
||||||
selection_bg = "#5A5E5A",
|
|
||||||
selection_fg = "#ECE1C0",
|
|
||||||
scrollbar_thumb = "#171F17",
|
|
||||||
split = "#818781",
|
|
||||||
ansi = {
|
|
||||||
"#171F17",
|
|
||||||
"#DC4F62",
|
|
||||||
"#81AF58",
|
|
||||||
"#CEBA49",
|
|
||||||
"#409CDC",
|
|
||||||
"#A09AF8",
|
|
||||||
"#68BAAE",
|
|
||||||
"#ECE1C0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#5A5E5A",
|
|
||||||
"#DC4F62",
|
|
||||||
"#81AF58",
|
|
||||||
"#CEBA49",
|
|
||||||
"#409CDC",
|
|
||||||
"#A09AF8",
|
|
||||||
"#68BAAE",
|
|
||||||
"#FFF8F0",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#EF9946",
|
|
||||||
visual_bell = "#363B35",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#5A5E5A" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#ECE1C0" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#5A5E5A" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#0F0800" },
|
|
||||||
quick_select_label_bg = { Color = "#DC4F62" },
|
|
||||||
quick_select_label_fg = { Color = "#ECE1C0" },
|
|
||||||
quick_select_match_bg = { Color = "#CEBA49" },
|
|
||||||
quick_select_match_fg = { Color = "#ECE1C0" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#171F17",
|
|
||||||
inactive_tab_edge = "#383D37",
|
|
||||||
active_tab = { bg_color = "#ECE1C0", fg_color = "#101210" },
|
|
||||||
inactive_tab = { bg_color = "#383D37", fg_color = "#5A5E5A" },
|
|
||||||
inactive_tab_hover = { bg_color = "#2D312C", fg_color = "#818781", italic = true },
|
|
||||||
new_tab = { bg_color = "#5A5E5A", fg_color = "#ECE1C0" },
|
|
||||||
new_tab_hover = { bg_color = "#818781", fg_color = "#ECE1C0", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "bamboo-multiplex", label = "Bamboo Multiplex" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---@module "picker.assets.colorschemes.bamboo"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#252623",
|
|
||||||
foreground = "#F1E9D2",
|
|
||||||
cursor_bg = "#FFF8F0",
|
|
||||||
cursor_fg = "#0F0800",
|
|
||||||
cursor_border = "#FFF8F0",
|
|
||||||
selection_bg = "#5B5E5A",
|
|
||||||
selection_fg = "#F1E9D2",
|
|
||||||
scrollbar_thumb = "#1C1E1B",
|
|
||||||
split = "#838781",
|
|
||||||
ansi = {
|
|
||||||
"#1C1E1B",
|
|
||||||
"#E75A7C",
|
|
||||||
"#8FB573",
|
|
||||||
"#DBB651",
|
|
||||||
"#57A5E5",
|
|
||||||
"#AAAAFF",
|
|
||||||
"#70C2BE",
|
|
||||||
"#F1E9D2",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#5B5E5A",
|
|
||||||
"#E75A7C",
|
|
||||||
"#8FB573",
|
|
||||||
"#DBB651",
|
|
||||||
"#57A5E5",
|
|
||||||
"#AAAAFF",
|
|
||||||
"#70C2BE",
|
|
||||||
"#FFF8F0",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#FF9966",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#5B5E5A" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#F1E9D2" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#383B35" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#F1E9D2" },
|
|
||||||
quick_select_label_bg = { Color = "#E75A7C" },
|
|
||||||
quick_select_label_fg = { Color = "#F1E9D2" },
|
|
||||||
quick_select_match_bg = { Color = "#DBB651" },
|
|
||||||
quick_select_match_fg = { Color = "#F1E9D2" },
|
|
||||||
visual_bell = "#383B35",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#1C1E1B",
|
|
||||||
inactive_tab_edge = "#3A3D37",
|
|
||||||
active_tab = { bg_color = "#F1E9D2", fg_color = "#111210" },
|
|
||||||
inactive_tab = { bg_color = "#3A3D37", fg_color = "#5B5E5A" },
|
|
||||||
inactive_tab_hover = { bg_color = "#2F312C", fg_color = "#838781", italic = true },
|
|
||||||
new_tab = { bg_color = "#5B5E5A", fg_color = "#F1E9D2" },
|
|
||||||
new_tab_hover = { bg_color = "#838781", fg_color = "#F1E9D2", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "bamboo", label = "Bamboo" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.carbonfox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#161616",
|
|
||||||
foreground = "#F2F4F8",
|
|
||||||
cursor_bg = "#F2F4F8",
|
|
||||||
cursor_fg = "#161616",
|
|
||||||
cursor_border = "#F2F4F8",
|
|
||||||
selection_bg = "#2A2A2A",
|
|
||||||
selection_fg = "#F2F4F8",
|
|
||||||
scrollbar_thumb = "#7B7C7E",
|
|
||||||
split = "#0C0C0C",
|
|
||||||
ansi = {
|
|
||||||
"#282828",
|
|
||||||
"#EE5396",
|
|
||||||
"#25BE6A",
|
|
||||||
"#08BDBA",
|
|
||||||
"#78A9FF",
|
|
||||||
"#BE95FF",
|
|
||||||
"#33B1FF",
|
|
||||||
"#DFDFE0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#484848",
|
|
||||||
"#F16DA6",
|
|
||||||
"#46C880",
|
|
||||||
"#2DC7C4",
|
|
||||||
"#8CB6FF",
|
|
||||||
"#C8A5FF",
|
|
||||||
"#52BDFF",
|
|
||||||
"#E4E4E5",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#FF7EB6", [17] = "#3DDBD9" },
|
|
||||||
compose_cursor = "#3DDBD9",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#2A2A2A" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#F2F4F8" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#484848" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E4E4E5" },
|
|
||||||
quick_select_label_bg = { Color = "#EE5396" },
|
|
||||||
quick_select_label_fg = { Color = "#F2F4F8" },
|
|
||||||
quick_select_match_bg = { Color = "#08BDBA" },
|
|
||||||
quick_select_match_fg = { Color = "#F2F4F8" },
|
|
||||||
visual_bell = "#F2F4F8",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#0C0C0C",
|
|
||||||
inactive_tab_edge = "#0C0C0C",
|
|
||||||
active_tab = { bg_color = "#7B7C7E", fg_color = "#161616" },
|
|
||||||
inactive_tab = { bg_color = "#252525", fg_color = "#B6B8BB" },
|
|
||||||
inactive_tab_hover = { bg_color = "#353535", fg_color = "#F2F4F8", italic = false },
|
|
||||||
new_tab = { bg_color = "#161616", fg_color = "#B6B8BB" },
|
|
||||||
new_tab_hover = { bg_color = "#353535", fg_color = "#F2F4F8", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "carbonfox", label = "Carbonfox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---Ported from: https://github.com/catppuccin/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.catppuccin-frappe"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#303446",
|
|
||||||
foreground = "#C6D0F5",
|
|
||||||
cursor_bg = "#F2D5CF",
|
|
||||||
cursor_fg = "#232634",
|
|
||||||
cursor_border = "#F2D5CF",
|
|
||||||
selection_fg = "#C6D0F5",
|
|
||||||
selection_bg = "#626880",
|
|
||||||
scrollbar_thumb = "#626880",
|
|
||||||
split = "#737994",
|
|
||||||
ansi = {
|
|
||||||
"#51576D",
|
|
||||||
"#E78284",
|
|
||||||
"#A6D189",
|
|
||||||
"#E5C890",
|
|
||||||
"#8CAAEE",
|
|
||||||
"#F4B8E4",
|
|
||||||
"#81C8BE",
|
|
||||||
"#B5BFE2",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#626880",
|
|
||||||
"#E78284",
|
|
||||||
"#A6D189",
|
|
||||||
"#E5C890",
|
|
||||||
"#8CAAEE",
|
|
||||||
"#F4B8E4",
|
|
||||||
"#81C8BE",
|
|
||||||
"#A5ADCE",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#EF9F76", [17] = "#F2D5CF" },
|
|
||||||
compose_cursor = "#EEBEBE",
|
|
||||||
visual_bell = "#414559",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#626880" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#C6D0F5" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#51576D" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#C6D0F5" },
|
|
||||||
quick_select_label_bg = { Color = "#E78284" },
|
|
||||||
quick_select_label_fg = { Color = "#C6D0F5" },
|
|
||||||
quick_select_match_bg = { Color = "#E5C890" },
|
|
||||||
quick_select_match_fg = { Color = "#C6D0F5" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#232634",
|
|
||||||
active_tab = { bg_color = "#CA9EE6", fg_color = "#232634" },
|
|
||||||
inactive_tab = { bg_color = "#292C3C", fg_color = "#C6D0F5" },
|
|
||||||
inactive_tab_hover = { bg_color = "#303446", fg_color = "#C6D0F5", italic = false },
|
|
||||||
new_tab = { bg_color = "#414559", fg_color = "#C6D0F5" },
|
|
||||||
new_tab_hover = { bg_color = "#51576D", fg_color = "#C6D0F5", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "catppuccin-frappe", label = "Catppuccin Frappe" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/catppuccin/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.catppuccin-latte"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#EFF1F5",
|
|
||||||
foreground = "#4C4F69",
|
|
||||||
cursor_bg = "#DC8A78",
|
|
||||||
cursor_fg = "#DCE0E8",
|
|
||||||
cursor_border = "#DC8A78",
|
|
||||||
selection_fg = "#4C4F69",
|
|
||||||
selection_bg = "#ACB0BE",
|
|
||||||
scrollbar_thumb = "#ACB0BE",
|
|
||||||
split = "#9CA0B0",
|
|
||||||
ansi = {
|
|
||||||
"#BCC0CC",
|
|
||||||
"#D20F39",
|
|
||||||
"#40A02B",
|
|
||||||
"#DF8E1D",
|
|
||||||
"#1E66F5",
|
|
||||||
"#EA76CB",
|
|
||||||
"#179299",
|
|
||||||
"#5C5F77",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#ACB0BE",
|
|
||||||
"#D20F39",
|
|
||||||
"#40A02B",
|
|
||||||
"#DF8E1D",
|
|
||||||
"#1E66F5",
|
|
||||||
"#EA76CB",
|
|
||||||
"#179299",
|
|
||||||
"#6C6F85",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#FE640B", [17] = "#DC8A78" },
|
|
||||||
compose_cursor = "#DD7878",
|
|
||||||
visual_bell = "#CCD0DA",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#ACB0BE" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#4C4F69" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#BCC0CC" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#4C4F69" },
|
|
||||||
quick_select_label_bg = { Color = "#D20F39" },
|
|
||||||
quick_select_label_fg = { Color = "#4C4F69" },
|
|
||||||
quick_select_match_bg = { Color = "#DF8E1D" },
|
|
||||||
quick_select_match_fg = { Color = "#4C4F69" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#DCE0E8",
|
|
||||||
inactive_tab_edge = "#CCD0DA",
|
|
||||||
active_tab = { bg_color = "#8839EF", fg_color = "#DCE0E8", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#E6E9EF", fg_color = "#4C4F69", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#EFF1F5", fg_color = "#4C4F69", italic = false },
|
|
||||||
new_tab = { bg_color = "#CCD0DA", fg_color = "#4C4F69", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#BCC0CC", fg_color = "#4C4F69", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "catppuccin-latte", label = "Catppuccin Latte" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/catppuccin/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.catppuccin-macchiato"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#24273A",
|
|
||||||
foreground = "#CAD3F5",
|
|
||||||
cursor_bg = "#F4DBD6",
|
|
||||||
cursor_fg = "#181926",
|
|
||||||
cursor_border = "#F4DBD6",
|
|
||||||
selection_fg = "#CAD3F5",
|
|
||||||
selection_bg = "#5B6078",
|
|
||||||
scrollbar_thumb = "#5B6078",
|
|
||||||
split = "#6E738D",
|
|
||||||
ansi = {
|
|
||||||
"#494D64",
|
|
||||||
"#ED8796",
|
|
||||||
"#A6DA95",
|
|
||||||
"#EED49F",
|
|
||||||
"#8AADF4",
|
|
||||||
"#F5BDE6",
|
|
||||||
"#8BD5CA",
|
|
||||||
"#B8C0E0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#5B6078",
|
|
||||||
"#ED8796",
|
|
||||||
"#A6DA95",
|
|
||||||
"#EED49F",
|
|
||||||
"#8AADF4",
|
|
||||||
"#F5BDE6",
|
|
||||||
"#8BD5CA",
|
|
||||||
"#A5ADCB",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#F5A97F", [17] = "#F4DBD6" },
|
|
||||||
compose_cursor = "#F0C6C6",
|
|
||||||
visual_bell = "#363A4F",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#5B6078" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#CAD3F5" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#494D64" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#CAD3F5" },
|
|
||||||
quick_select_label_bg = { Color = "#ED8796" },
|
|
||||||
quick_select_label_fg = { Color = "#CAD3F5" },
|
|
||||||
quick_select_match_bg = { Color = "#EED49F" },
|
|
||||||
quick_select_match_fg = { Color = "#CAD3F5" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#181926",
|
|
||||||
inactive_tab_edge = "#363A4F",
|
|
||||||
active_tab = { bg_color = "#F5BDE6", fg_color = "#181926", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#1E2030", fg_color = "#CAD3F5", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#24273A", fg_color = "#CAD3F5", italic = false },
|
|
||||||
new_tab = { bg_color = "#363A4F", fg_color = "#CAD3F5", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#494D64", fg_color = "#CAD3F5", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "catppuccin-macchiato", label = "Catppuccin Macchiato" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/catppuccin/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.catppuccin-mocha"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#1E1E2E",
|
|
||||||
foreground = "#CDD6F4",
|
|
||||||
cursor_bg = "#F5E0DC",
|
|
||||||
cursor_fg = "#11111B",
|
|
||||||
cursor_border = "#F5E0DC",
|
|
||||||
selection_fg = "#CDD6F4",
|
|
||||||
selection_bg = "#585B70",
|
|
||||||
scrollbar_thumb = "#585B70",
|
|
||||||
split = "#6C7086",
|
|
||||||
ansi = {
|
|
||||||
"#45475A",
|
|
||||||
"#F38BA8",
|
|
||||||
"#A6E3A1",
|
|
||||||
"#F9E2AF",
|
|
||||||
"#89B4FA",
|
|
||||||
"#F5C2E7",
|
|
||||||
"#94E2D5",
|
|
||||||
"#BAC2DE",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#585B70",
|
|
||||||
"#F38BA8",
|
|
||||||
"#A6E3A1",
|
|
||||||
"#F9E2AF",
|
|
||||||
"#89B4FA",
|
|
||||||
"#F5C2E7",
|
|
||||||
"#94E2D5",
|
|
||||||
"#A6ADC8",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#FAB387", [17] = "#F5E0DC" },
|
|
||||||
compose_cursor = "#F2CDCD",
|
|
||||||
visual_bell = "#313244",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#585B70" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#CDD6F4" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#45475A" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#CDD6F4" },
|
|
||||||
quick_select_label_bg = { Color = "#F38BA8" },
|
|
||||||
quick_select_label_fg = { Color = "#CDD6F4" },
|
|
||||||
quick_select_match_bg = { Color = "#F9E2AF" },
|
|
||||||
quick_select_match_fg = { Color = "#CDD6F4" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#11111B",
|
|
||||||
inactive_tab_edge = "#313244",
|
|
||||||
active_tab = { bg_color = "#CBA6F7", fg_color = "#11111B", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#181825", fg_color = "#CDD6F4", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#1E1E2E", fg_color = "#CDD6F4", italic = false },
|
|
||||||
new_tab = { bg_color = "#313244", fg_color = "#CDD6F4", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#45475A", fg_color = "#CDD6F4", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "catppuccin-mocha", label = "Catppuccin Mocha" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.dawnfox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#FAF4ED",
|
|
||||||
foreground = "#575279",
|
|
||||||
cursor_bg = "#575279",
|
|
||||||
cursor_fg = "#FAF4ED",
|
|
||||||
cursor_border = "#575279",
|
|
||||||
selection_bg = "#D0D8D8",
|
|
||||||
selection_fg = "#575279",
|
|
||||||
scrollbar_thumb = "#A8A3B3",
|
|
||||||
split = "#EBE5DF",
|
|
||||||
ansi = {
|
|
||||||
"#575279",
|
|
||||||
"#B4637A",
|
|
||||||
"#618774",
|
|
||||||
"#EA9D34",
|
|
||||||
"#286983",
|
|
||||||
"#907AA9",
|
|
||||||
"#56949F",
|
|
||||||
"#E5E9F0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#5F5695",
|
|
||||||
"#C26D85",
|
|
||||||
"#629F81",
|
|
||||||
"#EEA846",
|
|
||||||
"#2D81A3",
|
|
||||||
"#9A80B9",
|
|
||||||
"#5CA7B4",
|
|
||||||
"#E6EBF3",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#D685AF", [17] = "#D7827E" },
|
|
||||||
compose_cursor = "#D7827E",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#D0D8D8" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#575279" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#5F5695" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E6EBF3" },
|
|
||||||
quick_select_label_bg = { Color = "#B4637A" },
|
|
||||||
quick_select_label_fg = { Color = "#575279" },
|
|
||||||
quick_select_match_bg = { Color = "#EA9D34" },
|
|
||||||
quick_select_match_fg = { Color = "#575279" },
|
|
||||||
visual_bell = "#575279",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#EBE5DF",
|
|
||||||
inactive_tab_edge = "#EBE5DF",
|
|
||||||
active_tab = { bg_color = "#A8A3B3", fg_color = "#FAF4ED" },
|
|
||||||
inactive_tab = { bg_color = "#EBE0DF", fg_color = "#625C87" },
|
|
||||||
inactive_tab_hover = { bg_color = "#EBDFE4", fg_color = "#575279", italic = false },
|
|
||||||
new_tab = { bg_color = "#FAF4ED", fg_color = "#625C87" },
|
|
||||||
new_tab_hover = { bg_color = "#EBDFE4", fg_color = "#575279", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "dawnfox", label = "Dawnfox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.dayfox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#F6F2EE",
|
|
||||||
foreground = "#3D2B5A",
|
|
||||||
cursor_bg = "#3D2B5A",
|
|
||||||
cursor_fg = "#F6F2EE",
|
|
||||||
cursor_border = "#3D2B5A",
|
|
||||||
selection_bg = "#E7D2BE",
|
|
||||||
selection_fg = "#3D2B5A",
|
|
||||||
scrollbar_thumb = "#824D5B",
|
|
||||||
split = "#E4DCD4",
|
|
||||||
ansi = {
|
|
||||||
"#352C24",
|
|
||||||
"#A5222F",
|
|
||||||
"#396847",
|
|
||||||
"#AC5402",
|
|
||||||
"#2848A9",
|
|
||||||
"#6E33CE",
|
|
||||||
"#287980",
|
|
||||||
"#F2E9E1",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#534C45",
|
|
||||||
"#B3434E",
|
|
||||||
"#577F63",
|
|
||||||
"#B86E28",
|
|
||||||
"#4863B6",
|
|
||||||
"#8452D5",
|
|
||||||
"#488D93",
|
|
||||||
"#F4ECE6",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#A440B5", [17] = "#955F61" },
|
|
||||||
compose_cursor = "#955F61",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#E7D2BE" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#3D2B5A" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#534C45" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#F4ECE6" },
|
|
||||||
quick_select_label_bg = { Color = "#A5222F" },
|
|
||||||
quick_select_label_fg = { Color = "#3D2B5A" },
|
|
||||||
quick_select_match_bg = { Color = "#AC5402" },
|
|
||||||
quick_select_match_fg = { Color = "#3D2B5A" },
|
|
||||||
visual_bell = "#3D2B5A",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#E4DCD4",
|
|
||||||
inactive_tab_edge = "#E4DCD4",
|
|
||||||
active_tab = { bg_color = "#824D5B", fg_color = "#F6F2EE" },
|
|
||||||
inactive_tab = { bg_color = "#DBD1DD", fg_color = "#643F61" },
|
|
||||||
inactive_tab_hover = { bg_color = "#D3C7BB", fg_color = "#3D2B5A", italic = false },
|
|
||||||
new_tab = { bg_color = "#F6F2EE", fg_color = "#643F61" },
|
|
||||||
new_tab_hover = { bg_color = "#D3C7BB", fg_color = "#3D2B5A", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "dayfox", label = "Dayfox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/dracula/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.dracula"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#282A36",
|
|
||||||
foreground = "#F8F8F2",
|
|
||||||
cursor_bg = "#F8F8F2",
|
|
||||||
cursor_fg = "#282A36",
|
|
||||||
cursor_border = "#F8F8F2",
|
|
||||||
selection_fg = "#F8F8F2",
|
|
||||||
selection_bg = "rgba(68,71,90,0.5)",
|
|
||||||
scrollbar_thumb = "#44475A",
|
|
||||||
split = "#6272A4",
|
|
||||||
ansi = {
|
|
||||||
"#21222C",
|
|
||||||
"#FF5555",
|
|
||||||
"#50FA7B",
|
|
||||||
"#F1FA8C",
|
|
||||||
"#BD93F9",
|
|
||||||
"#FF79C6",
|
|
||||||
"#8BE9FD",
|
|
||||||
"#F8F8F2",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#6272A4",
|
|
||||||
"#FF6E6E",
|
|
||||||
"#69FF94",
|
|
||||||
"#FFFFA5",
|
|
||||||
"#D6ACFF",
|
|
||||||
"#FF92DF",
|
|
||||||
"#A4FFFF",
|
|
||||||
"#FFFFFF",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#FFB86C",
|
|
||||||
visual_bell = "#44475A",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#44475A" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#F8F8F2" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#21222C" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#F8F8F2" },
|
|
||||||
quick_select_label_bg = { Color = "#FF5555" },
|
|
||||||
quick_select_label_fg = { Color = "#F8F8F2" },
|
|
||||||
quick_select_match_bg = { Color = "#F1FA8C" },
|
|
||||||
quick_select_match_fg = { Color = "#F8F8F2" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#282A36",
|
|
||||||
inactive_tab_edge = "#282A36",
|
|
||||||
active_tab = { bg_color = "#BD93F9", fg_color = "#282A36", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#282A36", fg_color = "#F8F8F2" },
|
|
||||||
inactive_tab_hover = { bg_color = "#6272A4", fg_color = "#F8F8F2", italic = true },
|
|
||||||
new_tab = { bg_color = "#282A36", fg_color = "#F8F8F2" },
|
|
||||||
new_tab_hover = { bg_color = "#FF79C6", fg_color = "#F8F8F2", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "dracula", label = "Dracula" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.duskfox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#232136",
|
|
||||||
foreground = "#E0DEF4",
|
|
||||||
cursor_bg = "#E0DEF4",
|
|
||||||
cursor_fg = "#232136",
|
|
||||||
cursor_border = "#E0DEF4",
|
|
||||||
selection_bg = "#433C59",
|
|
||||||
selection_fg = "#E0DEF4",
|
|
||||||
scrollbar_thumb = "#6E6A86",
|
|
||||||
split = "#191726",
|
|
||||||
ansi = {
|
|
||||||
"#393552",
|
|
||||||
"#EB6F92",
|
|
||||||
"#A3BE8C",
|
|
||||||
"#F6C177",
|
|
||||||
"#569FBA",
|
|
||||||
"#C4A7E7",
|
|
||||||
"#9CCFD8",
|
|
||||||
"#E0DEF4",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#47407D",
|
|
||||||
"#F083A2",
|
|
||||||
"#B1D196",
|
|
||||||
"#F9CB8C",
|
|
||||||
"#65B1CD",
|
|
||||||
"#CCB1ED",
|
|
||||||
"#A6DAE3",
|
|
||||||
"#E2E0F7",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#EB98C3", [17] = "#EA9A97" },
|
|
||||||
compose_cursor = "#EA9A97",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#433C59" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#E0DEF4" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#47407D" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E2E0F7" },
|
|
||||||
quick_select_label_bg = { Color = "#EB6F92" },
|
|
||||||
quick_select_label_fg = { Color = "#E0DEF4" },
|
|
||||||
quick_select_match_bg = { Color = "#F6C177" },
|
|
||||||
quick_select_match_fg = { Color = "#E0DEF4" },
|
|
||||||
visual_bell = "#E0DEF4",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#191726",
|
|
||||||
inactive_tab_edge = "#191726",
|
|
||||||
active_tab = { bg_color = "#6E6A86", fg_color = "#232136" },
|
|
||||||
inactive_tab = { bg_color = "#2D2A45", fg_color = "#CDCBE0" },
|
|
||||||
inactive_tab_hover = { bg_color = "#373354", fg_color = "#E0DEF4", italic = false },
|
|
||||||
new_tab = { bg_color = "#232136", fg_color = "#CDCBE0" },
|
|
||||||
new_tab_hover = { bg_color = "#373354", fg_color = "#E0DEF4", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "duskfox", label = "Duskfox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/eldritch-theme/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.eldritch"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#212337",
|
|
||||||
foreground = "#EBFAFA",
|
|
||||||
cursor_bg = "#37F499",
|
|
||||||
cursor_fg = "#212337",
|
|
||||||
cursor_border = "#04D1F9",
|
|
||||||
selection_bg = "rgba(26.67% 27.84% 35.29% 50%)",
|
|
||||||
selection_fg = "rgba(0% 0% 0% 0%)",
|
|
||||||
scrollbar_thumb = "#37F499",
|
|
||||||
split = "#A48CF2",
|
|
||||||
ansi = {
|
|
||||||
"#212337",
|
|
||||||
"#F16C75",
|
|
||||||
"#37F499",
|
|
||||||
"#F7C67F",
|
|
||||||
"#A48CF2",
|
|
||||||
"#F265B5",
|
|
||||||
"#04D1F9",
|
|
||||||
"#EBFAFA",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#323449",
|
|
||||||
"#F9515D",
|
|
||||||
"#37F499",
|
|
||||||
"#E9F941",
|
|
||||||
"#9071F4",
|
|
||||||
"#F265B5",
|
|
||||||
"#66E4FD",
|
|
||||||
"#FFFFFF",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#F7C67F",
|
|
||||||
visual_bell = "#323449",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#37F499" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#212337" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#212337" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#04D1F9" },
|
|
||||||
quick_select_label_bg = { Color = "#F16C75" },
|
|
||||||
quick_select_label_fg = { Color = "#EBFAFA" },
|
|
||||||
quick_select_match_bg = { Color = "#F7C67F" },
|
|
||||||
quick_select_match_fg = { Color = "#EBFAFA" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#212337",
|
|
||||||
inactive_tab_edge = "#212337",
|
|
||||||
active_tab = { bg_color = "#37F499", fg_color = "#212337", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#212337", fg_color = "#04D1F9", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#37F499", fg_color = "#212337", italic = true },
|
|
||||||
new_tab = { bg_color = "#212337", fg_color = "#EBFAFA", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#37F499", fg_color = "#EBFAFA", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "eldritch", label = "Eldritch" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/hardhackerlabs/theme-wezterm
|
|
||||||
---@module "picker.assets.colorschemes.hardhacker"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#282433",
|
|
||||||
foreground = "#EEE9FC",
|
|
||||||
cursor_bg = "#EEE9FC",
|
|
||||||
cursor_fg = "#EEE9FC",
|
|
||||||
cursor_border = "#EEE9FC",
|
|
||||||
selection_bg = "#E965A5",
|
|
||||||
selection_fg = "#EEE9FC",
|
|
||||||
scrollbar_thumb = "#3F3951",
|
|
||||||
split = "#938AAD",
|
|
||||||
ansi = {
|
|
||||||
"#282433",
|
|
||||||
"#E965A5",
|
|
||||||
"#B1F2A7",
|
|
||||||
"#EBDE76",
|
|
||||||
"#B1BAF4",
|
|
||||||
"#E192EF",
|
|
||||||
"#B3F4F3",
|
|
||||||
"#EEE9FC",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#3F3951",
|
|
||||||
"#E965A5",
|
|
||||||
"#B1F2A7",
|
|
||||||
"#EBDE76",
|
|
||||||
"#B1BAF4",
|
|
||||||
"#E192EF",
|
|
||||||
"#B3F4F3",
|
|
||||||
"#EEE9FC",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#EBDE76",
|
|
||||||
visual_bell = "#3F3951",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#E965A5" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#EEE9FC" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#3F3951" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#938AAD" },
|
|
||||||
quick_select_label_bg = { Color = "#E965A5" },
|
|
||||||
quick_select_label_fg = { Color = "#EEE9FC" },
|
|
||||||
quick_select_match_bg = { Color = "#EBDE76" },
|
|
||||||
quick_select_match_fg = { Color = "#EEE9FC" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#282433",
|
|
||||||
inactive_tab_edge = "#282433",
|
|
||||||
active_tab = { bg_color = "#282433", fg_color = "#E965A5", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#282433", fg_color = "#938AAD", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#E192EF", fg_color = "#EEE9FC", italic = false },
|
|
||||||
new_tab = { bg_color = "#282433", fg_color = "#938AAD", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#E192EF", fg_color = "#EEE9FC", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "hardhacker", label = "Hardhacker" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/rebelot/kanagawa.nvim
|
|
||||||
---@module "picker.assets.colorschemes.kanagawa-dragon"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#181616",
|
|
||||||
foreground = "#C5C9C5",
|
|
||||||
cursor_bg = "#C8C093",
|
|
||||||
cursor_fg = "#0D0C0C",
|
|
||||||
cursor_border = "#C8C093",
|
|
||||||
selection_fg = "#DCD7BA",
|
|
||||||
selection_bg = "#223249",
|
|
||||||
scrollbar_thumb = "#223249",
|
|
||||||
split = "#625E5A",
|
|
||||||
ansi = {
|
|
||||||
"#0D0C0C",
|
|
||||||
"#C4746E",
|
|
||||||
"#8A9A7B",
|
|
||||||
"#C4B28A",
|
|
||||||
"#8BA4B0",
|
|
||||||
"#A292A3",
|
|
||||||
"#8EA4A2",
|
|
||||||
"#C8C093",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#A6A69C",
|
|
||||||
"#E46876",
|
|
||||||
"#87A987",
|
|
||||||
"#E6C384",
|
|
||||||
"#7FB4CA",
|
|
||||||
"#938AA9",
|
|
||||||
"#7AA89F",
|
|
||||||
"#C5C9C5",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#B6927B", [17] = "#B98D7B" },
|
|
||||||
compose_cursor = "#7A8382",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#223249" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#DCD7BA" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#43436C" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#D5CEA3" },
|
|
||||||
quick_select_label_bg = { Color = "#C4746E" },
|
|
||||||
quick_select_label_fg = { Color = "#C5C9C5" },
|
|
||||||
quick_select_match_bg = { Color = "#FF9E3B" },
|
|
||||||
quick_select_match_fg = { Color = "#C5C9C5" },
|
|
||||||
visual_bell = "#0D0C0C",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#0D0C0C",
|
|
||||||
inactive_tab_edge = "#0D0C0C",
|
|
||||||
active_tab = { bg_color = "#8992A7", fg_color = "#0D0C0C" },
|
|
||||||
inactive_tab = { bg_color = "#737C73", fg_color = "#0D0C0C" },
|
|
||||||
inactive_tab_hover = { bg_color = "#223249", fg_color = "#737C73", italic = true },
|
|
||||||
new_tab = { bg_color = "#737C73", fg_color = "#0D0C0C" },
|
|
||||||
new_tab_hover = { bg_color = "#223249", fg_color = "#0D0C0C", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "kanagawa-dragon", label = "Kanagawa Dragon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/rebelot/kanagawa.nvim
|
|
||||||
---@module "picker.assets.colorschemes.kanagawa-lotus"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#F2ECBC",
|
|
||||||
foreground = "#545464",
|
|
||||||
cursor_bg = "#43436C",
|
|
||||||
cursor_fg = "#D5CEA3",
|
|
||||||
cursor_border = "#43436C",
|
|
||||||
selection_fg = "#43436C",
|
|
||||||
selection_bg = "#C9CBD1",
|
|
||||||
scrollbar_thumb = "#C7D7E0",
|
|
||||||
split = "#A09CAC",
|
|
||||||
ansi = {
|
|
||||||
"#1F1F28",
|
|
||||||
"#C84053",
|
|
||||||
"#6F894E",
|
|
||||||
"#77713F",
|
|
||||||
"#4D699B",
|
|
||||||
"#B35B79",
|
|
||||||
"#597B75",
|
|
||||||
"#545464",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#8A8980",
|
|
||||||
"#D7474B",
|
|
||||||
"#6E915F",
|
|
||||||
"#836F4A",
|
|
||||||
"#6693BF",
|
|
||||||
"#624C83",
|
|
||||||
"#5E857A",
|
|
||||||
"#43436C",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#E98A00", [17] = "#E82424" },
|
|
||||||
compose_cursor = "#766B90",
|
|
||||||
visual_bell = "#D5CEA3",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#C9CBD1" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#43436C" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#43436C" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#D5CEA3" },
|
|
||||||
quick_select_label_bg = { Color = "#C84053" },
|
|
||||||
quick_select_label_fg = { Color = "#DCD7BA" },
|
|
||||||
quick_select_match_bg = { Color = "#E98A00" },
|
|
||||||
quick_select_match_fg = { Color = "#DCD7BA" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#D5CEA3",
|
|
||||||
inactive_tab_edge = "#8A8980",
|
|
||||||
active_tab = { bg_color = "#624C83", fg_color = "#D5CEA3" },
|
|
||||||
inactive_tab = { bg_color = "#8A8980", fg_color = "#D5CEA3" },
|
|
||||||
inactive_tab_hover = { bg_color = "#C9CBD1", fg_color = "#8A8980", italic = true },
|
|
||||||
new_tab = { bg_color = "#8A8980", fg_color = "#D5CEA3" },
|
|
||||||
new_tab_hover = { bg_color = "#4E8CA2", fg_color = "#D5CEA3", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "kanagawa-lotus", label = "Kanagawa Lotus" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/rebelot/kanagawa.nvim
|
|
||||||
---@module "picker.assets.colorschemes.kanagawa-wave"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#1F1F28",
|
|
||||||
foreground = "#DCD7BA",
|
|
||||||
cursor_bg = "#C8C093",
|
|
||||||
cursor_fg = "#16161D",
|
|
||||||
cursor_border = "#C8C093",
|
|
||||||
selection_fg = "#DCD7BA",
|
|
||||||
selection_bg = "#223249",
|
|
||||||
scrollbar_thumb = "#223249",
|
|
||||||
split = "#54546D",
|
|
||||||
ansi = {
|
|
||||||
"#16161D",
|
|
||||||
"#C34043",
|
|
||||||
"#76946A",
|
|
||||||
"#C0A36E",
|
|
||||||
"#7E9CD8",
|
|
||||||
"#957FB8",
|
|
||||||
"#6A9589",
|
|
||||||
"#C8C093",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#727169",
|
|
||||||
"#E82424",
|
|
||||||
"#98BB6C",
|
|
||||||
"#E6C384",
|
|
||||||
"#7FB4CA",
|
|
||||||
"#938AA9",
|
|
||||||
"#7AA89F",
|
|
||||||
"#DCD7BA",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#FFA066", [17] = "#FF5D62" },
|
|
||||||
compose_cursor = "#938AA9",
|
|
||||||
visual_bell = "#16161D",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#223249" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#DCD7BA" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#C8C093" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#16161D" },
|
|
||||||
quick_select_label_bg = { Color = "#FF5D62" },
|
|
||||||
quick_select_label_fg = { Color = "#DCD7BA" },
|
|
||||||
quick_select_match_bg = { Color = "#FF9E3B" },
|
|
||||||
quick_select_match_fg = { Color = "#DCD7BA" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#16161D",
|
|
||||||
inactive_tab_edge = "#727169",
|
|
||||||
active_tab = { bg_color = "#7E9CD8", fg_color = "#1F1F28" },
|
|
||||||
inactive_tab = { bg_color = "#727169", fg_color = "#181820" },
|
|
||||||
inactive_tab_hover = { bg_color = "#223249", fg_color = "#727169", italic = true },
|
|
||||||
new_tab = { bg_color = "#727169", fg_color = "#181820" },
|
|
||||||
new_tab_hover = { bg_color = "#9CABCA", fg_color = "#181820", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "kanagawa-wave", label = "Kanagawa Wave" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.nightfox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#192330",
|
|
||||||
foreground = "#CDCECF",
|
|
||||||
cursor_bg = "#CDCECF",
|
|
||||||
cursor_fg = "#192330",
|
|
||||||
cursor_border = "#CDCECF",
|
|
||||||
selection_bg = "#2B3B51",
|
|
||||||
selection_fg = "#CDCECF",
|
|
||||||
scrollbar_thumb = "#71839B",
|
|
||||||
split = "#131A24",
|
|
||||||
ansi = {
|
|
||||||
"#393B44",
|
|
||||||
"#C94F6D",
|
|
||||||
"#81B29A",
|
|
||||||
"#DBC074",
|
|
||||||
"#719CD6",
|
|
||||||
"#9D79D6",
|
|
||||||
"#63CDCF",
|
|
||||||
"#DFDFE0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#575860",
|
|
||||||
"#D16983",
|
|
||||||
"#8EBAA4",
|
|
||||||
"#E0C989",
|
|
||||||
"#86ABDC",
|
|
||||||
"#BAA1E2",
|
|
||||||
"#7AD5D6",
|
|
||||||
"#E4E4E5",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#D67AD2", [17] = "#F4A261" },
|
|
||||||
compose_cursor = "#F4A261",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#2B3B51" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#CDCECF" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#575860" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E4E4E5" },
|
|
||||||
quick_select_label_bg = { Color = "#C94F6D" },
|
|
||||||
quick_select_label_fg = { Color = "#CDCECF" },
|
|
||||||
quick_select_match_bg = { Color = "#DBC074" },
|
|
||||||
quick_select_match_fg = { Color = "#CDCECF" },
|
|
||||||
visual_bell = "#CDCECF",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#131A24",
|
|
||||||
inactive_tab_edge = "#131A24",
|
|
||||||
active_tab = { bg_color = "#71839B", fg_color = "#192330" },
|
|
||||||
inactive_tab = { bg_color = "#212E3F", fg_color = "#AEAFB0" },
|
|
||||||
inactive_tab_hover = { bg_color = "#29394F", fg_color = "#CDCECF", italic = false },
|
|
||||||
new_tab = { bg_color = "#192330", fg_color = "#AEAFB0" },
|
|
||||||
new_tab_hover = { bg_color = "#29394F", fg_color = "#CDCECF", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "nightfox", label = "Nightfox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.nordfox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#2E3440",
|
|
||||||
foreground = "#CDCECF",
|
|
||||||
cursor_bg = "#CDCECF",
|
|
||||||
cursor_fg = "#2E3440",
|
|
||||||
cursor_border = "#CDCECF",
|
|
||||||
selection_bg = "#3E4A5B",
|
|
||||||
selection_fg = "#CDCECF",
|
|
||||||
scrollbar_thumb = "#7E8188",
|
|
||||||
split = "#232831",
|
|
||||||
ansi = {
|
|
||||||
"#3B4252",
|
|
||||||
"#BF616A",
|
|
||||||
"#A3BE8C",
|
|
||||||
"#EBCB8B",
|
|
||||||
"#81A1C1",
|
|
||||||
"#B48EAD",
|
|
||||||
"#88C0D0",
|
|
||||||
"#E5E9F0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#465780",
|
|
||||||
"#D06F79",
|
|
||||||
"#B1D196",
|
|
||||||
"#F0D399",
|
|
||||||
"#8CAFD2",
|
|
||||||
"#C895BF",
|
|
||||||
"#93CCDC",
|
|
||||||
"#E7ECF4",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#BF88BC", [17] = "#C9826B" },
|
|
||||||
compose_cursor = "#C9826B",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#3E4A5B" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#CDCECF" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#465780" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E7ECF4" },
|
|
||||||
quick_select_label_bg = { Color = "#BF616A" },
|
|
||||||
quick_select_label_fg = { Color = "#CDCECF" },
|
|
||||||
quick_select_match_bg = { Color = "#EBCB8B" },
|
|
||||||
quick_select_match_fg = { Color = "#CDCECF" },
|
|
||||||
visual_bell = "#CDCECF",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#232831",
|
|
||||||
inactive_tab_edge = "#232831",
|
|
||||||
active_tab = { bg_color = "#7E8188", fg_color = "#2E3440" },
|
|
||||||
inactive_tab = { bg_color = "#39404F", fg_color = "#ABB1BB" },
|
|
||||||
inactive_tab_hover = { bg_color = "#444C5E", fg_color = "#CDCECF", italic = false },
|
|
||||||
new_tab = { bg_color = "#2E3440", fg_color = "#ABB1BB" },
|
|
||||||
new_tab_hover = { bg_color = "#444C5E", fg_color = "#CDCECF", italic = false },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "nordfox", label = "Nordfox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/olivercederborg/poimandres.nvim
|
|
||||||
---@module "picker.assets.colorschemes.poimandres-storm"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#252B37",
|
|
||||||
foreground = "#E4F0FB",
|
|
||||||
cursor_bg = "#A6ACCD",
|
|
||||||
cursor_fg = "#252B37",
|
|
||||||
cursor_border = "#A6ACCD",
|
|
||||||
compose_cursor = "#FCC5E9",
|
|
||||||
selection_bg = "#506477",
|
|
||||||
selection_fg = "#E4F0FB",
|
|
||||||
scrollbar_thumb = "#404350",
|
|
||||||
split = "#252B37",
|
|
||||||
visual_bell = "#506477",
|
|
||||||
ansi = {
|
|
||||||
"#1B1E28",
|
|
||||||
"#D0679D",
|
|
||||||
"#5DE4C7",
|
|
||||||
"#FFFAC2",
|
|
||||||
"#89DDFF",
|
|
||||||
"#FCC5E9",
|
|
||||||
"#89DDFF",
|
|
||||||
"#FFFFFF",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#506477",
|
|
||||||
"#D0679D",
|
|
||||||
"#5DE4C7",
|
|
||||||
"#FFFAC2",
|
|
||||||
"#ADD7FF",
|
|
||||||
"#FCC5E9",
|
|
||||||
"#ADD7FF",
|
|
||||||
"#FFFFFF",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#5DE4C7", [17] = "#D0679D" },
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#506477" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#E4F0FB" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#404350" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E4F0FB" },
|
|
||||||
quick_select_label_bg = { Color = "#D0679D" },
|
|
||||||
quick_select_label_fg = { Color = "#E4F0FB" },
|
|
||||||
quick_select_match_bg = { Color = "#FFFAC2" },
|
|
||||||
quick_select_match_fg = { Color = "#E4F0FB" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#1B1E28",
|
|
||||||
inactive_tab_edge = "#1B1E28",
|
|
||||||
active_tab = { bg_color = "#1B1E28", fg_color = "#E4F0FB", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#1B1E28", fg_color = "#506477", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#1B1E28", fg_color = "#868CAD", italic = false },
|
|
||||||
new_tab = { bg_color = "#1B1E28", fg_color = "#506477", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#1B1E28", fg_color = "#868CAD", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "poimandres-storm", label = "Poimandres Storm" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/olivercederborg/poimandres.nvim
|
|
||||||
---@module "picker.assets.colorschemes.poimandres"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#1B1E28",
|
|
||||||
foreground = "#E4F0FB",
|
|
||||||
cursor_bg = "#A6ACCD",
|
|
||||||
cursor_fg = "#1B1E28",
|
|
||||||
cursor_border = "#A6ACCD",
|
|
||||||
compose_cursor = "#FCC5E9",
|
|
||||||
selection_bg = "#506477",
|
|
||||||
selection_fg = "#E4F0FB",
|
|
||||||
scrollbar_thumb = "#303340",
|
|
||||||
split = "#171922",
|
|
||||||
visual_bell = "#506477",
|
|
||||||
ansi = {
|
|
||||||
"#171922",
|
|
||||||
"#D0679D",
|
|
||||||
"#5DE4C7",
|
|
||||||
"#FFFAC2",
|
|
||||||
"#89DDFF",
|
|
||||||
"#FCC5E9",
|
|
||||||
"#89DDFF",
|
|
||||||
"#FFFFFF",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#506477",
|
|
||||||
"#D0679D",
|
|
||||||
"#5DE4C7",
|
|
||||||
"#FFFAC2",
|
|
||||||
"#ADD7FF",
|
|
||||||
"#FCC5E9",
|
|
||||||
"#ADD7FF",
|
|
||||||
"#FFFFFF",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#5DE4C7", [17] = "#D0679D" },
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#506477" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#E4F0FB" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#303340" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E4F0FB" },
|
|
||||||
quick_select_label_bg = { Color = "#D0679D" },
|
|
||||||
quick_select_label_fg = { Color = "#E4F0FB" },
|
|
||||||
quick_select_match_bg = { Color = "#FFFAC2" },
|
|
||||||
quick_select_match_fg = { Color = "#E4F0FB" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#171922",
|
|
||||||
inactive_tab_edge = "#171922",
|
|
||||||
active_tab = { bg_color = "#1B1E28", fg_color = "#E4F0FB", italic = false },
|
|
||||||
inactive_tab = { bg_color = "#171922", fg_color = "#506477", italic = false },
|
|
||||||
inactive_tab_hover = { bg_color = "#171922", fg_color = "#767C9D", italic = false },
|
|
||||||
new_tab = { bg_color = "#171922", fg_color = "#506477", italic = false },
|
|
||||||
new_tab_hover = { bg_color = "#171922", fg_color = "#767C9D", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "poimandres", label = "Poimandres" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/neapsix/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.rose-pine-dawn"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#FAF4ED",
|
|
||||||
foreground = "#575279",
|
|
||||||
cursor_bg = "#9893A5",
|
|
||||||
cursor_fg = "#575279",
|
|
||||||
cursor_border = "#9893A5",
|
|
||||||
selection_fg = "#575279",
|
|
||||||
selection_bg = "#F2E9E1",
|
|
||||||
scrollbar_thumb = "#F2E9E1",
|
|
||||||
split = "#9893A5",
|
|
||||||
ansi = {
|
|
||||||
"#F2E9DE",
|
|
||||||
"#B4637A",
|
|
||||||
"#286983",
|
|
||||||
"#EA9D34",
|
|
||||||
"#56949F",
|
|
||||||
"#907AA9",
|
|
||||||
"#D7827E",
|
|
||||||
"#575279",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#6E6A86",
|
|
||||||
"#B4637A",
|
|
||||||
"#286983",
|
|
||||||
"#EA9D34",
|
|
||||||
"#56949F",
|
|
||||||
"#907AA9",
|
|
||||||
"#D7827E",
|
|
||||||
"#575279",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#9893A5",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#F2E9E1" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#575279" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#9893A5" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#575279" },
|
|
||||||
quick_select_label_bg = { Color = "#B4637A" },
|
|
||||||
quick_select_label_fg = { Color = "#575279" },
|
|
||||||
quick_select_match_bg = { Color = "#EA9D34" },
|
|
||||||
quick_select_match_fg = { Color = "#575279" },
|
|
||||||
visual_bell = "#575279",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#FAF4ED",
|
|
||||||
inactive_tab_edge = "#9893A5",
|
|
||||||
active_tab = { bg_color = "#F2E9E1", fg_color = "#575279" },
|
|
||||||
inactive_tab = { bg_color = "#FAF4ED", fg_color = "#9893A5" },
|
|
||||||
inactive_tab_hover = { bg_color = "#F2E9E1", fg_color = "#575279" },
|
|
||||||
new_tab = { bg_color = "#FAF4ED", fg_color = "#9893A5" },
|
|
||||||
new_tab_hover = { bg_color = "#F2E9E1", fg_color = "#575279" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "rose-pine-dawn", label = "Rosé Pine Dawn" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
---Ported from: https://github.com/neapsix/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.rose-pine-moon"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#232136",
|
|
||||||
foreground = "#E0DEF4",
|
|
||||||
cursor_bg = "#59546D",
|
|
||||||
cursor_fg = "#E0DEF4",
|
|
||||||
cursor_border = "#59546D",
|
|
||||||
selection_fg = "#E0DEF4",
|
|
||||||
selection_bg = "#393552",
|
|
||||||
scrollbar_thumb = "#393552",
|
|
||||||
split = "#6E6A86",
|
|
||||||
ansi = {
|
|
||||||
"#393552",
|
|
||||||
"#EB6F92",
|
|
||||||
"#3E8FB0",
|
|
||||||
"#F6C177",
|
|
||||||
"#9CCFD8",
|
|
||||||
"#C4A7E7",
|
|
||||||
"#EBBCBA",
|
|
||||||
"#E0DEF4",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#817C9C",
|
|
||||||
"#EB6F92",
|
|
||||||
"#3E8FB0",
|
|
||||||
"#F6C177",
|
|
||||||
"#9CCFD8",
|
|
||||||
"#C4A7E7",
|
|
||||||
"#EBBCBA",
|
|
||||||
"#E0DEF4",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
|
|
||||||
compose_cursor = "#C4A7E7",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#393552" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#E0DEF4" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#59546D" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E0DEF4" },
|
|
||||||
quick_select_label_bg = { Color = "#EB6F92" },
|
|
||||||
quick_select_label_fg = { Color = "#E0DEF4" },
|
|
||||||
quick_select_match_bg = { Color = "#F6C177" },
|
|
||||||
quick_select_match_fg = { Color = "#E0DEF4" },
|
|
||||||
visual_bell = "#E0DEF4",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#232136",
|
|
||||||
inactive_tab_edge = "#6E6A86",
|
|
||||||
active_tab = { bg_color = "#393552", fg_color = "#E0DEF4" },
|
|
||||||
inactive_tab = { bg_color = "#232136", fg_color = "#6E6A86" },
|
|
||||||
inactive_tab_hover = { bg_color = "#393552", fg_color = "#E0DEF4" },
|
|
||||||
new_tab = { bg_color = "#232136", fg_color = "#6E6A86" },
|
|
||||||
new_tab_hover = { bg_color = "#393552", fg_color = "#E0DEF4" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "rose-pine-moon", label = "Rosé Pine Moon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
---Ported from: https://github.com/neapsix/wezterm
|
|
||||||
---@module "picker.assets.colorschemes.rose-pine"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
foreground = "#E0DEF4",
|
|
||||||
background = "#191724",
|
|
||||||
cursor_bg = "#524F67",
|
|
||||||
cursor_fg = "#E0DEF4",
|
|
||||||
cursor_border = "#524F67",
|
|
||||||
selection_bg = "#2A283E",
|
|
||||||
selection_fg = "#E0DEF4",
|
|
||||||
scrollbar_thumb = "#2A283E",
|
|
||||||
split = "#6E6A86",
|
|
||||||
ansi = {
|
|
||||||
"#26233A",
|
|
||||||
"#EB6F92",
|
|
||||||
"#31748F",
|
|
||||||
"#F6C177",
|
|
||||||
"#9CCFD8",
|
|
||||||
"#C4A7E7",
|
|
||||||
"#EBBCBA",
|
|
||||||
"#E0DEF4",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#6E6A86",
|
|
||||||
"#EB6F92",
|
|
||||||
"#31748F",
|
|
||||||
"#F6C177",
|
|
||||||
"#9CCFD8",
|
|
||||||
"#C4A7E7",
|
|
||||||
"#EBBCBA",
|
|
||||||
"#E0DEF4",
|
|
||||||
},
|
|
||||||
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#C4A7E7",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#2A283E" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#E0DEF4" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#524F67" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#E0DEF4" },
|
|
||||||
quick_select_label_bg = { Color = "#EB6F92" },
|
|
||||||
quick_select_label_fg = { Color = "#E0DEF4" },
|
|
||||||
quick_select_match_bg = { Color = "#F6C177" },
|
|
||||||
quick_select_match_fg = { Color = "#E0DEF4" },
|
|
||||||
visual_bell = "#E0DEF4",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#191724",
|
|
||||||
inactive_tab_edge = "#6E6A86",
|
|
||||||
active_tab = { bg_color = "#26233A", fg_color = "#E0DEF4" },
|
|
||||||
inactive_tab = { bg_color = "#191724", fg_color = "#6E6A86" },
|
|
||||||
inactive_tab_hover = { bg_color = "#26233A", fg_color = "#E0DEF4" },
|
|
||||||
new_tab = { bg_color = "#191724", fg_color = "#6E6A86" },
|
|
||||||
new_tab_hover = { bg_color = "#26233A", fg_color = "#E0DEF4" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "rose-pine", label = "Rosé Pine" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from https://www.github.com/EdenEast/nightfox.nvim
|
|
||||||
---@module "picker.assets.colorschemes.terafox"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
background = "#152528",
|
|
||||||
foreground = "#E6EAEA",
|
|
||||||
cursor_bg = "#E6EAEA",
|
|
||||||
cursor_fg = "#152528",
|
|
||||||
cursor_border = "#E6EAEA",
|
|
||||||
selection_bg = "#293E40",
|
|
||||||
selection_fg = "#E6EAEA",
|
|
||||||
scrollbar_thumb = "#587B7B",
|
|
||||||
split = "#0F1C1E",
|
|
||||||
ansi = {
|
|
||||||
"#2F3239",
|
|
||||||
"#E85C51",
|
|
||||||
"#7AA4A1",
|
|
||||||
"#FDA47F",
|
|
||||||
"#5A93AA",
|
|
||||||
"#AD5C7C",
|
|
||||||
"#A1CDD8",
|
|
||||||
"#EBEBEB",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#4E5157",
|
|
||||||
"#EB746B",
|
|
||||||
"#8EB2AF",
|
|
||||||
"#FDB292",
|
|
||||||
"#73A3B7",
|
|
||||||
"#B97490",
|
|
||||||
"#AFD4DE",
|
|
||||||
"#EEEEEE",
|
|
||||||
},
|
|
||||||
indexed = { [16] = "#CB7985", [17] = "#FF8349" },
|
|
||||||
compose_cursor = "#FF8349",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#293E40" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#E6EAEA" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#4E5157" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#EEEEEE" },
|
|
||||||
quick_select_label_bg = { Color = "#E85C51" },
|
|
||||||
quick_select_label_fg = { Color = "#E6EAEA" },
|
|
||||||
quick_select_match_bg = { Color = "#FDA47F" },
|
|
||||||
quick_select_match_fg = { Color = "#E6EAEA" },
|
|
||||||
visual_bell = "#E6EAEA",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#0F1C1E",
|
|
||||||
inactive_tab_edge = "#0F1C1E",
|
|
||||||
active_tab = { bg_color = "#587B7B", fg_color = "#152528" },
|
|
||||||
inactive_tab = { bg_color = "#1D3337", fg_color = "#CBD9D8" },
|
|
||||||
inactive_tab_hover = { bg_color = "#254147", fg_color = "#E6EAEA", italic = true },
|
|
||||||
new_tab = { bg_color = "#152528", fg_color = "#CBD9D8" },
|
|
||||||
new_tab_hover = { bg_color = "#254147", fg_color = "#E6EAEA", italic = true },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "terafox", label = "Terafox" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/folke/tokyonight.nvim
|
|
||||||
---@module "picker.assets.colorschemes.tokyonight-day"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
foreground = "#3760BF",
|
|
||||||
background = "#E1E2E7",
|
|
||||||
cursor_bg = "#3760BF",
|
|
||||||
cursor_fg = "#E1E2E7",
|
|
||||||
cursor_border = "#3760BF",
|
|
||||||
selection_bg = "#B7C1E3",
|
|
||||||
selection_fg = "#3760BF",
|
|
||||||
scrollbar_thumb = "#C4C8DA",
|
|
||||||
split = "#2E7DE9",
|
|
||||||
ansi = {
|
|
||||||
"#B4B5B9",
|
|
||||||
"#F52A65",
|
|
||||||
"#587539",
|
|
||||||
"#8C6C3E",
|
|
||||||
"#2E7DE9",
|
|
||||||
"#9854F1",
|
|
||||||
"#007197",
|
|
||||||
"#6172B0",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#A1A6C5",
|
|
||||||
"#F52A65",
|
|
||||||
"#587539",
|
|
||||||
"#8C6C3E",
|
|
||||||
"#2E7DE9",
|
|
||||||
"#9854F1",
|
|
||||||
"#007197",
|
|
||||||
"#3760BF",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#B15C00",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#B7C1E3" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#3760BF" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#C4C8DA" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#3760BF" },
|
|
||||||
quick_select_label_bg = { Color = "#F52A65" },
|
|
||||||
quick_select_label_fg = { Color = "#3760BF" },
|
|
||||||
quick_select_match_bg = { Color = "#8C6C3E" },
|
|
||||||
quick_select_match_fg = { Color = "#3760BF" },
|
|
||||||
visual_bell = "#B7C1E3",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#E1E2E7",
|
|
||||||
inactive_tab_edge = "#D0D5E3",
|
|
||||||
active_tab = { fg_color = "#D0D5E3", bg_color = "#2E7DE9" },
|
|
||||||
inactive_tab = { fg_color = "#8990B3", bg_color = "#C4C8DA" },
|
|
||||||
inactive_tab_hover = { fg_color = "#2E7DE9", bg_color = "#C4C8DA" },
|
|
||||||
new_tab = { fg_color = "#2E7DE9", bg_color = "#E1E2E7" },
|
|
||||||
new_tab_hover = { fg_color = "#2E7DE9", bg_color = "#E1E2E7", intensity = "Bold" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "tokyonight-day", label = "Tokyonight Day" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---Ported from: https://github.com/folke/tokyonight.nvim
|
|
||||||
---@module "picker.assets.colorschemes.tokyonight-moon"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
foreground = "#C8D3F5",
|
|
||||||
background = "#222436",
|
|
||||||
cursor_bg = "#C8D3F5",
|
|
||||||
cursor_fg = "#222436",
|
|
||||||
cursor_border = "#C8D3F5",
|
|
||||||
selection_bg = "#2D3F76",
|
|
||||||
selection_fg = "#C8D3F5",
|
|
||||||
scrollbar_thumb = "#2F334D",
|
|
||||||
split = "#82AAFF",
|
|
||||||
ansi = {
|
|
||||||
"#1B1D2B",
|
|
||||||
"#FF757F",
|
|
||||||
"#C3E88D",
|
|
||||||
"#FFC777",
|
|
||||||
"#82AAFF",
|
|
||||||
"#C099FF",
|
|
||||||
"#86E1FC",
|
|
||||||
"#828BB8",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#444A73",
|
|
||||||
"#FF757F",
|
|
||||||
"#C3E88D",
|
|
||||||
"#FFC777",
|
|
||||||
"#82AAFF",
|
|
||||||
"#C099FF",
|
|
||||||
"#86E1FC",
|
|
||||||
"#C8D3F5",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#FF966C",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#2D3F76" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#C8D3F5" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#2F334D" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#C8D3F5" },
|
|
||||||
quick_select_label_bg = { Color = "#FF757F" },
|
|
||||||
quick_select_label_fg = { Color = "#C8D3F5" },
|
|
||||||
quick_select_match_bg = { Color = "#FFC777" },
|
|
||||||
quick_select_match_fg = { Color = "#C8D3F5" },
|
|
||||||
visual_bell = "#2D3F76",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#222436",
|
|
||||||
inactive_tab_edge = "#1E2030",
|
|
||||||
active_tab = { bg_color = "#82AAFF", fg_color = "#1E2030" },
|
|
||||||
inactive_tab = { bg_color = "#2F334D", fg_color = "#545C7E" },
|
|
||||||
inactive_tab_hover = { bg_color = "#2F334D", fg_color = "#82AAFF" },
|
|
||||||
new_tab = { bg_color = "#222436", fg_color = "#82AAFF" },
|
|
||||||
new_tab_hover = { bg_color = "#222436", fg_color = "#82AAFF", intensity = "Bold" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
function M.get()
|
|
||||||
return { id = "tokyonight-moon", label = "Tokyonight Moon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
---Ported from: https://github.com/folke/tokyonight.nvim
|
|
||||||
---@module "picker.assets.colorschemes.tokyonight-night"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
foreground = "#C0CAF5",
|
|
||||||
background = "#1A1B26",
|
|
||||||
cursor_bg = "#C0CAF5",
|
|
||||||
cursor_fg = "#1A1B26",
|
|
||||||
cursor_border = "#C0CAF5",
|
|
||||||
selection_bg = "#283457",
|
|
||||||
selection_fg = "#C0CAF5",
|
|
||||||
scrollbar_thumb = "#292E42",
|
|
||||||
split = "#7AA2F7",
|
|
||||||
ansi = {
|
|
||||||
"#15161E",
|
|
||||||
"#F7768E",
|
|
||||||
"#9ECE6A",
|
|
||||||
"#E0AF68",
|
|
||||||
"#7AA2F7",
|
|
||||||
"#BB9AF7",
|
|
||||||
"#7DCFFF",
|
|
||||||
"#A9B1D6",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#414868",
|
|
||||||
"#F7768E",
|
|
||||||
"#9ECE6A",
|
|
||||||
"#E0AF68",
|
|
||||||
"#7AA2F7",
|
|
||||||
"#BB9AF7",
|
|
||||||
"#7DCFFF",
|
|
||||||
"#C0CAF5",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#FF9E64",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#283457" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#C0CAF5" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#292E42" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#C0CAF5" },
|
|
||||||
quick_select_label_bg = { Color = "#F7768E" },
|
|
||||||
quick_select_label_fg = { Color = "#C0CAF5" },
|
|
||||||
quick_select_match_bg = { Color = "#E0AF68" },
|
|
||||||
quick_select_match_fg = { Color = "#C0CAF5" },
|
|
||||||
visual_bell = "#283457",
|
|
||||||
tab_bar = {
|
|
||||||
background = "#1A1B26",
|
|
||||||
inactive_tab_edge = "#16161E",
|
|
||||||
active_tab = { fg_color = "#16161E", bg_color = "#7AA2F7" },
|
|
||||||
inactive_tab = { fg_color = "#545C7E", bg_color = "#292E42" },
|
|
||||||
inactive_tab_hover = { fg_color = "#7AA2F7", bg_color = "#292E42" },
|
|
||||||
new_tab = { fg_color = "#7AA2F7", bg_color = "#1A1B26" },
|
|
||||||
new_tab_hover = { fg_color = "#7AA2F7", bg_color = "#1A1B26", intensity = "Bold" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "tokyonight-night", label = "Tokyonight Night" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---Ported from: https://github.com/folke/tokyonight.nvim
|
|
||||||
---@module "picker.assets.colorschemes.tokyostorm-storm"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local color = require("utils").fn.color
|
|
||||||
|
|
||||||
M.scheme = {
|
|
||||||
foreground = "#C0CAF5",
|
|
||||||
background = "#24283B",
|
|
||||||
cursor_bg = "#C0CAF5",
|
|
||||||
cursor_fg = "#24283B",
|
|
||||||
cursor_border = "#C0CAF5",
|
|
||||||
selection_bg = "#2E3C64",
|
|
||||||
selection_fg = "#C0CAF5",
|
|
||||||
split = "#7AA2F7",
|
|
||||||
scrollbar_thumb = "#292E42",
|
|
||||||
ansi = {
|
|
||||||
"#1D202F",
|
|
||||||
"#F7768E",
|
|
||||||
"#9ECE6A",
|
|
||||||
"#E0AF68",
|
|
||||||
"#7AA2F7",
|
|
||||||
"#BB9AF7",
|
|
||||||
"#7DCFFF",
|
|
||||||
"#A9B1D6",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#414868",
|
|
||||||
"#F7768E",
|
|
||||||
"#9ECE6A",
|
|
||||||
"#E0AF68",
|
|
||||||
"#7AA2F7",
|
|
||||||
"#BB9AF7",
|
|
||||||
"#7DCFFF",
|
|
||||||
"#C0CAF5",
|
|
||||||
},
|
|
||||||
indexed = {},
|
|
||||||
compose_cursor = "#FF9E64",
|
|
||||||
copy_mode_active_highlight_bg = { Color = "#283457" },
|
|
||||||
copy_mode_active_highlight_fg = { Color = "#C0CAF5" },
|
|
||||||
copy_mode_inactive_highlight_bg = { Color = "#292E42" },
|
|
||||||
copy_mode_inactive_highlight_fg = { Color = "#C0CAF5" },
|
|
||||||
quick_select_label_bg = { Color = "#F7768E" },
|
|
||||||
quick_select_label_fg = { Color = "#C0CAF5" },
|
|
||||||
quick_select_match_bg = { Color = "#E0AF68" },
|
|
||||||
quick_select_match_fg = { Color = "#C0CAF5" },
|
|
||||||
tab_bar = {
|
|
||||||
background = "#24283B",
|
|
||||||
inactive_tab_edge = "#1F2335",
|
|
||||||
active_tab = { fg_color = "#1F2335", bg_color = "#7AA2F7" },
|
|
||||||
inactive_tab = { fg_color = "#545C7E", bg_color = "#292E42" },
|
|
||||||
inactive_tab_hover = { fg_color = "#7AA2F7", bg_color = "#292E42" },
|
|
||||||
new_tab = { fg_color = "#7AA2F7", bg_color = "#24283B" },
|
|
||||||
new_tab_hover = { fg_color = "#7AA2F7", bg_color = "#24283B", intensity = "Bold" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.get()
|
|
||||||
return { id = "tokyonight-storm", label = "Tokyostorm Storm" }
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.activate(Config, callback_opts)
|
|
||||||
local theme = M.scheme
|
|
||||||
color.set_scheme(Config, theme, callback_opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
---@module "picker.assets.font-leadings.font-leadings"
|
|
||||||
---@author akthe-at, sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
local leadings_list = { { label = "Reset Line Height to Default", id = "reset" } }
|
|
||||||
for i = 0.9, 1.4, 0.1 do
|
|
||||||
table.insert(leadings_list, { label = i .. "x", id = tostring(i) })
|
|
||||||
end
|
|
||||||
return leadings_list
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(config, opts)
|
|
||||||
if opts.id == "reset" then
|
|
||||||
config.line_height = nil
|
|
||||||
else
|
|
||||||
config.line_height = tonumber(opts.id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
---@module "picker.assets.font-sizes.font-sizes"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
local sizes = {}
|
|
||||||
for i = 8, 30 do
|
|
||||||
sizes[#sizes + 1] = { label = ("%2dpt"):format(i), id = tostring(i) }
|
|
||||||
end
|
|
||||||
sizes[#sizes + 1] = { id = tostring(require("config.font").font_size), label = "Reset" }
|
|
||||||
|
|
||||||
return sizes
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, opts)
|
|
||||||
Config.font_size = tonumber(opts.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.cascadia-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "cascadia-nf", label = "Cascadia Mono Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Cascadia Mono NF",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.line_height = 1.0
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Normal",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Cascadia Mono NF",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "DemiBold",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.cascadia-pl"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "cascadia-pl", label = "Cascadia Code PL" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Cascadia Code PL",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.cell_width = 0.9
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.caskaydia-cove-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "cascaydia-cove-nf", label = "Cascaydia Cove Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "CaskaydiaCove Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.comic-shanns-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "comic-shanns-nf", label = "Comic Shanns Mono Nerf Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "ComicShannsMono Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.cell_width = 1.0
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.d2-coding-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "d2-coding-nf", label = "D2 Coding Ligature Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "D2CodingLigature Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.cell_width = 1.0
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.droid-sans-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "droid-sans-nf", label = "Droid Sans Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "DroidSansM Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.cell_width = 0.9
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.fira-code-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "fira-code-nf", label = "Fira Code Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "FiraCode Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.hack-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "hack-nf", label = "Hack Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Hack Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.line_height = 1.3
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.jetbrains-mono-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "jetbrains-mono-nf", label = "Jetbrains Mono Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "JetBrainsMono Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.line_height = 1.2
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon", --"Monaspace Radon Var",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var", --"Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.maple-mono"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "maple-mono", label = "Maple Mono" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Maple Mono",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.monaspace-argon"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "monaspace-argon", label = "Monaspace Argon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Argon",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "Regular" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = false,
|
|
||||||
font = wt.font("Monaspace Neon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.monaspace-krypton"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "monaspace-krypton", label = "Monaspace Krypton" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "Regular" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = false,
|
|
||||||
font = wt.font("Monaspace Neon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.monaspace-neon"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "monaspace-neon", label = "Monaspace Neon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Neon",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "Regular" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = false,
|
|
||||||
font = wt.font("Monaspace Neon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.monaspace-radon"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "monaspace-radon", label = "Monaspace Radon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "Regular" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = false,
|
|
||||||
font = wt.font("Monaspace Neon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.monaspace-xenon"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "monaspace-xenon", label = "Monaspace Xenon" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Xenon",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "Regular" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = false,
|
|
||||||
font = wt.font("Monaspace Neon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.pragmasevka-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "pragmasevka-nf", label = "Pragmasevka Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Pragmasevka Nerd Font",
|
|
||||||
weight = "Medium",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.reset"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "reset", label = "Restore fonts to default" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
for key, value in pairs(require "config.font") do
|
|
||||||
Config[key] = value
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.ubuntu-mono-nf"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "ubuntu-mono-nf", label = "Ubuntu Mono Nerd Font" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "UbuntuMono Nerd Font",
|
|
||||||
weight = "Regular",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.cell_width = 0.9
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "Regular" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = false,
|
|
||||||
font = wt.font("Monaspace Neon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font("Monaspace Radon", { weight = "ExtraBold" }),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
---@module "picker.assets.fonts.victor-mono"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
M.get = function()
|
|
||||||
return { id = "victor-mono", label = "Victor Mono" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.activate = function(Config, _)
|
|
||||||
local monaspace_features =
|
|
||||||
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
||||||
|
|
||||||
Config.font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Victor Mono",
|
|
||||||
weight = "Medium",
|
|
||||||
harfbuzz_features = {
|
|
||||||
"cv06",
|
|
||||||
"cv12",
|
|
||||||
"cv14",
|
|
||||||
"cv16",
|
|
||||||
"cv25",
|
|
||||||
"cv26",
|
|
||||||
"cv28",
|
|
||||||
"cv29",
|
|
||||||
"cv31",
|
|
||||||
"cv32",
|
|
||||||
"ss03",
|
|
||||||
"ss04",
|
|
||||||
"ss05",
|
|
||||||
"ss07",
|
|
||||||
"ss09",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ family = "Noto Color Emoji" },
|
|
||||||
{ family = "LegacyComputing" },
|
|
||||||
}
|
|
||||||
|
|
||||||
Config.cell_width = 1.0
|
|
||||||
Config.font_rules = {
|
|
||||||
{
|
|
||||||
intensity = "Normal",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Radon",
|
|
||||||
style = "Normal",
|
|
||||||
weight = "Regular",
|
|
||||||
stretch = "Expanded",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intensity = "Bold",
|
|
||||||
italic = true,
|
|
||||||
font = wt.font_with_fallback {
|
|
||||||
{
|
|
||||||
family = "Monaspace Krypton Var",
|
|
||||||
style = "Italic",
|
|
||||||
weight = "Black",
|
|
||||||
harfbuzz_features = monaspace_features,
|
|
||||||
scale = 1.1,
|
|
||||||
},
|
|
||||||
{ family = "Symbols Nerd Font" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
---@module "picker.colorscheme"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local Utils = require "utils"
|
|
||||||
local Picker, Layout = Utils.class.picker, Utils.class.layout
|
|
||||||
|
|
||||||
return Picker.new {
|
|
||||||
title = " Colorscheme",
|
|
||||||
subdir = "colorschemes",
|
|
||||||
fuzzy = true,
|
|
||||||
fuzzy_description = "Fuzzy matching: ",
|
|
||||||
|
|
||||||
build = function(__choices, _, opts)
|
|
||||||
local choices = {}
|
|
||||||
for _, item in pairs(__choices) do
|
|
||||||
local id, label = item.value.id, item.value.label
|
|
||||||
local colors = item.module.scheme
|
|
||||||
---@cast label string
|
|
||||||
|
|
||||||
local ChoiceLayout = Layout:new "ColorschemeChoices"
|
|
||||||
for i = 1, #colors.ansi do
|
|
||||||
local bg = colors.ansi[i]
|
|
||||||
ChoiceLayout:append("none", bg, " ")
|
|
||||||
end
|
|
||||||
|
|
||||||
ChoiceLayout:append("none", "none", " ")
|
|
||||||
for i = 1, #colors.brights do
|
|
||||||
local bg = colors.brights[i]
|
|
||||||
ChoiceLayout:append("none", bg, " ")
|
|
||||||
end
|
|
||||||
|
|
||||||
local Config = opts.window:effective_config()
|
|
||||||
local fg = Config.color_schemes[Config.color_scheme].foreground
|
|
||||||
ChoiceLayout:append("none", "none", (" "):rep(5))
|
|
||||||
ChoiceLayout:append("none", fg, label)
|
|
||||||
choices[#choices + 1] = { label = ChoiceLayout:format(), id = id }
|
|
||||||
end
|
|
||||||
|
|
||||||
table.sort(choices, function(a, b)
|
|
||||||
return a.id < b.id
|
|
||||||
end)
|
|
||||||
|
|
||||||
return choices
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
---@module "picker.font-leading"
|
|
||||||
---@author akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local Picker = require("utils").class.picker
|
|
||||||
|
|
||||||
return Picker.new {
|
|
||||||
title = " Font leading",
|
|
||||||
subdir = "font-leadings",
|
|
||||||
fuzzy = false,
|
|
||||||
comp = function(a, b)
|
|
||||||
local label = "Reset Line Height to Default"
|
|
||||||
return (a.label == label) or (b.label ~= label and a.label < b.label)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
---@module "picker.font-size"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local Picker = require("utils").class.picker
|
|
||||||
|
|
||||||
return Picker.new {
|
|
||||||
title = " Font size",
|
|
||||||
subdir = "font-sizes",
|
|
||||||
fuzzy = true,
|
|
||||||
comp = function(a, b)
|
|
||||||
local label = "Reset"
|
|
||||||
return (a.label == label) or (b.label ~= label and a.label < b.label)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
---@module "picker.font"
|
|
||||||
---@author sravioli, akthe-at
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local Picker = require("utils").class.picker
|
|
||||||
|
|
||||||
return Picker.new {
|
|
||||||
title = " Font picker",
|
|
||||||
subdir = "fonts",
|
|
||||||
fuzzy = true,
|
|
||||||
comp = function(a, b)
|
|
||||||
return (a.id == "reset") or (b.id ~= "reset" and a.label < b.label)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---@module "utils.class.config"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---locals are faster
|
|
||||||
-- local type, pcall, pairs, setmetatable = type, pcall, pairs, setmetatable
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
---@class Utils.Class.Config
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
---@package
|
|
||||||
---
|
|
||||||
---Class logger
|
|
||||||
M.log = require("utils.class.logger"):new "Config"
|
|
||||||
|
|
||||||
---Initializes a new Config object.
|
|
||||||
---Creates a new Wezterm configuration object. If `wezterm.config_builder()` is available,
|
|
||||||
---it will use the config builder and set the configuration to strict mode.
|
|
||||||
---
|
|
||||||
---@return Utils.Class.Config self new instance of the Wezterm configuration.
|
|
||||||
function M:new()
|
|
||||||
self.config = {}
|
|
||||||
|
|
||||||
if wt.config_builder then ---@diagnostic disable-line: undefined-field
|
|
||||||
self.config = wt.config_builder() ---@diagnostic disable-line: undefined-field
|
|
||||||
self.config:set_strict_mode(true)
|
|
||||||
M.log:debug "Wezterm's config builder is available"
|
|
||||||
else
|
|
||||||
M.log:warn "Wezterm's config builder is unavailable"
|
|
||||||
end
|
|
||||||
|
|
||||||
self = setmetatable(self.config, { __index = M })
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
|
|
||||||
---Adds a module to the Wezterm configuration.
|
|
||||||
---This function allows you to extend the Wezterm configuration by adding new options
|
|
||||||
---from a specified module. If a string is provided, it requires the module and merges
|
|
||||||
---its options. If a table is provided, it merges the table directly into the configuration.
|
|
||||||
---
|
|
||||||
---**Example usage**
|
|
||||||
---
|
|
||||||
---~~~lua
|
|
||||||
---local Config = require "config"
|
|
||||||
---return Config:new():add(require "<module.name>")
|
|
||||||
---~~~
|
|
||||||
---
|
|
||||||
---@param spec string|table lua `require()` path to config table or config table
|
|
||||||
---@return Utils.Class.Config # Modified Config object with the new options.
|
|
||||||
function M:add(spec)
|
|
||||||
if type(spec) == "string" then
|
|
||||||
if not (pcall(require, spec)) then
|
|
||||||
M.log:error("Unable to require module %s", spec)
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
spec = require(spec)
|
|
||||||
end
|
|
||||||
|
|
||||||
for key, value in pairs(spec) do
|
|
||||||
if self.config[key] == spec[key] then
|
|
||||||
M.log:warn("found duplicate! old: %s, new: %s", self.config[key], spec[key])
|
|
||||||
end
|
|
||||||
self.config[key] = value
|
|
||||||
end
|
|
||||||
|
|
||||||
return self.config
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,258 +0,0 @@
|
|||||||
---@module "utils.class.icon"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
local nf = require("wezterm").nerdfonts
|
|
||||||
|
|
||||||
-- {{{1 META
|
|
||||||
|
|
||||||
--~ {{{2 Icons.Sep
|
|
||||||
|
|
||||||
---Tabs bar separators
|
|
||||||
---@class Utils.Class.Icons.Sep.tb
|
|
||||||
---@field leftmost string `▐`
|
|
||||||
---@field left string ``
|
|
||||||
---@field right string ``
|
|
||||||
---
|
|
||||||
---Status-bar separators
|
|
||||||
---@class Utils.Class.Icons.Sep.sb
|
|
||||||
---@field left string ``
|
|
||||||
---@field right string ``
|
|
||||||
---@field modal string ``
|
|
||||||
---
|
|
||||||
---Separators
|
|
||||||
---@class Utils.Class.Icons.Sep
|
|
||||||
---@field sb Utils.Class.Icons.Sep.sb
|
|
||||||
---@field tb Utils.Class.Icons.Sep.tb
|
|
||||||
---@field block string `█`
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 Icons.Bat
|
|
||||||
|
|
||||||
---Icons for a full battery
|
|
||||||
---@class Utils.Class.Icons.Bat.Full
|
|
||||||
---@field ["100"] string ``
|
|
||||||
---
|
|
||||||
---Icons for a charging battery
|
|
||||||
---@class Utils.Class.Icons.Bat.Charging
|
|
||||||
---@field ["00"] string ``
|
|
||||||
---@field ["10"] string `
|
|
||||||
---@field ["20"] string `
|
|
||||||
---@field ["30"] string `
|
|
||||||
---@field ["40"] string `
|
|
||||||
---@field ["50"] string `
|
|
||||||
---@field ["60"] string `
|
|
||||||
---@field ["70"] string `
|
|
||||||
---@field ["80"] string `
|
|
||||||
---@field ["90"] string `
|
|
||||||
---@field ["100"] string ``
|
|
||||||
---
|
|
||||||
---Icons for a discharging battery
|
|
||||||
---@class Utils.Class.Icons.Bat.Discharging
|
|
||||||
---@field ["00"] string ``
|
|
||||||
---@field ["10"] string ``
|
|
||||||
---@field ["20"] string ``
|
|
||||||
---@field ["30"] string ``
|
|
||||||
---@field ["40"] string ``
|
|
||||||
---@field ["50"] string ``
|
|
||||||
---@field ["60"] string ``
|
|
||||||
---@field ["70"] string ``
|
|
||||||
---@field ["80"] string ``
|
|
||||||
---@field ["90"] string ``
|
|
||||||
---@field ["100"] string ``
|
|
||||||
---
|
|
||||||
---Collection of battery icons
|
|
||||||
---@class Utils.Class.Icons.Bat
|
|
||||||
---@field Full Utils.Class.Icons.Bat.Full
|
|
||||||
---@field Charging Utils.Class.Icons.Bat.Charging
|
|
||||||
---@field Discharging Utils.Class.Icons.Bat.Discharging
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 Icons.Nums
|
|
||||||
|
|
||||||
---{ , , , , , , , , , }
|
|
||||||
---@class Utils.Class.Icons.Nums: string[]
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 Icons.Progs
|
|
||||||
|
|
||||||
---Indexed list of programs names and their respective icons
|
|
||||||
---@class Utils.Class.Icons.Progs: table<string: string>
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 Icons.Clock
|
|
||||||
|
|
||||||
---Indexed list of clock icons
|
|
||||||
---@class Utils.Class.Icons.Clock: table<string: string>
|
|
||||||
---@field ["00"] string ``
|
|
||||||
---@field ["01"] string ``
|
|
||||||
---@field ["02"] string ``
|
|
||||||
---@field ["03"] string ``
|
|
||||||
---@field ["04"] string ``
|
|
||||||
---@field ["05"] string ``
|
|
||||||
---@field ["06"] string ``
|
|
||||||
---@field ["07"] string ``
|
|
||||||
---@field ["08"] string ``
|
|
||||||
---@field ["09"] string ``
|
|
||||||
---@field ["10"] string ``
|
|
||||||
---@field ["11"] string ``
|
|
||||||
---@field ["12"] string ``
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 Utils.Class.Icons
|
|
||||||
|
|
||||||
---@class Utils.Class.Icons
|
|
||||||
---@field Sep Utils.Class.Icons.Sep
|
|
||||||
---@field Bat Utils.Class.Icons.Bat
|
|
||||||
---@field Nums Utils.Class.Icons.Nums
|
|
||||||
---@field Progs Utils.Class.Icons.Progs
|
|
||||||
---@field Clock Utils.Class.Icons.Clock
|
|
||||||
---@field Folder string ``
|
|
||||||
---@field Workspace string ``
|
|
||||||
---@field Hostname string ``
|
|
||||||
---@field Notification string ``
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
---@class Utils.Class.Icons
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.Notification = nf.cod_circle_small_filled
|
|
||||||
|
|
||||||
M.Workspace = nf.md_shield
|
|
||||||
M.Folder = nf.md_folder
|
|
||||||
M.Hostname = nf.md_monitor_shimmer
|
|
||||||
|
|
||||||
M.Sep = {
|
|
||||||
block = "█",
|
|
||||||
|
|
||||||
sb = {
|
|
||||||
left = nf.pl_left_hard_divider,
|
|
||||||
right = nf.pl_right_hard_divider,
|
|
||||||
modal = nf.ple_forwardslash_separator,
|
|
||||||
},
|
|
||||||
|
|
||||||
ws = {
|
|
||||||
right = nf.ple_right_half_circle_thick,
|
|
||||||
left = nf.ple_left_half_circle_thick,
|
|
||||||
},
|
|
||||||
|
|
||||||
tb = {
|
|
||||||
leftmost = "▐",
|
|
||||||
left = nf.ple_upper_right_triangle,
|
|
||||||
right = nf.ple_lower_left_triangle,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
M.Bat = {
|
|
||||||
Full = {
|
|
||||||
["100"] = nf.md_battery,
|
|
||||||
},
|
|
||||||
|
|
||||||
Charging = {
|
|
||||||
["00"] = nf.md_battery_alert,
|
|
||||||
["10"] = nf.md_battery_charging_10,
|
|
||||||
["20"] = nf.md_battery_charging_20,
|
|
||||||
["30"] = nf.md_battery_charging_30,
|
|
||||||
["40"] = nf.md_battery_charging_40,
|
|
||||||
["50"] = nf.md_battery_charging_50,
|
|
||||||
["60"] = nf.md_battery_charging_60,
|
|
||||||
["70"] = nf.md_battery_charging_70,
|
|
||||||
["80"] = nf.md_battery_charging_80,
|
|
||||||
["90"] = nf.md_battery_charging_90,
|
|
||||||
["100"] = nf.md_battery_charging_100,
|
|
||||||
},
|
|
||||||
|
|
||||||
Discharging = {
|
|
||||||
["00"] = nf.md_battery_outline,
|
|
||||||
["10"] = nf.md_battery_10,
|
|
||||||
["20"] = nf.md_battery_20,
|
|
||||||
["30"] = nf.md_battery_30,
|
|
||||||
["40"] = nf.md_battery_40,
|
|
||||||
["50"] = nf.md_battery_50,
|
|
||||||
["60"] = nf.md_battery_60,
|
|
||||||
["70"] = nf.md_battery_70,
|
|
||||||
["80"] = nf.md_battery_80,
|
|
||||||
["90"] = nf.md_battery_90,
|
|
||||||
["100"] = nf.md_battery,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
M.Nums = {
|
|
||||||
nf.md_numeric_1,
|
|
||||||
nf.md_numeric_2,
|
|
||||||
nf.md_numeric_3,
|
|
||||||
nf.md_numeric_4,
|
|
||||||
nf.md_numeric_5,
|
|
||||||
nf.md_numeric_6,
|
|
||||||
nf.md_numeric_7,
|
|
||||||
nf.md_numeric_8,
|
|
||||||
nf.md_numeric_9,
|
|
||||||
nf.md_numeric_10,
|
|
||||||
}
|
|
||||||
|
|
||||||
M.Clock = {
|
|
||||||
["00"] = nf.md_clock_time_twelve,
|
|
||||||
["01"] = nf.md_clock_time_one,
|
|
||||||
["02"] = nf.md_clock_time_two,
|
|
||||||
["03"] = nf.md_clock_time_three,
|
|
||||||
["04"] = nf.md_clock_time_four,
|
|
||||||
["05"] = nf.md_clock_time_five,
|
|
||||||
["06"] = nf.md_clock_time_six,
|
|
||||||
["07"] = nf.md_clock_time_seven,
|
|
||||||
["08"] = nf.md_clock_time_eight,
|
|
||||||
["09"] = nf.md_clock_time_nine,
|
|
||||||
["10"] = nf.md_clock_time_ten,
|
|
||||||
["11"] = nf.md_clock_time_eleven,
|
|
||||||
["12"] = nf.md_clock_time_twelve,
|
|
||||||
}
|
|
||||||
|
|
||||||
M.Progs = {
|
|
||||||
["bash"] = nf.cod_terminal_bash,
|
|
||||||
["btm"] = nf.md_chart_donut_variant,
|
|
||||||
["btop"] = nf.md_chart_areaspline,
|
|
||||||
["C:\\WINDOWS\\system32\\cmd.exe"] = nf.md_console_line,
|
|
||||||
["cargo"] = nf.dev_rust,
|
|
||||||
["curl"] = nf.mdi_flattr,
|
|
||||||
["docker-compose"] = nf.linux_docker,
|
|
||||||
["docker"] = nf.linux_docker,
|
|
||||||
["fish"] = nf.md_fish,
|
|
||||||
["gh"] = nf.dev_github_badge,
|
|
||||||
["git"] = nf.dev_git,
|
|
||||||
["go"] = nf.seti_go,
|
|
||||||
["htop"] = nf.md_chart_areaspline,
|
|
||||||
["kubectl"] = nf.linux_docker,
|
|
||||||
["kuberlr"] = nf.linux_docker,
|
|
||||||
["lazydocker"] = nf.linux_docker,
|
|
||||||
["lazygit"] = nf.cod_github,
|
|
||||||
["lua"] = nf.seti_lua,
|
|
||||||
["make"] = nf.seti_makefile,
|
|
||||||
["node"] = nf.md_nodejs,
|
|
||||||
["nvim"] = nf.custom_neovim,
|
|
||||||
["pacman"] = " ",
|
|
||||||
["paru"] = " ",
|
|
||||||
["perl"] = nf.seti_perl,
|
|
||||||
["psql"] = nf.dev_postgresql,
|
|
||||||
["pwsh"] = nf.md_console,
|
|
||||||
["pwsh.exe"] = nf.md_console,
|
|
||||||
["python"] = nf.seti_python,
|
|
||||||
["ruby"] = nf.cod_ruby,
|
|
||||||
["sudo"] = nf.fa_hashtag,
|
|
||||||
["Topgrade"] = nf.md_rocket_launch,
|
|
||||||
["vim"] = nf.dev_vim,
|
|
||||||
["wget"] = nf.mdi_arrow_down_box,
|
|
||||||
["zsh"] = nf.dev_terminal,
|
|
||||||
["Yazi"] = nf.md_duck,
|
|
||||||
}
|
|
||||||
|
|
||||||
return M
|
|
||||||
|
|
||||||
-- vim: fdm=marker fdl=1
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
---@class Utils.Class
|
|
||||||
---@field config Utils.Class.Config
|
|
||||||
---@field icon Utils.Class.Icons
|
|
||||||
---@field layout Utils.Class.Layout
|
|
||||||
---@field logger Utils.Class.Logger
|
|
||||||
---@field picker Utils.Class.Picker
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
local mod = ...
|
|
||||||
setmetatable(M, {
|
|
||||||
__index = function(t, k)
|
|
||||||
t[k] = require(mod .. "." .. k)
|
|
||||||
return t[k]
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
---@module "utils.class.layout"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3.0
|
|
||||||
|
|
||||||
local Logger = require "utils.class.logger"
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
-- selene: allow(incorrect_standard_library_use)
|
|
||||||
local tinsert, tunpack = table.insert, unpack or table.unpack
|
|
||||||
|
|
||||||
local attribute_mappings = {
|
|
||||||
None = "ResetAttributes",
|
|
||||||
NoUnderline = { Underline = "None" },
|
|
||||||
Single = { Underline = "Single" },
|
|
||||||
Double = { Underline = "Double" },
|
|
||||||
Curly = { Underline = "Curly" },
|
|
||||||
Dotted = { Underline = "Dotted" },
|
|
||||||
Dashed = { Underline = "Dashed" },
|
|
||||||
Normal = { Intensity = "Normal" },
|
|
||||||
Bold = { Intensity = "Bold" },
|
|
||||||
Half = { Intensity = "Half" },
|
|
||||||
Italic = { Italic = true },
|
|
||||||
NoItalic = { Italic = false },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- stylua: ignore
|
|
||||||
local ansi_colors = {
|
|
||||||
Black = true, Maroon = true, Green = true, Olive = true, Navy = true, Purple = true,
|
|
||||||
Teal = true, Silver = true, Grey = true, Red = true, Lime = true, Yellow = true,
|
|
||||||
Blue = true, Fuchsia = true, Aqua = true, White = true,
|
|
||||||
}
|
|
||||||
|
|
||||||
---The `Layout` class was created to address the need for a more straightforward and organized
|
|
||||||
---way to build formatted text layouts in Wezterm. Wezterm's
|
|
||||||
---[`FormatItem`](https://wezfurlong.org/wezterm/config/lua/wezterm/format.html) objects
|
|
||||||
---can be cumbersome to handle directly, especially when dealing with multiple attributes
|
|
||||||
---and text segments. The `Layout` class encapsulates this complexity, providing a clear
|
|
||||||
---and concise API to manage these objects.
|
|
||||||
---
|
|
||||||
---@class Utils.Class.Layout
|
|
||||||
---@field private layout table
|
|
||||||
---@field private log table
|
|
||||||
---@field private name string
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
---Creates a new class instance.
|
|
||||||
---
|
|
||||||
---@param name? string name of the layout. Used for logging purposes.
|
|
||||||
---@return Utils.Class.Layout layout newly created class instance.
|
|
||||||
function M:new(name)
|
|
||||||
name = "Layout" .. (name and " > " .. name or "")
|
|
||||||
return setmetatable(
|
|
||||||
{ layout = {}, log = Logger:new(name), name = name },
|
|
||||||
{ __index = self }
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Inserts the given element in the Layout.
|
|
||||||
---
|
|
||||||
---Inserts the text element with the specified background and foreground colors, as well as
|
|
||||||
---optional attributes such as: underline style, text intensity, etc.
|
|
||||||
---
|
|
||||||
---Supports all the attributes that Wezterm's
|
|
||||||
---[`FormatItem`](https://wezfurlong.org/wezterm/config/lua/wezterm/format.html) object
|
|
||||||
---defines, and supports color definitions similarly.
|
|
||||||
---
|
|
||||||
---@param action "append"|"prepend" action type
|
|
||||||
---@param background string background color of the element.
|
|
||||||
---@param foreground string foreground color of the element.
|
|
||||||
---@param text string text to be added.
|
|
||||||
---@param attributes? table attributes to style the text.
|
|
||||||
---@return Utils.Class.Layout self updated layout instance.
|
|
||||||
function M:insert(action, background, foreground, text, attributes)
|
|
||||||
if not action or action == "" then
|
|
||||||
return self.log:error "Cannot operate with empty action"
|
|
||||||
end
|
|
||||||
|
|
||||||
local idx = function()
|
|
||||||
return action == "prepend" and 1 or #self + 1
|
|
||||||
end
|
|
||||||
|
|
||||||
local colors_pair = { { "Background", background }, { "Foreground", foreground } }
|
|
||||||
for i = 1, #colors_pair do
|
|
||||||
local attr, color = tunpack(colors_pair[i])
|
|
||||||
local color_entry = ansi_colors[color] and { [attr] = { AnsiColor = color } }
|
|
||||||
or { [attr] = { Color = color } }
|
|
||||||
|
|
||||||
tinsert(self, idx(), color_entry)
|
|
||||||
end
|
|
||||||
|
|
||||||
if attributes then
|
|
||||||
for i = 1, #attributes do
|
|
||||||
local attribute = attributes[i]
|
|
||||||
if not attribute_mappings[attribute] then
|
|
||||||
return self.log:error("attribute '%s' is not defined!", attribute)
|
|
||||||
end
|
|
||||||
|
|
||||||
tinsert(self, idx(), { Attribute = attribute_mappings[attribute] })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
tinsert(self, idx(), { Text = text })
|
|
||||||
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
|
|
||||||
---Append the given element in the Layout.
|
|
||||||
---@see Utils.Class.Layout.insert
|
|
||||||
function M:append(background, foreground, text, attributes)
|
|
||||||
return M.insert(self, "append", background, foreground, text, attributes)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Prepend the given element in the Layout.
|
|
||||||
---@see Utils.Class.Layout.insert
|
|
||||||
function M:prepend(background, foreground, text, attributes)
|
|
||||||
return M.insert(self, "prepend", foreground, background, text, attributes)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Clears all elements from the layout.
|
|
||||||
---
|
|
||||||
---@return Utils.Class.Layout self The cleared layout instance.
|
|
||||||
function M:clear()
|
|
||||||
self.log:debug("clearing layout %s", self.name)
|
|
||||||
self.layout = {}
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
|
|
||||||
---Formats the Layout object
|
|
||||||
---
|
|
||||||
---@return string format The resulting string formatted by `wezterm.format()`
|
|
||||||
function M:format()
|
|
||||||
self.log:debug("formatting layout %s", self.name)
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
return wt.format(self)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Logs the unformatted layout to wezterm's debug console
|
|
||||||
---@param formatted boolean whether to log the formatted layout or not
|
|
||||||
function M:debug(formatted)
|
|
||||||
self.log:info(formatted and self:format() or self)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
---@module "utils.class.logger"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-field
|
|
||||||
local G, log_info, log_warn, log_error = wt.GLOBAL, wt.log_info, wt.log_warn, wt.log_error
|
|
||||||
|
|
||||||
-- selene: allow(incorrect_standard_library_use)
|
|
||||||
local unpack = unpack or table.unpack
|
|
||||||
local inspect = require("utils.external.inspect").inspect
|
|
||||||
local levels = { DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3 }
|
|
||||||
|
|
||||||
-- {{{1 Helpers
|
|
||||||
|
|
||||||
local h = {}
|
|
||||||
|
|
||||||
---Converts each given vararg to a string
|
|
||||||
---@param ... any
|
|
||||||
---@return ... string
|
|
||||||
h.stringify = function(...)
|
|
||||||
local args = { ... }
|
|
||||||
for i = 1, #args do
|
|
||||||
if type(args[i]) == "userdata" then
|
|
||||||
args[i] = tostring(args[i])
|
|
||||||
else
|
|
||||||
args[i] = inspect(args[i])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return unpack(args)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Returns the appropriate log level
|
|
||||||
---@param level string|integer
|
|
||||||
---@return integer level log level converted to integer
|
|
||||||
h.get_level = function(level)
|
|
||||||
if type(level) == "string" then
|
|
||||||
level = levels[level:upper()]
|
|
||||||
end
|
|
||||||
return level
|
|
||||||
end
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
---@class Utils.Class.Logger
|
|
||||||
---@field identifier string
|
|
||||||
---@field enabled boolean
|
|
||||||
---@field log_level integer
|
|
||||||
local M = {}
|
|
||||||
M.__index = M
|
|
||||||
|
|
||||||
---Creates a new class instance
|
|
||||||
---
|
|
||||||
---Whether logging is enabled is globally controlled by the `wezterm.GLOBAL.enable_logging`
|
|
||||||
---variable. Setting it to `false` (either from the Debug overlay or from the configuration),
|
|
||||||
---will disable logging; the opposite happens when it is set to `true`.
|
|
||||||
---
|
|
||||||
---@param identifier? string indentifier that will be printed in brackets before the msg
|
|
||||||
---@param enabled? boolean whether to enable logging or not. defaults to true at warn lvl
|
|
||||||
---@return Utils.Class.Logger
|
|
||||||
function M:new(identifier, enabled)
|
|
||||||
return setmetatable({
|
|
||||||
identifier = identifier or "Logger",
|
|
||||||
enabled = G.enable_logging or enabled or true,
|
|
||||||
log_level = h.get_level(G.log_level or levels.WARN),
|
|
||||||
}, self)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Logs a message with the specified log level
|
|
||||||
---
|
|
||||||
---Logs the given string to the Wezterm's debug overlay. The message can be either a
|
|
||||||
---simple string or a format string. The latter must only use `%s` placeholders since the
|
|
||||||
---function already takes care of stringifing any non-string value.
|
|
||||||
---
|
|
||||||
---@param level integer|string log level
|
|
||||||
---@param message string log message or format string
|
|
||||||
---@param ... any additional arguments to format into the message
|
|
||||||
function M:log(level, message, ...)
|
|
||||||
if not (G.enable_logging and self.enabled) then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if h.get_level(level) < self.log_level then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local msg = ("[%s] %s"):format(self.identifier, message:format(h.stringify(...)))
|
|
||||||
if (level == levels.DEBUG) or (level == levels.INFO) then
|
|
||||||
log_info(msg)
|
|
||||||
elseif level == levels.WARN then
|
|
||||||
log_warn(msg)
|
|
||||||
elseif level == levels.ERROR then
|
|
||||||
log_error(msg)
|
|
||||||
else
|
|
||||||
self:error("invalid log level: %s", level)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
---Logs a debug level message to the Wezterm's debug overlay.
|
|
||||||
---
|
|
||||||
---Logs the given string to the Wezterm's debug overlay. The message can be either a
|
|
||||||
---simple string or a format string. The latter must only use `%s` placeholders since the
|
|
||||||
---function already takes care of stringifing any non-string value.
|
|
||||||
---
|
|
||||||
---@param message string log message or format string
|
|
||||||
---@param ... any additional arguments to format into the message
|
|
||||||
function M:debug(message, ...)
|
|
||||||
self:log(levels.DEBUG, "DEBUG: " .. message, ...)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Logs a info level message to the Wezterm's debug overlay.
|
|
||||||
---
|
|
||||||
---Logs the given string to the Wezterm's debug overlay. The message can be either a
|
|
||||||
---simple string or a format string. The latter must only use `%s` placeholders since the
|
|
||||||
---function already takes care of stringifing any non-string value.
|
|
||||||
---
|
|
||||||
---@param message string log message or format string
|
|
||||||
---@param ... any additional arguments to format into the message
|
|
||||||
function M:info(message, ...)
|
|
||||||
self:log(levels.INFO, message, ...)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Logs a warn level message to the Wezterm's debug overlay.
|
|
||||||
---
|
|
||||||
---Logs the given string to the Wezterm's debug overlay. The message can be either a
|
|
||||||
---simple string or a format string. The latter must only use `%s` placeholders since the
|
|
||||||
---function already takes care of stringifing any non-string value.
|
|
||||||
---
|
|
||||||
---@param message string log message or format string
|
|
||||||
---@param ... any additional arguments to format into the message
|
|
||||||
function M:warn(message, ...)
|
|
||||||
self:log(levels.WARN, message, ...)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Logs an error level message to the Wezterm's debug overlay.
|
|
||||||
---
|
|
||||||
---Logs the given string to the Wezterm's debug overlay. The message can be either a
|
|
||||||
---simple string or a format string. The latter must only use `%s` placeholders since the
|
|
||||||
---function already takes care of stringifing any non-string value.
|
|
||||||
---
|
|
||||||
---@param message string log message or format string
|
|
||||||
---@param ... any additional arguments to format into the message
|
|
||||||
function M:error(message, ...)
|
|
||||||
self:log(levels.ERROR, message, ...)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,266 +0,0 @@
|
|||||||
---@module "utils.class.picker"
|
|
||||||
---@author sravioli
|
|
||||||
---@license GNU-GPLv3
|
|
||||||
|
|
||||||
---@diagnostic disable: undefined-field
|
|
||||||
|
|
||||||
local Utils = require "utils"
|
|
||||||
local fs, Logger = Utils.fn.fs, Utils.class.logger
|
|
||||||
|
|
||||||
local wt = require "wezterm"
|
|
||||||
local config_dir = wt.config_dir
|
|
||||||
|
|
||||||
-- {{{1 Meta
|
|
||||||
|
|
||||||
--~ {{{2 wt.Window
|
|
||||||
|
|
||||||
---@class wt.Window
|
|
||||||
---@field active_key_table function
|
|
||||||
---@field active_pane function
|
|
||||||
---@field active_tab function
|
|
||||||
---@field active_workspace function
|
|
||||||
---@field composition_status function
|
|
||||||
---@field copy_to_clipboard function
|
|
||||||
---@field current_event function
|
|
||||||
---@field effective_config function
|
|
||||||
---@field focus function
|
|
||||||
---@field get_appearance function
|
|
||||||
---@field get_config_overrides function
|
|
||||||
---@field get_dimensions function
|
|
||||||
---@field get_selection_escapes_for_pane function
|
|
||||||
---@field get_selection_text_for_pane function
|
|
||||||
---@field is_focused function
|
|
||||||
---@field keyboard_modifiers function
|
|
||||||
---@field leader_is_active function
|
|
||||||
---@field maximize function
|
|
||||||
---@field mux_window function
|
|
||||||
---@field perform_action function
|
|
||||||
---@field restore function
|
|
||||||
---@field set_config_overrides function
|
|
||||||
---@field set_inner_size function
|
|
||||||
---@field set_left_status function
|
|
||||||
---@field set_position function
|
|
||||||
---@field set_right_status function
|
|
||||||
---@field toast_notification function
|
|
||||||
---@field toggle_fullscreen function
|
|
||||||
---@field window_id function
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 wt.Pane
|
|
||||||
|
|
||||||
---@class wt.Pane
|
|
||||||
---@field activate function
|
|
||||||
---@field get_current_working_dir function
|
|
||||||
---@field get_cursor_position function
|
|
||||||
---@field get_dimensions function
|
|
||||||
---@field get_domain_name function
|
|
||||||
---@field get_foreground_process_info function
|
|
||||||
---@field get_foreground_process_name function
|
|
||||||
---@field get_lines_as_escapes function
|
|
||||||
---@field get_lines_as_text function
|
|
||||||
---@field get_logical_lines_as_text function
|
|
||||||
---@field get_metadata function
|
|
||||||
---@field get_semantic_zone_at function
|
|
||||||
---@field get_semantic_zones function
|
|
||||||
---@field get_text_from_region function
|
|
||||||
---@field get_text_from_semantic_zone function
|
|
||||||
---@field get_title function
|
|
||||||
---@field get_tty_name function
|
|
||||||
---@field get_user_vars function
|
|
||||||
---@field has_unseen_output function
|
|
||||||
---@field inject_output function
|
|
||||||
---@field is_alt_screen_active function
|
|
||||||
---@field move_to_new_tab function
|
|
||||||
---@field move_to_new_window function
|
|
||||||
---@field mux_pane function
|
|
||||||
---@field pane_id function
|
|
||||||
---@field paste function
|
|
||||||
---@field send_paste function
|
|
||||||
---@field send_text function
|
|
||||||
---@field split function
|
|
||||||
---@field tab function
|
|
||||||
---@field window function
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 Utils.Class.Picker
|
|
||||||
|
|
||||||
---@alias Module PickList
|
|
||||||
---@alias Choice { id: string, label: string|table }
|
|
||||||
---@alias Choice.private { module: Module, value: Choice }
|
|
||||||
|
|
||||||
---@class Utils.Class.Picker
|
|
||||||
---@field subdir string name of the picker module
|
|
||||||
---@field title string defaults to `"Pick a value"`
|
|
||||||
---@field choices? Choice[] defaults to `{}`
|
|
||||||
---@field __choices? Choice.private[] defaults to `{}`
|
|
||||||
---@field fuzzy? boolean defaults to `false`
|
|
||||||
---@field alphabet? string defaults to `"1234567890abcdefghilmnopqrstuvwxyz"`
|
|
||||||
---@field description? string defaults to `"Select an item."`
|
|
||||||
---@field fuzzy_description? string defaults to `"Fuzzy matching: "`
|
|
||||||
---@field comp? fun(a, b): boolean function to sort choices
|
|
||||||
---@field build? fun(__choices: Choice.private[], comp: function, opts: { window: wt.Window, pane: wt.Pane }): Choice[]
|
|
||||||
---@field new? fun(opts: Utils.Class.Picker): Utils.Class.Picker
|
|
||||||
---@field private log? Utils.Class.Logger
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
--~ {{{2 PickList.Opts
|
|
||||||
|
|
||||||
---@alias PickList.Opts { window: wt.Window, pane: wt.Pane, id: string|nil, label: string|nil }
|
|
||||||
---@alias PickList.getReturn string|{ id: string|nil, label: string|table|nil }
|
|
||||||
|
|
||||||
---@class PickList
|
|
||||||
---@field get fun(): PickList.getReturn
|
|
||||||
---@field activate fun(Config: table, opts: PickList.Opts): nil
|
|
||||||
|
|
||||||
--~ }}}
|
|
||||||
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{1 Helper functions
|
|
||||||
|
|
||||||
local h = {}
|
|
||||||
|
|
||||||
---Normalize an item to the `choices` format
|
|
||||||
---@param item string|number
|
|
||||||
---@return table normalized_item
|
|
||||||
function h.normalize(item)
|
|
||||||
return type(item) == "table" and item or { id = item }
|
|
||||||
end
|
|
||||||
|
|
||||||
---Determines whether the given item is an array or not.
|
|
||||||
---@param item PickList.getReturn
|
|
||||||
---@return boolean result whether or not the item is an array
|
|
||||||
function h.is_array(item)
|
|
||||||
return type(item) == "table" and item[1] ~= nil
|
|
||||||
end
|
|
||||||
|
|
||||||
---Build the choices table
|
|
||||||
---@param items table
|
|
||||||
---@param comp? fun(a, b): boolean
|
|
||||||
---@return Choice[] choices
|
|
||||||
function h.build(items, comp)
|
|
||||||
local choices = {}
|
|
||||||
for _, item in pairs(items) do
|
|
||||||
choices[#choices + 1] = { id = item.value.id, label = item.value.label }
|
|
||||||
end
|
|
||||||
|
|
||||||
table.sort(choices, comp or function(a, b)
|
|
||||||
return a.id < b.id
|
|
||||||
end)
|
|
||||||
|
|
||||||
return choices
|
|
||||||
end
|
|
||||||
|
|
||||||
---Converts a file path to a lua require path
|
|
||||||
---@param path string
|
|
||||||
---@return string require_path
|
|
||||||
function h.path_to_module(path)
|
|
||||||
return (path:sub(#config_dir + 2):gsub("%.lua$", ""):gsub(fs.path_separator, "."))
|
|
||||||
end
|
|
||||||
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
---@class Utils.Class.Picker
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
---Creates a new picker object
|
|
||||||
---@param opts Utils.Class.Picker
|
|
||||||
---@return Utils.Class.Picker Picker
|
|
||||||
function M.new(opts)
|
|
||||||
local self = setmetatable({}, { __index = M })
|
|
||||||
self.title = opts.title or "Pick a value"
|
|
||||||
self.choices = {}
|
|
||||||
self.__choices = {}
|
|
||||||
self.log = Logger:new("Picker > " .. self.title)
|
|
||||||
|
|
||||||
self.comp = opts.comp
|
|
||||||
self.build = opts.build or h.build
|
|
||||||
|
|
||||||
self.fuzzy = opts.fuzzy or false
|
|
||||||
self.alphabet = opts.alphabet or "1234567890abcdefghilmnopqrstuvwxyz"
|
|
||||||
self.description = opts.description or "Select an item."
|
|
||||||
self.fuzzy_description = opts.fuzzy_description or "Fuzzy matching: "
|
|
||||||
|
|
||||||
local dir = fs.pathconcat(config_dir, "picker", "assets", opts.subdir)
|
|
||||||
local paths = fs.ls_dir(dir)
|
|
||||||
if not paths then
|
|
||||||
self.log:error("Cannot read files from %s", dir)
|
|
||||||
return {}
|
|
||||||
end
|
|
||||||
for i = 1, #paths do
|
|
||||||
self:register(h.path_to_module(paths[i]))
|
|
||||||
end
|
|
||||||
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
|
|
||||||
---Registers the module by requiring it and filling the `__choices` table
|
|
||||||
---@param name string the lua require path to the module
|
|
||||||
function M:register(name)
|
|
||||||
---@class PickList
|
|
||||||
local module = require(name)
|
|
||||||
local result = module.get()
|
|
||||||
|
|
||||||
if h.is_array(result) then
|
|
||||||
for i = 1, #result do
|
|
||||||
local item = h.normalize(result[i])
|
|
||||||
self.__choices[item.id] =
|
|
||||||
{ module = module, value = { id = item.id, label = item.label } }
|
|
||||||
self.log:debug("registered item: %s", self.__choices[item.id])
|
|
||||||
end
|
|
||||||
else
|
|
||||||
---@cast result string
|
|
||||||
result = h.normalize(result)
|
|
||||||
self.__choices[result.id] =
|
|
||||||
{ module = module, value = { id = result.id, label = result.label } }
|
|
||||||
self.log:debug("registered item: %s", self.__choices[result.id])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
---Activates the selected module
|
|
||||||
---@param Overrides table config overrides
|
|
||||||
---@param opts PickList.Opts
|
|
||||||
---@return nil
|
|
||||||
function M:select(Overrides, opts)
|
|
||||||
local choice = self.__choices[opts.id]
|
|
||||||
if not choice then
|
|
||||||
return self.log:error("%s is not defined for %s", opts.id, self.title)
|
|
||||||
end
|
|
||||||
|
|
||||||
choice.module.activate(Overrides, opts)
|
|
||||||
end
|
|
||||||
|
|
||||||
---Invoke the picker.
|
|
||||||
---@return nil
|
|
||||||
function M:pick()
|
|
||||||
return wt.action_callback(function(window, pane)
|
|
||||||
local opts = { window = window, pane = pane }
|
|
||||||
window:perform_action(
|
|
||||||
wt.action.InputSelector {
|
|
||||||
action = wt.action_callback(function(inner_window, _, id, label)
|
|
||||||
if not id and not label then
|
|
||||||
self.log:error "cancelled by user"
|
|
||||||
else
|
|
||||||
local callback_opts = { window = window, pane = pane, id = id, label = label }
|
|
||||||
self.log:info("applying %s", id)
|
|
||||||
local Overrides = inner_window:get_config_overrides() or {}
|
|
||||||
self:select(Overrides, callback_opts)
|
|
||||||
window:set_config_overrides(Overrides)
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
title = self.title,
|
|
||||||
choices = self.build(self.__choices, self.comp, opts),
|
|
||||||
fuzzy = self.fuzzy,
|
|
||||||
description = self.description,
|
|
||||||
fuzzy_description = self.fuzzy_description,
|
|
||||||
alphabet = self.alphabet,
|
|
||||||
},
|
|
||||||
pane
|
|
||||||
)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||