chore: import upstream snapshot with attribution
@@ -0,0 +1,8 @@
|
||||
# Link runtime statically so Visual C++ Redist is not required
|
||||
[target.'cfg(all(windows, target_env = "msvc"))']
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
[profile.ci]
|
||||
inherits = "dev"
|
||||
opt-level = 0
|
||||
debug = false
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"image": "ghcr.io/lapce/lapdev-devcontainer-lapce",
|
||||
"forwardPorts": [6080],
|
||||
"portsAttributes": {
|
||||
"6080": {
|
||||
"label": "VNC",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.github
|
||||
.vscode
|
||||
.lapce
|
||||
docs
|
||||
extra/linux/docker
|
||||
extra/macos
|
||||
extra/windows
|
||||
target
|
||||
lapce.spec
|
||||
@@ -0,0 +1,9 @@
|
||||
# Auto detect text files and perform normalization
|
||||
* text=auto eol=lf
|
||||
|
||||
*.rs text diff=rust eol=lf
|
||||
*.toml text diff=toml eol=lf
|
||||
Cargo.lock text eol=lf
|
||||
|
||||
*.sh text eol=lf
|
||||
*.ps1 text eol=crlf
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: 'C-bug'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
## Lapce Version
|
||||
|
||||
The Lapce version you are using, which can be found in "About Lapce" at the top right settings icon.
|
||||
|
||||
## System information
|
||||
|
||||
the operating system used, including its version, e.g. Windows 10, Ubuntu 18.04
|
||||
|
||||
## Describe the bug
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
## Additional information
|
||||
|
||||
Other information that can be used to further reproduce or isolate the problem.
|
||||
This commonly includes:
|
||||
|
||||
- screenshots
|
||||
- logs
|
||||
- theories about what might be going wrong
|
||||
- workarounds that you used
|
||||
@@ -0,0 +1,11 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Lapce community on Discord
|
||||
url: https://discord.gg/n8tGJ6Rn6D
|
||||
about: Please ask and answer questions here.
|
||||
- name: Lapce community on Matrix
|
||||
url: https://matrix.to/#/#lapce-editor:matrix.org
|
||||
about: Please ask and answer questions here.
|
||||
- name: Lapce documentation
|
||||
url: https://docs.lapce.dev/
|
||||
about: Documentation for Lapce
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: 'C-feature'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
## 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.
|
||||
@@ -0,0 +1 @@
|
||||
- [ ] Added an entry to `CHANGELOG.md` if this change could be valuable to users
|
||||
@@ -0,0 +1,52 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
groups:
|
||||
all-dependencies:
|
||||
patterns:
|
||||
- "*"
|
||||
- package-ecosystem: "cargo"
|
||||
directory: "/"
|
||||
open-pull-requests-limit: 10
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
groups:
|
||||
all-dependencies:
|
||||
patterns:
|
||||
- "*"
|
||||
exclude-patterns:
|
||||
- "wasmtime*"
|
||||
- "wasi-common"
|
||||
- "wasi-experimental-http-wasmtime"
|
||||
- "tracing*"
|
||||
- "strum*"
|
||||
- "tree-sitter"
|
||||
- "floem*"
|
||||
wasmtime:
|
||||
patterns:
|
||||
- "wasmtime*"
|
||||
- "wasi-common"
|
||||
- "wasi-experimental-http-wasmtime"
|
||||
toml:
|
||||
patterns:
|
||||
- "toml"
|
||||
- "toml_edit"
|
||||
strum:
|
||||
patterns:
|
||||
- "strum"
|
||||
- "strum_macros"
|
||||
tracing:
|
||||
patterns:
|
||||
- "tracing*"
|
||||
floem:
|
||||
patterns:
|
||||
- "floem*"
|
||||
tree-sitter:
|
||||
patterns:
|
||||
- "tree-sitter"
|
||||
windows:
|
||||
patterns:
|
||||
- "windows*"
|
||||
@@ -0,0 +1,119 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
paths:
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- lapce-**
|
||||
- .github/workflows/ci.yml
|
||||
workflow_dispatch:
|
||||
|
||||
name: CI
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Rust on ${{ matrix.os }}
|
||||
if: github.event.pull_request.draft == false
|
||||
needs: [fmt, clippy]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Install dependencies on Ubuntu
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: sudo make ubuntu-deps
|
||||
|
||||
- name: Update toolchain
|
||||
run: |
|
||||
rustup update --no-self-update
|
||||
|
||||
- name: Cache Rust dependencies
|
||||
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||
|
||||
- name: Fetch dependencies
|
||||
run: cargo fetch --locked
|
||||
|
||||
- name: Build
|
||||
run: cargo build --profile ci --frozen
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-${{ matrix.os }}
|
||||
path: |
|
||||
target/ci/lapce*
|
||||
retention-days: 1
|
||||
|
||||
- name: Build as portable
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
run: cargo build --profile ci --frozen --features lapce-app/portable
|
||||
|
||||
- name: Free space on Windows
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
run: cargo clean
|
||||
|
||||
- name: Run doc tests
|
||||
run: cargo test --profile ci --doc --workspace
|
||||
|
||||
fmt:
|
||||
name: Formatting and spellchecking
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Update toolchain & add rustfmt
|
||||
run: |
|
||||
rustup update
|
||||
rustup component add rustfmt
|
||||
|
||||
- name: Run rustfmt
|
||||
run: cargo fmt --all --check
|
||||
|
||||
- name: Spell Check Repo
|
||||
uses: crate-ci/typos@02ea592e44b3a53c302f697cddca7641cd051c3d
|
||||
|
||||
clippy:
|
||||
name: Clippy on ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Update toolchain & add clippy
|
||||
run: |
|
||||
rustup update --no-self-update
|
||||
rustup component add clippy
|
||||
|
||||
- name: Install dependencies on Ubuntu
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: sudo make ubuntu-deps
|
||||
|
||||
- name: Cache Rust dependencies
|
||||
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||
|
||||
- name: Fetch dependencies
|
||||
run: cargo fetch --locked
|
||||
|
||||
- name: Run clippy
|
||||
run: cargo clippy --profile ci
|
||||
@@ -0,0 +1,378 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 0 * * *
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag_name:
|
||||
description: "Tag name for release"
|
||||
required: false
|
||||
default: nightly
|
||||
push:
|
||||
tags: ["v[0-9]+.[0-9]+.[0-9]+*"]
|
||||
pull_request:
|
||||
paths:
|
||||
# trigger release workflow only if this file changed
|
||||
- .github/workflows/release.yml
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
tagname:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
tag_name: ${{ steps.tag.outputs.tag }}
|
||||
steps:
|
||||
- id: vars
|
||||
shell: bash
|
||||
run: echo "sha_short=${GITHUB_SHA::7}" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- if: github.event_name == 'workflow_dispatch'
|
||||
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" | tee -a $GITHUB_ENV
|
||||
|
||||
- if: github.event_name == 'schedule' || github.event_name == 'pull_request'
|
||||
run: echo 'TAG_NAME=nightly-${{ steps.vars.outputs.sha_short }}' | tee -a $GITHUB_ENV
|
||||
|
||||
- if: github.event_name == 'push'
|
||||
run: |
|
||||
TAG_NAME=${{ github.ref }}
|
||||
echo "TAG_NAME=${TAG_NAME#refs/tags/}" | tee -a $GITHUB_ENV
|
||||
|
||||
- id: tag
|
||||
run: echo "tag=$TAG_NAME" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
needs: tagname
|
||||
env:
|
||||
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Update rust
|
||||
run: rustup update --no-self-update
|
||||
|
||||
- name: Fetch dependencies
|
||||
run: cargo fetch --locked
|
||||
|
||||
- name: Build
|
||||
run: cargo build --frozen --profile release-lto
|
||||
|
||||
- name: Crate msi installer
|
||||
run: |
|
||||
candle.exe -arch "x64" -ext WixUIExtension -ext WixUtilExtension \
|
||||
-out "./lapce.wixobj" "extra/windows/wix/lapce.wxs"
|
||||
|
||||
light.exe -ext WixUIExtension -ext WixUtilExtension \
|
||||
-out "./Lapce-windows.msi" -sice:ICE61 -sice:ICE91 \
|
||||
"./lapce.wixobj"
|
||||
|
||||
- name: Create portable
|
||||
shell: pwsh
|
||||
run: |
|
||||
cargo build --profile release-lto --features lapce-app/portable
|
||||
Compress-Archive ./target/release-lto/lapce.exe ./Lapce-windows-portable.zip
|
||||
|
||||
- name: Create lapce-proxy archive
|
||||
shell: pwsh
|
||||
run: |
|
||||
$file = [System.IO.File]::Open((Join-Path $PWD '.\target\release-lto\lapce-proxy.exe'), [System.IO.FileMode]::Open)
|
||||
$archive = [System.IO.File]::Create((Join-Path $PWD '.\lapce-proxy-windows-x86_64.gz'))
|
||||
$compressor = [System.IO.Compression.GZipStream]::new($archive, [System.IO.Compression.CompressionMode]::Compress)
|
||||
$file.CopyTo($compressor)
|
||||
Start-Sleep -Seconds 10
|
||||
$compressor.close()
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-windows
|
||||
path: |
|
||||
./lapce-proxy-windows-*.gz
|
||||
./Lapce-windows-portable.zip
|
||||
./Lapce-windows.msi
|
||||
retention-days: 1
|
||||
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tagname
|
||||
env:
|
||||
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
- name: Build deb packages
|
||||
run: |
|
||||
docker buildx create --driver=docker-container --use
|
||||
docker buildx bake --pull ubuntu-focal-binary
|
||||
|
||||
- name: Gzip
|
||||
run: |
|
||||
mkdir Lapce
|
||||
cp ./target/linux_amd64/lapce Lapce/
|
||||
tar -zcvf ./lapce-linux-amd64.tar.gz Lapce
|
||||
|
||||
rm -rf Lapce
|
||||
|
||||
mkdir Lapce
|
||||
cp ./target/linux_arm64/lapce Lapce/
|
||||
tar -zcvf ./lapce-linux-arm64.tar.gz Lapce
|
||||
|
||||
- name: Fetch dependencies
|
||||
run: cargo fetch --locked
|
||||
|
||||
- name: Vendor dependencies
|
||||
run: |
|
||||
cargo vendor --frozen > ./vendor-config.toml
|
||||
mv ./vendor-config.toml ./vendor/
|
||||
tar -zcf vendor.tar.gz ./vendor/
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-linux
|
||||
path: |
|
||||
./lapce-linux-*.tar.gz
|
||||
./vendor.tar.gz
|
||||
retention-days: 1
|
||||
|
||||
deb:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tagname
|
||||
env:
|
||||
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os-name: debian
|
||||
os-version: bookworm
|
||||
- os-name: debian
|
||||
os-version: bullseye
|
||||
- os-name: ubuntu
|
||||
os-version: jammy
|
||||
- os-name: ubuntu
|
||||
os-version: noble
|
||||
- os-name: ubuntu
|
||||
os-version: plucky
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Build deb packages
|
||||
run: |
|
||||
docker buildx create --driver=docker-container --use
|
||||
docker buildx bake --pull ${{ matrix.os-name }}-${{ matrix.os-version }}-package
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-${{ matrix.os-name }}-${{ matrix.os-version }}
|
||||
path: |
|
||||
./target/linux_*/*
|
||||
retention-days: 1
|
||||
|
||||
rpm:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tagname
|
||||
env:
|
||||
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os-name: fedora
|
||||
os-version: 42
|
||||
- os-name: fedora
|
||||
os-version: 43
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Build rpm packages
|
||||
run: |
|
||||
docker buildx create --driver=docker-container --use
|
||||
docker buildx bake --pull ${{ matrix.os-name }}-${{ matrix.os-version }}-package
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-${{ matrix.os-name }}-${{ matrix.os-version }}
|
||||
path: |
|
||||
./target/*
|
||||
retention-days: 1
|
||||
|
||||
lapce-proxy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tagname
|
||||
env:
|
||||
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os-name: alpine
|
||||
os-version: "" # uses latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a
|
||||
|
||||
- name: Build lapce-proxy binary
|
||||
run: |
|
||||
docker buildx create --driver=docker-container --use
|
||||
docker buildx bake --pull ${{ matrix.os-name }}-${{ matrix.os-version }}
|
||||
|
||||
- name: Gzip
|
||||
run: |
|
||||
gzip -c ./target/linux_amd64/lapce-proxy > ./lapce-proxy-linux-x86_64.gz
|
||||
gzip -c ./target/linux_arm64/lapce-proxy > ./lapce-proxy-linux-aarch64.gz
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-proxy-linux
|
||||
path: |
|
||||
./lapce-proxy-linux-*.gz
|
||||
retention-days: 1
|
||||
|
||||
macos:
|
||||
runs-on: macos-15
|
||||
needs: tagname
|
||||
env:
|
||||
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
|
||||
|
||||
NOTARIZE_USERNAME: ${{ secrets.NOTARIZE_USERNAME }}
|
||||
NOTARIZE_PASSWORD: ${{ secrets.NOTARIZE_PASSWORD }}
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Install ARM target
|
||||
run: rustup update && rustup target add x86_64-apple-darwin
|
||||
|
||||
- name: Import Certificate
|
||||
uses: Apple-Actions/import-codesign-certs@b610f78488812c1e56b20e6df63ec42d833f2d14
|
||||
with:
|
||||
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
|
||||
p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
|
||||
|
||||
- name: Fetch dependencies
|
||||
run: cargo fetch --locked
|
||||
|
||||
- name: Make DMG
|
||||
run: make dmg-universal
|
||||
|
||||
- name: Rename
|
||||
run: |
|
||||
cp ./target/release-lto/macos/Lapce.dmg ./target/release-lto/macos/Lapce-macos.dmg
|
||||
|
||||
- name: Gzip lapce-proxy
|
||||
run: |
|
||||
gzip -c ./target/x86_64-apple-darwin/release-lto/lapce-proxy > ./target/release-lto/macos/lapce-proxy-darwin-x86_64.gz
|
||||
gzip -c ./target/aarch64-apple-darwin/release-lto/lapce-proxy > ./target/release-lto/macos/lapce-proxy-darwin-aarch64.gz
|
||||
|
||||
- name: Notarize Release Build
|
||||
uses: lando/notarize-action@b5c3ef16cf2fbcf2af26dc58c90255ec242abeed
|
||||
with:
|
||||
product-path: "./target/release-lto/macos/Lapce-macos.dmg"
|
||||
appstore-connect-username: ${{ secrets.NOTARIZE_USERNAME }}
|
||||
appstore-connect-password: ${{ secrets.NOTARIZE_PASSWORD }}
|
||||
appstore-connect-team-id: CYSGAZFR8D
|
||||
primary-bundle-id: "io.lapce"
|
||||
verbose: true
|
||||
|
||||
- name: "Staple Release Build"
|
||||
uses: lapce/xcode-staple@062485d6eeafe841c18a412f012e80f49e23c517
|
||||
with:
|
||||
product-path: "./target/release-lto/macos/Lapce-macos.dmg"
|
||||
|
||||
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
|
||||
with:
|
||||
name: lapce-macos
|
||||
path: |
|
||||
./target/release-lto/macos/lapce-proxy-darwin-*.gz
|
||||
./target/release-lto/macos/Lapce-macos.dmg
|
||||
retention-days: 3
|
||||
|
||||
publish:
|
||||
needs:
|
||||
- linux
|
||||
- lapce-proxy
|
||||
- deb
|
||||
- rpm
|
||||
- windows
|
||||
- macos
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GH_REPO: ${{ github.repository }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
# Must perform checkout first, since it deletes the target directory
|
||||
# before running, and would therefore delete the downloaded artifacts
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
|
||||
|
||||
- if: github.event_name == 'workflow_dispatch'
|
||||
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" | tee -a $GITHUB_ENV
|
||||
|
||||
- if: github.event_name == 'schedule'
|
||||
run: echo 'TAG_NAME=nightly' | tee -a $GITHUB_ENV
|
||||
|
||||
- if: github.event_name == 'push'
|
||||
run: |
|
||||
TAG_NAME=${{ github.ref }}
|
||||
echo "TAG_NAME=${TAG_NAME#refs/tags/}" | tee -a $GITHUB_ENV
|
||||
|
||||
- if: env.TAG_NAME == 'nightly'
|
||||
run: |
|
||||
{
|
||||
echo 'SUBJECT=Lapce development build'
|
||||
echo 'PRERELEASE=--prerelease'
|
||||
} | tee -a $GITHUB_ENV
|
||||
|
||||
- if: env.TAG_NAME == 'nightly' && github.event_name != 'pull_request'
|
||||
name: Re-Tag nightly
|
||||
run: |
|
||||
gh release delete nightly --yes || true
|
||||
git push origin :nightly || true
|
||||
|
||||
- if: env.TAG_NAME != 'nightly'
|
||||
run: |
|
||||
{
|
||||
echo 'SUBJECT=Lapce release build'
|
||||
echo 'PRERELEASE='
|
||||
} | tee -a $GITHUB_ENV
|
||||
|
||||
- name: Publish release
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
DEBUG: api
|
||||
run: |
|
||||
gh release create $TAG_NAME $PRERELEASE --title "$TAG_NAME" --target $GITHUB_SHA \
|
||||
lapce-macos/* \
|
||||
lapce-linux/* \
|
||||
lapce-debian*/*/* \
|
||||
lapce-ubuntu*/*/* \
|
||||
lapce-fedora*/* \
|
||||
lapce-proxy-linux/* \
|
||||
lapce-windows/*
|
||||
@@ -0,0 +1,14 @@
|
||||
.vscode
|
||||
.lapce
|
||||
.idea
|
||||
.fleet
|
||||
shell.nix
|
||||
lib/
|
||||
target/
|
||||
core/languages/
|
||||
vendor/
|
||||
|
||||
.DS_Store
|
||||
*.patch
|
||||
*.tar
|
||||
*.gz
|
||||
@@ -0,0 +1,4 @@
|
||||
max_width = 85
|
||||
# below requires nightly
|
||||
# imports_granularity = "Crate"
|
||||
# group_imports = "StdExternalCrate"
|
||||
@@ -0,0 +1,13 @@
|
||||
include = ["**/*.toml"]
|
||||
exclude = ["lapce-proxy/src/**"]
|
||||
|
||||
[[rule]]
|
||||
include = ["**/Cargo.toml", ".taplo.toml", "Cargo.toml"]
|
||||
|
||||
[rule.formatting]
|
||||
align_entries = true
|
||||
align_comments = true
|
||||
array_trailing_comma = true
|
||||
trailing_newline = true
|
||||
column_width = 100
|
||||
inline_table_expand = false
|
||||
@@ -0,0 +1,416 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Features/Changes
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
## 0.4.6
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- Add `.har` file extension as recognised JSON language (<https://github.com/lapce/lapce/pull/3853>)
|
||||
- Remove builds for Ubuntu Oracular, add Ubuntu Plucky (<https://github.com/lapce/lapce/pull/3808>)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix mouse wheel scrolling when viewing diff (<https://github.com/lapce/lapce/issues/3821>)
|
||||
- Fix editor tabs not selectable while appearing selectable (<https://github.com/lapce/lapce/pull/3818>)
|
||||
- Fix flickering when reordering editor tabs (<https://github.com/lapce/lapce/pull/3818>)
|
||||
- Fix diff viewer to scroll using mouse (<https://github.com/lapce/lapce/issues/3821>)
|
||||
- Fix updating window scale when it changes via settings tab (<https://github.com/lapce/lapce/issues/3832>)
|
||||
- Fix vendor tarball not being included in GitHub release
|
||||
- Fix cursor style inconsistencies (<https://github.com/lapce/lapce/pull/3819>)
|
||||
|
||||
## 0.4.5
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix missing/incorrect metadata for Linux packages using AppStream metainfo
|
||||
- Fix incorrect version in macOS/Windows package metadata
|
||||
- Fix rendering issues when using custom scale display (<https://github.com/lapce/lapce/issues/3795>)
|
||||
|
||||
## 0.4.4
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- Update Fedora releases to use 41/42
|
||||
- Update Alpine to latest (used for building portable lapce-proxy)
|
||||
- Remove Ubuntu Focal (20.04)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix dropdown menu disappearing after releasing mouse button (<https://github.com/lapce/lapce/issues/3786>)
|
||||
- Fix issue with cargo vendoring due to duplicate `dpi` crate
|
||||
|
||||
## 0.4.3
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- Add Ubuntu 24.04 LTS (noble) build
|
||||
- Use Diff syntax for files with .diff/.patch extensions by default.
|
||||
- Update titles of file dialogs for better clarity
|
||||
- Bump to Rust 2024 Edition
|
||||
- Implement "Find References" panel
|
||||
- Implement "Go To Implementation" panel
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix pointer event not working on plugin panel
|
||||
- Fix rename/new file editor in file explorer is too small
|
||||
|
||||
## 0.4.2
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- Implement "Run in terminal"
|
||||
- Implement document symbols in a panel
|
||||
- Implement "Go To Location" functionality in the Diff editor.
|
||||
- Implement on screen find which is similar to `f` in vim but for the whole screen.
|
||||
- Make file explorer horizontal scrollable
|
||||
- Implement "Reveal in system file explorer"
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix markdown syntax highlighting
|
||||
- Fix click issue on window error message
|
||||
|
||||
## 0.4.1
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- Add fedora builds
|
||||
- Finish tree sitter dynamic library support by downloading from https://github.com/lapce/tree-sitter-grammars
|
||||
- Saves scale configuration in settings to restore at startup
|
||||
- text in ui can be selected and copied
|
||||
- add right click context menu for editor tab
|
||||
- terminal: added support for Alt+ some character input
|
||||
- Terminal: right-click to add "clear all" function
|
||||
- terminal: double-click to maximize bottom
|
||||
- initial lsp code lens support for rust-analyzer
|
||||
- Context menu for "reveal file in explorer"
|
||||
- support rust-analyzer's notification "experimental/serverStatus"
|
||||
- jump to definition support in Inlay Hints
|
||||
- "Show Call Hierarchy" support
|
||||
- Add proxy support and retry to all HTTPS GET requests.
|
||||
- Implement the drag-and-drop to open file/folder
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#3203](https://github.com/lapce/lapce/pull/3203): Fallback to default theme is theme key is not found
|
||||
- use windows subsystem to prevent console running
|
||||
- reimplement gotodefinition on cmd/ctrl+click
|
||||
- fix crash on tinyskia renderer
|
||||
- show file status for scratch documents
|
||||
- fix crash due to locale_config
|
||||
|
||||
## 0.4.0
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#2723](https://github.com/lapce/lapce/pull/2723): Line wrapping based on width (no column-based yet)
|
||||
- [#1277](https://github.com/lapce/lapce/pull/1277): Error message prompted on missing git user.email and/or user.name
|
||||
- [#2910](https://github.com/lapce/lapce/pull/2910): Files can be compared in the diff editor
|
||||
- [#2918](https://github.com/lapce/lapce/pull/2918): Allow searching the shortcuts overview by shortcut (e.g. "Ctrl+P") or when condition (e.g. "list_focus")
|
||||
- [#2955](https://github.com/lapce/lapce/pull/2955): Using glob patterns to hide files or directories in explorer
|
||||
- [#3026](https://github.com/lapce/lapce/pull/3026): Add missing file explorer context menu entries
|
||||
- [#3047](https://github.com/lapce/lapce/pull/3047): Add support for different CrLf/Lf line endings per-file
|
||||
- [#3053](https://github.com/lapce/lapce/pull/3053): Add tooltips to various places
|
||||
- [#3069](https://github.com/lapce/lapce/pull/3069): Allow color variables for themes
|
||||
- [#3086](https://github.com/lapce/lapce/pull/3086): Add folding to panels
|
||||
- [#3095](https://github.com/lapce/lapce/pull/3095): Add option to hide the Open Editors section in the explorer
|
||||
- [#3096](https://github.com/lapce/lapce/pull/3096): Add source control status coloring to file explorer
|
||||
- [#2989](https://github.com/lapce/lapce/pull/2989): Add building packages for linux distros
|
||||
- [#3123](https://github.com/lapce/lapce/pull/3123): Swap sled to plain text file for db
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#2779](https://github.com/lapce/lapce/pull/2779): Fix files detection on fresh git/VCS repository
|
||||
- [#3031](https://github.com/lapce/lapce/pull/3031): Fix find not receiving inputs when clicked
|
||||
- [#3142](https://github.com/lapce/lapce/pull/3142): Fix terminal default profile saving incorrectly
|
||||
- [#3158](https://github.com/lapce/lapce/pull/3158): Fix ShowHover command for showing hover with keybind
|
||||
- [#3119](https://github.com/lapce/lapce/pull/3119): Fix non US keyboard layout
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Features/Changes
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#2754](https://github.com/lapce/lapce/pull/2754): Don't mark nonexistent files as read only (fix saving new files)
|
||||
- [#2819](https://github.com/lapce/lapce/issues/2819): `Save Without Formatting` doesn't save the file
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#2190](https://github.com/lapce/lapce/pull/2190): Rewrite with Floem UI
|
||||
- [#2425](https://github.com/lapce/lapce/pull/2425): Reimplement completion lens
|
||||
- [#2498](https://github.com/lapce/lapce/pull/2498): Show Lapce as an option when doing "Open With..." on Linux
|
||||
- [#2549](https://github.com/lapce/lapce/pull/2549): Implement multi-line vim-motion yank and delete (`3dd`, `2yy`, etc.)
|
||||
- [#2553](https://github.com/lapce/lapce/pull/2553): Implement search and replace
|
||||
- [#1809](https://github.com/lapce/lapce/pull/1809): Implement debug adapter protocol
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#2650](https://github.com/lapce/lapce/pull/2650): Inform language servers that Lapce supports LSP diagnostics
|
||||
|
||||
## 0.2.8
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1964](https://github.com/lapce/lapce/pull/1964): Add option to open files at line/column
|
||||
- [#2403](https://github.com/lapce/lapce/pull/2403): Add basic Vim marks feature
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
## 0.2.7
|
||||
|
||||
### Features/Changes
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#2209](https://github.com/lapce/lapce/pull/2209): Fix macOS crashes
|
||||
- [#2228](https://github.com/lapce/lapce/pull/2228): Fix `.desktop` entry to properly associate with Lapce on Wayland
|
||||
|
||||
## 0.2.6
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- [#1820](https://github.com/lapce/lapce/pull/1820): Add remote svg icon colour to theme, disable plugin settings when none are available
|
||||
- [#1988](https://github.com/lapce/lapce/pull/1987): Replace modal status background with background/foreground theme keys
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1899](https://github.com/lapce/lapce/pull/1899): Improve sorting files with numbers
|
||||
- [#1831](https://github.com/lapce/lapce/pull/1831): Plugin settings shown on right click
|
||||
- [#1830](https://github.com/lapce/lapce/pull/1830): Adds Clojure language support
|
||||
- [#1835](https://github.com/lapce/lapce/pull/1835): Add mouse keybinds
|
||||
- [#1856](https://github.com/lapce/lapce/pull/1856): Highlight git/VCS modified files in explorer, palette, and buffer tabs
|
||||
- [#1574](https://github.com/lapce/lapce/pull/1574): Panel sections can be expanded/collapsed
|
||||
- [#1938](https://github.com/lapce/lapce/pull/1938): Use dropdown for theme selection in settings
|
||||
- [#1960](https://github.com/lapce/lapce/pull/1960): Add sticky headers and code lens for PHP
|
||||
- [#1968](https://github.com/lapce/lapce/pull/1968): Completion lens (disabled by default)
|
||||
- 
|
||||
- [#1972](https://github.com/lapce/lapce/pull/1972): Add file duplication option in fs tree context menu
|
||||
- [#1991](https://github.com/lapce/lapce/pull/1991): Implement rendering of images in markdown views
|
||||
- [#2004](https://github.com/lapce/lapce/pull/2004): Add ToggleHistory command
|
||||
- [#2033](https://github.com/lapce/lapce/pull/2033): Add setting for double click delay (Currently only works for opening file from the explorer)
|
||||
- [#2045](https://github.com/lapce/lapce/pull/2045): Add 'Rename Symbol' option on right-click
|
||||
- [#2071](https://github.com/lapce/lapce/pull/2071): Add command and keybinds to delete line
|
||||
- [#2073](https://github.com/lapce/lapce/pull/2073): Add Ctrl+{a,e,k} keybinds on macOS
|
||||
- [#2128](https://github.com/lapce/lapce/pull/2128): Add Lapce app icon to logo collection
|
||||
- [#2127](https://github.com/lapce/lapce/pull/2127): Extended double-click options with file-only and file + folders mode
|
||||
- [#1944](https://github.com/lapce/lapce/pull/1944): Add filter input in git branch selection
|
||||
- 
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#1911](https://github.com/lapce/lapce/pull/1911): Fix movement on selections with left/right arrow keys
|
||||
- [#1939](https://github.com/lapce/lapce/pull/1939): Fix saving/editing newly saved-as files
|
||||
- [#1971](https://github.com/lapce/lapce/pull/1971): Fix up/down movement on first/last line
|
||||
- [#2036](https://github.com/lapce/lapce/pull/2036): Fix movement on selections with up/down arrow keys
|
||||
- [#2056](https://github.com/lapce/lapce/pull/2056): Fix default directory of remote session file picker
|
||||
- [#2072](https://github.com/lapce/lapce/pull/2072): Fix connection issues from Windows to lapce proxy
|
||||
- [#2069](https://github.com/lapce/lapce/pull/2045): Fix not finding git repositories in parent path
|
||||
- [#2131](https://github.com/lapce/lapce/pull/2131): Fix overwriting symlink
|
||||
- [#2188](https://github.com/lapce/lapce/pull/2188): Fix auto closing matching pairs in inappropriate inputs
|
||||
|
||||
## 0.2.5
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- [#1726](https://github.com/lapce/lapce/pull/1726): Add more panel theme keys, apply hover first, then current item colour
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1791](https://github.com/lapce/lapce/pull/1791): Add highlighting for scope lines
|
||||
- [#1767](https://github.com/lapce/lapce/pull/1767): Added CMake tree-sitter syntax highlighting
|
||||
- [#1759](https://github.com/lapce/lapce/pull/1759): Update C tree-sitter and highlight queries
|
||||
- [#1758](https://github.com/lapce/lapce/pull/1758): Replaced dlang syntax highlighting
|
||||
- [#1713](https://github.com/lapce/lapce/pull/1713): Add protobuf syntax and highlighting
|
||||
- [#1720](https://github.com/lapce/lapce/pull/1720): Display signature/parameter information from LSP
|
||||
- [#1723](https://github.com/lapce/lapce/pull/1723): In the palette, display the keybind for a command adjacent to it
|
||||
- [#1722](https://github.com/lapce/lapce/pull/1722): Add 'Save without Formatting'; Add option to disable formatting on autosave
|
||||
- [#1741](https://github.com/lapce/lapce/pull/1741): Add syntax highlighting for glsl
|
||||
- [#1756](https://github.com/lapce/lapce/pull/1756): Add support for ssh port with `[user@]host[:port]`
|
||||
- [#1760](https://github.com/lapce/lapce/pull/1760): Add vim motions `cw`, `ce`, `cc`, `S`, and QOL modal bind `gf`
|
||||
- [#1770](https://github.com/lapce/lapce/pull/1770): Add support for terminal tabs
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#1771](https://github.com/lapce/lapce/pull/1771): Update tree-sitter-bash
|
||||
- [#1737](https://github.com/lapce/lapce/pull/1726): Fix an issue that plugins can't be upgraded
|
||||
- [#1724](https://github.com/lapce/lapce/pull/1724): Files and hidden folders no longer will be considered when trying to open a plugin base folder
|
||||
- [#1753](https://github.com/lapce/lapce/pull/1753): Limit proxy search response size in order to avoid issues with absurdly long lines
|
||||
- [#1805](https://github.com/lapce/lapce/pull/1805): Fix some LSP bugs causing code actions to not show up correctly
|
||||
|
||||
## 0.2.4
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1700](https://github.com/lapce/lapce/pull/1700): Add prisma syntax and highlighting
|
||||
- [#1702](https://github.com/lapce/lapce/pull/1702): Improved svelte treesitter queries
|
||||
- [#1690](https://github.com/lapce/lapce/pull/1690): Add codelens and sticky headers for Dart
|
||||
- [#1711](https://github.com/lapce/lapce/pull/1711): Add zstd support for plugin
|
||||
- [#1715](https://github.com/lapce/lapce/pull/1715): Add support for requests from plugins
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#1710](https://github.com/lapce/lapce/pull/1710): Fix autosave trying to save scratch files
|
||||
- [#1709](https://github.com/lapce/lapce/pull/1709): Fix search result ordering
|
||||
- [#1708](https://github.com/lapce/lapce/pull/1708): Fix visual issue when search panel is placed to either side panel
|
||||
|
||||
## 0.2.3
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1655](https://github.com/lapce/lapce/pull/1655): Add status foreground theme key, use author colour for plugin version
|
||||
- [#1646](https://github.com/lapce/lapce/pull/1646): Fork the process when started from terminal
|
||||
- [#1653](https://github.com/lapce/lapce/pull/1653): Paint plugin icons
|
||||
- [#1644](https://github.com/lapce/lapce/pull/1644): Added "Reveal in File Tree" action to the editor tabs context menu
|
||||
- [#1645](https://github.com/lapce/lapce/pull/1645): Add plugin search
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#1651](https://github.com/lapce/lapce/pull/1651): Fixed an issue where new windows would never be created after closing all windows on macOS.
|
||||
- [#1637](https://github.com/lapce/lapce/issues/1637): Fix python using 7 spaces instead of 4 spaces to indent
|
||||
- [#1669](https://github.com/lapce/lapce/issues/1669): It will now remember panel states when open a new project
|
||||
- [#1706](https://github.com/lapce/lapce/issues/1706): Fix the issue that color can't be changed in theme settings
|
||||
|
||||
## 0.2.2
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1643](https://github.com/lapce/lapce/pull/1643): Use https://plugins.lapce.dev/ as the plugin registry
|
||||
- [#1620](https://github.com/lapce/lapce/pull/1620): Added "Show Hover" keybinding that will trigger the hover at the cursor location
|
||||
- [#1619](https://github.com/lapce/lapce/pull/1619):
|
||||
- Add active/inactive tab colours
|
||||
- Add primary button colour
|
||||
- Add hover effect in source control panel
|
||||
- Add colour preview in settings
|
||||
- [#1617](https://github.com/lapce/lapce/pull/1617): Fixed a stack overflow that would crash lapce when attempting to sort a large number of PaletteItems
|
||||
- [#1609](https://github.com/lapce/lapce/pull/1609): Add syntax highlighting for erlang
|
||||
- [#1590](https://github.com/lapce/lapce/pull/1590): Added ability to open file and file diff from source control context menu
|
||||
- [#1570](https://github.com/lapce/lapce/pull/1570): Added a basic tab context menu with common close actions
|
||||
- [#1560](https://github.com/lapce/lapce/pull/1560): Added ability to copy active editor remote file path to clipboard
|
||||
- [#1510](https://github.com/lapce/lapce/pull/1510): Added support to discard changes to a file
|
||||
- [#1459](https://github.com/lapce/lapce/pull/1459): Implement icon theme system
|
||||
- **This is a breaking change for colour themes!**
|
||||
- Colour themes should now use `[color-theme]` table format in theme TOML
|
||||
- `volt.toml` now use `color-themes` and `icon-themes` keys. `themes` key is not used anymore.
|
||||
- [#1554](https://github.com/lapce/lapce/pull/1554): Added XML language support
|
||||
- [#1472](https://github.com/lapce/lapce/pull/1472): Added SQL language support
|
||||
- [#1531](https://github.com/lapce/lapce/pull/1531): Improved Ctrl+Left command on spaces at the beginning of a line
|
||||
- [#1491](https://github.com/lapce/lapce/pull/1491): Added Vim shift+c to delete remainder of line
|
||||
- [#1508](https://github.com/lapce/lapce/pull/1508): Show in progress when Lapce is self updating
|
||||
- [#1475](https://github.com/lapce/lapce/pull/1475): Add editor setting: "Cursor Surrounding Lines" which sets minimum number of lines above and below cursor
|
||||
- [#1525](https://github.com/lapce/lapce/pull/1525): Add editor indent guide
|
||||
- [#1521](https://github.com/lapce/lapce/pull/1521): Show unique paths to disambiguate same file names
|
||||
- [#1452](https://github.com/lapce/lapce/pull/1452): Wrap selected text with brackets/quotes
|
||||
- [#1421](https://github.com/lapce/lapce/pull/1421): Add matching bracket highlighting
|
||||
- [#1541](https://github.com/lapce/lapce/pull/1541): Order palette items according to last execute time
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#1566](https://github.com/lapce/lapce/pull/1565)|[#1568](https://github.com/lapce/lapce/pull/1568): Use separate colour for drag and drop background
|
||||
- [#1459](https://github.com/lapce/lapce/pull/1459): Fix opening currently used logfile
|
||||
- [#1505](https://github.com/lapce/lapce/pull/1505): Fix proxy download for hosts with curl without -Z flag
|
||||
- [#1483](https://github.com/lapce/lapce/pull/1483): Fix showing the close icon for the first tab when opening multiple tab
|
||||
- [#1477](https://github.com/lapce/lapce/pull/1477): Now use `esc` to close searchbar regardless of the current focus
|
||||
- [#1507](https://github.com/lapce/lapce/pull/1507): Fixed a crash when scratch buffer is closed
|
||||
- [#1547](https://github.com/lapce/lapce/pull/1547): Fix infinite cycle in workspace symbol search
|
||||
- [#1628](https://github.com/lapce/lapce/pull/1541): Fix kts files not being recognized
|
||||
|
||||
## 0.2.1
|
||||
|
||||
### Features/Changes
|
||||
|
||||
- [#1050](https://github.com/lapce/lapce/pull/1050): Collapse groups of problems in the problem list panel
|
||||
- [#1165](https://github.com/lapce/lapce/pull/1165): Command to reveal item in system file explorer
|
||||
- [#1196](https://github.com/lapce/lapce/pull/1196): Always show close button on focused editor tabs
|
||||
- [#1208](https://github.com/lapce/lapce/pull/1208): Sticky header breadcrumbs
|
||||
- This provides a header at the top which tells you information about the current scope! Especially useful for long blocks of code
|
||||
- 
|
||||
- As well, you can see that there is now a breadcrumb path to the current file.
|
||||
- A language with syntax highlighting can have this added, even without an LSP. Take a look at `language.rs` if your language isn't supported!
|
||||
- [#1198](https://github.com/lapce/lapce/pull/1198): Focus current theme/language in palette
|
||||
- [#1244](https://github.com/lapce/lapce/pull/1244); Prettier plugin panel
|
||||
- [#1238](https://github.com/lapce/lapce/pull/1238): Improved multicursor selection
|
||||
- [#1291](https://github.com/lapce/lapce/pull/1291): Use link colour for empty editor buttons
|
||||
- [#1234](https://github.com/lapce/lapce/commit/07390f0c90c0700d1f69409bf48723d15090c474): Automatic line height
|
||||
- [#1262](https://github.com/lapce/lapce/pull/1262): Add absolute/relative copy path to file explorer
|
||||
- [#1284](https://github.com/lapce/lapce/pull/1284): Render whitespace (default: none)
|
||||
- 
|
||||
- [#1308](https://github.com/lapce/lapce/pull/1308): Handle LSP ResourceOp
|
||||
- [#1251](https://github.com/lapce/lapce/pull/1251): Add vim's paste-before `P` command
|
||||
- [#1319](https://github.com/lapce/lapce/pull/1319): Add information page for plugins
|
||||
- [#1344](https://github.com/lapce/lapce/pull/1344): Replace the branch-selector menu with a scrollable list
|
||||
- [#1352](https://github.com/lapce/lapce/pull/1352): Add duplicate line up/down commands
|
||||
- [#1281](https://github.com/lapce/lapce/pull/1281): Implement logic for displaying plugin installation status
|
||||
- [#1353](https://github.com/lapce/lapce/pull/1353): Implement syntax aware selection
|
||||
- [#1358](https://github.com/lapce/lapce/pull/1358): Add autosave implementation
|
||||
- [#1381](https://github.com/lapce/lapce/pull/1381): Show multiple hover items in the hover box
|
||||
- [#1040](https://github.com/lapce/lapce/pull/1040): Add keybindings for `Shift-Del`, `Shift-Ins`, and `Ctrl-Ins`
|
||||
- [#1401](https://github.com/lapce/lapce/pull/1401): Merge semantic and tree-sitter syntax highlighting
|
||||
- [#1426](https://github.com/lapce/lapce/pull/1426): Add cursor position/current selection in status bar
|
||||
- 
|
||||
- [#1420](https://github.com/lapce/lapce/pull/1420): Add LSP `codeAction/resolve` support
|
||||
- [#1440](https://github.com/lapce/lapce/pull/1440): IME support
|
||||
- [#1449](https://github.com/lapce/lapce/pull/1449): Plugin settings in the editor support. Though this still needs some work from plugins to expose them all nicely!
|
||||
- [#1441](https://github.com/lapce/lapce/pull/1441): Button for Case-Sensitive search
|
||||
- [#1471](https://github.com/lapce/lapce/pull/1471): Add command to (un)install Lapce from/to PATH
|
||||
- [#1419](https://github.com/lapce/lapce/pull/1419): Add atomic soft tabs: now you can move your cursor over four spaces as if it was a single block
|
||||
|
||||
### Syntax / Extensions
|
||||
|
||||
- [#957](https://github.com/lapce/lapce/pull/957): Replace existing tree-sitter syntax highlighting code with part of Helix's better implementation
|
||||
- This means that syntax highlighting for more languages! Such as fixing markdown support, and making so that languages embedded in others (like JavaScript in HTML) work.
|
||||
- Note that not all themes have updated themselves to include the extra scopes/colors.
|
||||
- [#1036](https://github.com/lapce/lapce/pull/1036): Recognize ESM/CJS extensions for JavaScript/TypeScript
|
||||
- [#1007](https://github.com/lapce/lapce/pull/1007): Add ability to bind a key shortcut for quitting the editor
|
||||
- [#1104](https://github.com/lapce/lapce/pull/1104): Add syntax highlighting for Dockerfile, C#, and Nix
|
||||
- [#1118](https://github.com/lapce/lapce/pull/1118): Recognize `pyi, pyc, pyd, pyw` extensions for Python
|
||||
- [#1122](https://github.com/lapce/lapce/pull/1122): Recognize extensions for DLang
|
||||
- [#1335](https://github.com/lapce/lapce/pull/1335): Highlighting for DLang
|
||||
- [#1153](https://github.com/lapce/lapce/pull/1050): Recognize and add highlighting for Dart
|
||||
- [#1161](https://github.com/lapce/lapce/pull/1161): Recognize and add highlighting for Svelte and LaTeX files
|
||||
- [#1299](https://github.com/lapce/lapce/pull/1299): Recognize and add highlighting for Kotlin
|
||||
- [#1326](https://github.com/lapce/lapce/pull/1326): Recognize and add highlighting for Vue
|
||||
- [#1370](https://github.com/lapce/lapce/pull/1370): Recognize and add highlighting for R
|
||||
- [#1416](https://github.com/lapce/lapce/pull/1416): Recognize and add highlighting for Scheme
|
||||
- [#1145](https://github.com/lapce/lapce/pull/1145): Adds/Fixes highlighting for C/C++/TypeScript/JavaScript/Zig/Bash
|
||||
- [#1272](https://github.com/lapce/lapce/pull/1272): Adds/Fixes highlighting for Elm/JSX/TSX
|
||||
- [#1450](https://github.com/lapce/lapce/pull/1450): Add `tf` extension for HCL
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- [#1030](https://github.com/lapce/lapce/pull/1030): Don't try to open an font file with an empty name if there is no font family set
|
||||
- [9f0120d](https://github.com/lapce/lapce/commit/9f0120df85e3aaaef7fbb43385bb15d88443260a): Fix excessive CPU usage in part of the code
|
||||
- [bf5a98a](https://github.com/lapce/lapce/commit/bf5a98a6d432f9d2abdc1737da2d075e204771fb): Fix issue where sometimes Lapce can't open
|
||||
- [#1084](https://github.com/lapce/lapce/pull/1084): Use host shell in terminal when running inside Flatpak
|
||||
- [#1120](https://github.com/lapce/lapce/pull/1120): Make Alt+Backspace work in the terminal properly
|
||||
- [#1127](https://github.com/lapce/lapce/pull/1127): Improve Julia highlighting
|
||||
- [#1179](https://github.com/lapce/lapce/pull/1179): Various improvements/fixes to window-tab functionality
|
||||
- [#1210](https://github.com/lapce/lapce/pull/1210): Fixed closing modified file when closing split
|
||||
- [#1219](https://github.com/lapce/lapce/pull/1219): Fix append command behavior
|
||||
- [#1250](https://github.com/lapce/lapce/pull/1250): Fix too long socket path for proxy
|
||||
- [#1252](https://github.com/lapce/lapce/pull/1252): Check whether the active editor tab index actually exists, avoiding a potential crash
|
||||
- [#1294](https://github.com/lapce/lapce/pull/1294): Backward word deletion should respect whitespace better
|
||||
- [#1301](https://github.com/lapce/lapce/pull/1301): Fix incorrect path when going from Url -> PathBuf (such as from an LSP)
|
||||
- [#1368](https://github.com/lapce/lapce/pull/1368): Fix tabstop for postfix completions
|
||||
- [#1388](https://github.com/lapce/lapce/pull/1388): Fix regex search within the terminal
|
||||
- [#1423](https://github.com/lapce/lapce/pull/1423): Fix multiple cursor offset after inserting opening pair
|
||||
- [#1434](https://github.com/lapce/lapce/pull/1434): Join PATH with correct platform separator
|
||||
- [#1443](https://github.com/lapce/lapce/pull/1443): Correct terminal font sizing
|
||||
- [#1453](https://github.com/lapce/lapce/pull/1453): Trim whitespace from search results
|
||||
- [#1461](https://github.com/lapce/lapce/pull/1461): Load shell environment when launching from GUI
|
||||
- Many more fixes!
|
||||
|
||||
### Other
|
||||
|
||||
- [#1191](https://github.com/lapce/lapce/pull/1191): Tone down default inlay hint background color in Lapce dark theme
|
||||
- [#1227](https://github.com/lapce/lapce/pull/1227): Don't restore cursor mode on undo
|
||||
- [#1413](https://github.com/lapce/lapce/pull/1413): Disable format-on-save by default. Remember to re-enable this if you want it!
|
||||
- [#1404](https://github.com/lapce/lapce/pull/1404): Log panics with full backtrace as error
|
||||
@@ -0,0 +1,47 @@
|
||||
# How to contribute
|
||||
Thank you for your interest in contributing to Lapce! No contribution is too small and we consider _all_ contributions to the project. There are many ways to contribute (a few are listed here) but if you think of something else, join us on [Discord](https://discord.gg/n8tGJ6Rn6D) or let us know via an [issue](https://github.com/lapce/lapce/issues).
|
||||
|
||||
## Questions
|
||||
|
||||
We're always around hanging on our [Discord](https://discord.gg/n8tGJ6Rn6D) server but if you're only participating on GitHub, you can open a [Discussion](https://github.com/lapce/lapce/discussions)
|
||||
|
||||
## Feature Requests
|
||||
|
||||
A feature request is _editor behaviour that you want to have included in Lapce_. We track feature requests on GitHub via [issues](https://github.com/lapce/lapce/issues). There are generally few kinds of features:
|
||||
|
||||
### Core features
|
||||
|
||||
A feature more suited to the core development of Lapce. If this is the case please make a suggestion in an [issue](https://github.com/lapce/lapce/issues).
|
||||
|
||||
### Programming language support (autocompletion/intellisense/formatting)
|
||||
|
||||
A feature that relates to specific programming language or development tool that provides intellisense, or various editor commands.
|
||||
We do not track plugins development here, each plugin should have own issue tracker with eventual issues linked/referenced to main Lapce issue tracker.
|
||||
|
||||
### Syntax highlighting
|
||||
|
||||
There is main issue for tracking syntax highlighting grammars support at https://github.com/lapce/lapce/issues/272.
|
||||
|
||||
---
|
||||
|
||||
To reduce the number of duplicate requests, please search through the issues to see if something has already been suggested. If a feature you want has been suggested, then comment on that issue to let us know it's popular. You can use emoji-reactions to show us just how popular.
|
||||
|
||||
## Bug Reports
|
||||
|
||||
Bugs should also be reported on GitHub via [issues](https://github.com/lapce/lapce/issues). This allows us to track them and see how prevalent they are.
|
||||
|
||||
If you encounter a bug when using Lapce, check the issues to see if anyone else has encountered it. If it already exists, you can use emoji reactions so we can see community interest in specific issues and how important they are.
|
||||
|
||||
Please follow the rule of [NoPlusOne](https://github.com/golang/go/wiki/NoPlusOne)
|
||||
|
||||
## Pull Requests
|
||||
|
||||
If you want to write some code, develop the documentation, or otherwise work on a certain feature or bug, let us know by replying to or creating an [issue](https://github.com/lapce/lapce/issues).
|
||||
|
||||
Run `cargo fmt --all` and `cargo clippy` on your code before submitting pull requests and fix any issues; this makes sure that the CI runs only fail on genuine build errors and not formatting/Clippy lints.
|
||||
|
||||
We are currently in the process of improving the documentation for new developers/code contributors. Feel free to get started, or post a message on [Discord](https://discord.gg/n8tGJ6Rn6D) to see what can be done.
|
||||
|
||||
## Contact
|
||||
|
||||
As always, if you have any questions or are just not sure where to start, post a message into the [Discord](https://discord.gg/n8tGJ6Rn6D) server. We suggest you start here as it is the most popular way for Lapce's contributors and users to communicate.
|
||||
@@ -0,0 +1,146 @@
|
||||
[package]
|
||||
name = "lapce"
|
||||
version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
license = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
default-run = "lapce"
|
||||
|
||||
[dependencies]
|
||||
lapce-app = { path = "./lapce-app" }
|
||||
lapce-proxy = { path = "./lapce-proxy" }
|
||||
|
||||
[[bin]]
|
||||
name = "lapce"
|
||||
path = "lapce-app/src/bin/lapce.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "lapce-proxy"
|
||||
path = "lapce-proxy/src/bin/lapce-proxy.rs"
|
||||
|
||||
[workspace]
|
||||
members = ["lapce-app", "lapce-proxy", "lapce-rpc", "lapce-core"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.4.6"
|
||||
edition = "2024"
|
||||
rust-version = "1.87.0"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://lapce.dev"
|
||||
authors = ["Dongdong Zhou <dzhou121@gmail.com>"]
|
||||
|
||||
[workspace.dependencies]
|
||||
anyhow = { version = "1.0" }
|
||||
backtrace = { version = "0.3" }
|
||||
chrono = { version = "0.4" }
|
||||
clap = { version = "4.5.0", default-features = false, features = ["std", "help", "usage", "derive"] }
|
||||
crossbeam-channel = { version = "0.5.12" }
|
||||
directories = { version = "4.0.1" }
|
||||
flate2 = { version = "1.0" }
|
||||
git2 = { version = "0.20.0", features = ["vendored-openssl"] }
|
||||
globset = { version = "0.4.14" }
|
||||
hashbrown = { version = "0.14.5", features = ["serde"] }
|
||||
im = { version = "15.0.0", features = ["serde"] }
|
||||
include_dir = { version = "0.7" }
|
||||
indexmap = { version = "2.0", features = ["serde"] }
|
||||
interprocess = { version = "1.2.1" }
|
||||
itertools = { version = "0.12.1" }
|
||||
notify = { version = "5.2.0", features = ["serde"] }
|
||||
once_cell = { version = "1.19" }
|
||||
parking_lot = { version = "0.12.3" }
|
||||
rayon = { version = "1.10.0" }
|
||||
regex = { version = "1.10.5" }
|
||||
remain = { version = "0.2" }
|
||||
semver = { version = "1.0" }
|
||||
reqwest = { version = "0.11", features = ["blocking", "json", "socks"] }
|
||||
serde = { version = "1.0" }
|
||||
serde_json = { version = "1.0" }
|
||||
smallvec = { version = "1.15.1" }
|
||||
strum = { version = "0.27.1" }
|
||||
strum_macros = { version = "0.27.1" }
|
||||
tar = { version = "0.4" }
|
||||
tempfile = { version = "3.10.1" }
|
||||
thiserror = { version = "1.0" }
|
||||
toml = { version = "*" }
|
||||
toml_edit = { version = "0.20.2", features = ["serde"] }
|
||||
url = { version = "2.5.0" }
|
||||
zstd = { version = "0.11.2" } # follow same version wasmtime-cache in lockfile
|
||||
|
||||
lsp-types = { version = "0.95.1", features = ["proposed"] } # not following semver, so should be locked to patch version updates only
|
||||
psp-types = { git = "https://github.com/lapce/psp-types", rev = "f7fea28f59e7b2d6faa1034a21679ad49b3524ad" }
|
||||
|
||||
lapce-xi-rope = { version = "0.3.2", features = ["serde"] }
|
||||
|
||||
lapce-core = { path = "./lapce-core" }
|
||||
lapce-rpc = { path = "./lapce-rpc" }
|
||||
lapce-proxy = { path = "./lapce-proxy" }
|
||||
|
||||
[workspace.dependencies.floem]
|
||||
# path = "../floem"
|
||||
git = "https://github.com/lapce/floem"
|
||||
rev = "31fa8f444c37f4c314f47d88c23ffdbc25f2ab53"
|
||||
features = ["editor", "serde", "default-image-formats", "rfd-async-std"]
|
||||
|
||||
[workspace.dependencies.floem-editor-core]
|
||||
# path = "../floem/editor-core/"
|
||||
git = "https://github.com/lapce/floem"
|
||||
rev = "31fa8f444c37f4c314f47d88c23ffdbc25f2ab53"
|
||||
features = ["serde"]
|
||||
|
||||
[patch.crates-io]
|
||||
# Temporarily patch lsp-types with a version that adds message-type debug
|
||||
lsp-types = { git = "https://github.com/lapce/lsp-types", rev = "feaa1e2ec80975c9dadd400a238ceacf071058e6" }
|
||||
regalloc2 = { rev = "5d79e12d0a93b10fc181f4da409b4671dd365228", git = "https://github.com/bytecodealliance/regalloc2" }
|
||||
|
||||
# cargo vendor issue: https://github.com/rust-lang/cargo/issues/10310
|
||||
# dpi comes from winit (source) and muda (crate)
|
||||
dpi = { git = "https://github.com/rust-windowing/winit", rev = "ee245c569d65fdeacf705ee5eedb564508d10ebe" }
|
||||
|
||||
|
||||
[workspace.dependencies.tracing]
|
||||
git = "https://github.com/tokio-rs/tracing"
|
||||
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
||||
package = "tracing"
|
||||
|
||||
[workspace.dependencies.tracing-log]
|
||||
git = "https://github.com/tokio-rs/tracing"
|
||||
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
||||
package = "tracing-log"
|
||||
|
||||
[workspace.dependencies.tracing-subscriber]
|
||||
git = "https://github.com/tokio-rs/tracing"
|
||||
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
||||
package = "tracing-subscriber"
|
||||
|
||||
[workspace.dependencies.tracing-appender]
|
||||
git = "https://github.com/tokio-rs/tracing"
|
||||
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
||||
package = "tracing-appender"
|
||||
|
||||
[workspace.dependencies.alacritty_terminal]
|
||||
git = "https://github.com/alacritty/alacritty"
|
||||
rev = "cacdb5bb3b72bad2c729227537979d95af75978f"
|
||||
|
||||
[workspace.dependencies.windows-sys]
|
||||
version = "0"
|
||||
features = ["Win32_Foundation"]
|
||||
|
||||
[profile.release-lto]
|
||||
inherits = "release"
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
|
||||
# A profile which compiles all (non-workspace) dependencies in release mode
|
||||
# but Lapce code in dev mode. This gives a good debugging experience for your
|
||||
# code and fast performance of other people's code. After the initial
|
||||
# build subsequent ones are as fast as dev mode builds.
|
||||
# See https://doc.rust-lang.org/cargo/reference/profiles.html
|
||||
# To use this profile:
|
||||
# cargo build --profile fastdev
|
||||
# cargo run --profile fastdev --bin lapce
|
||||
[profile.fastdev.package."*"]
|
||||
opt-level = 3
|
||||
|
||||
[profile.fastdev]
|
||||
inherits = "dev"
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,84 @@
|
||||
# This Makefile is intended *only* for building macOS binaries of Lapce.
|
||||
# It uses macOS-specific tools like `lipo`, `codesign`, and `hdiutil`,
|
||||
# and requires that a valid Apple Developer signing identity is installed
|
||||
# and available in the system Keychain under the fingerprint set in
|
||||
# CODESIGN_IDENTITY.
|
||||
#
|
||||
# See `docs/building-from-source.md`.
|
||||
|
||||
TARGET = lapce
|
||||
|
||||
CODESIGN_IDENTITY = FAC8FBEA99169DC1980731029648F110628D6A32
|
||||
|
||||
ASSETS_DIR = extra
|
||||
RELEASE_DIR = target/release-lto
|
||||
|
||||
APP_NAME = Lapce.app
|
||||
APP_TEMPLATE = $(ASSETS_DIR)/macos/$(APP_NAME)
|
||||
APP_DIR = $(RELEASE_DIR)/macos
|
||||
APP_BINARY = $(RELEASE_DIR)/$(TARGET)
|
||||
APP_BINARY_DIR = $(APP_DIR)/$(APP_NAME)/Contents/MacOS
|
||||
APP_EXTRAS_DIR = $(APP_DIR)/$(APP_NAME)/Contents/Resources
|
||||
|
||||
DMG_NAME = Lapce.dmg
|
||||
DMG_DIR = $(RELEASE_DIR)/macos
|
||||
|
||||
vpath $(TARGET) $(RELEASE_DIR)
|
||||
vpath $(APP_NAME) $(APP_DIR)
|
||||
vpath $(DMG_NAME) $(APP_DIR)
|
||||
|
||||
all: help
|
||||
|
||||
help: ## Print this help message
|
||||
@grep -E '^[a-zA-Z._-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
ubuntu-deps:
|
||||
apt-get update -y
|
||||
apt-get install -y clang libxkbcommon-x11-dev pkg-config libvulkan-dev libgtk-3-dev libwayland-dev xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
|
||||
binary: $(TARGET)-native ## Build a release binary
|
||||
binary-universal: $(TARGET)-universal ## Build a universal release binary
|
||||
$(TARGET)-native:
|
||||
MACOSX_DEPLOYMENT_TARGET="10.11" cargo build --profile release-lto
|
||||
@lipo target/release-lto/$(TARGET) -create -output $(APP_BINARY)
|
||||
$(TARGET)-universal:
|
||||
MACOSX_DEPLOYMENT_TARGET="10.11" cargo build --profile release-lto --target=x86_64-apple-darwin
|
||||
MACOSX_DEPLOYMENT_TARGET="10.11" cargo build --profile release-lto --target=aarch64-apple-darwin
|
||||
@lipo target/{x86_64,aarch64}-apple-darwin/release-lto/$(TARGET) -create -output $(APP_BINARY)
|
||||
/usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s $(CODESIGN_IDENTITY) $(APP_BINARY)
|
||||
|
||||
app: $(APP_NAME)-native ## Create a Lapce.app
|
||||
app-universal: $(APP_NAME)-universal ## Create a universal Lapce.app
|
||||
$(APP_NAME)-%: $(TARGET)-%
|
||||
@mkdir -p $(APP_BINARY_DIR)
|
||||
@mkdir -p $(APP_EXTRAS_DIR)
|
||||
@cp -fRp $(APP_TEMPLATE) $(APP_DIR)
|
||||
@cp -fp $(APP_BINARY) $(APP_BINARY_DIR)
|
||||
@touch -r "$(APP_BINARY)" "$(APP_DIR)/$(APP_NAME)"
|
||||
@echo "Created '$(APP_NAME)' in '$(APP_DIR)'"
|
||||
xattr -c $(APP_DIR)/$(APP_NAME)/Contents/Info.plist
|
||||
xattr -c $(APP_DIR)/$(APP_NAME)/Contents/Resources/lapce.icns
|
||||
/usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s $(CODESIGN_IDENTITY) $(APP_DIR)/$(APP_NAME)
|
||||
|
||||
dmg: $(DMG_NAME)-native ## Create a Lapce.dmg
|
||||
dmg-universal: $(DMG_NAME)-universal ## Create a universal Lapce.dmg
|
||||
$(DMG_NAME)-%: $(APP_NAME)-%
|
||||
@echo "Packing disk image..."
|
||||
@ln -sf /Applications $(DMG_DIR)/Applications
|
||||
@hdiutil create $(DMG_DIR)/$(DMG_NAME) \
|
||||
-volname "Lapce" \
|
||||
-fs HFS+ \
|
||||
-srcfolder $(APP_DIR) \
|
||||
-ov -format UDZO
|
||||
@echo "Packed '$(APP_NAME)' in '$(APP_DIR)'"
|
||||
/usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s $(CODESIGN_IDENTITY) $(DMG_DIR)/$(DMG_NAME)
|
||||
|
||||
install: $(INSTALL)-native ## Mount disk image
|
||||
install-universal: $(INSTALL)-native ## Mount universal disk image
|
||||
$(INSTALL)-%: $(DMG_NAME)-%
|
||||
@open $(DMG_DIR)/$(DMG_NAME)
|
||||
|
||||
.PHONY: app binary clean dmg install $(TARGET) $(TARGET)-universal
|
||||
|
||||
clean: ## Remove all build artifacts
|
||||
@cargo clean
|
||||
@@ -0,0 +1,61 @@
|
||||
<h1 align="center">
|
||||
<a href="https://lapce.dev" target="_blank">
|
||||
<img src="extra/images/logo.png" width=200 height=200/><br>
|
||||
Lapce
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<h4 align="center">Lightning-fast And Powerful Code Editor</h4>
|
||||
|
||||
<div align="center">
|
||||
<a href="https://github.com/lapce/lapce/actions/workflows/ci.yml" target="_blank">
|
||||
<img src="https://github.com/lapce/lapce/actions/workflows/ci.yml/badge.svg" />
|
||||
</a>
|
||||
<a href="https://discord.gg/n8tGJ6Rn6D" target="_blank">
|
||||
<img src="https://img.shields.io/discord/946858761413328946?logo=discord" />
|
||||
</a>
|
||||
<a href="https://docs.lapce.dev" target="_blank">
|
||||
<img src="https://img.shields.io/static/v1?label=Docs&message=docs.lapce.dev&color=blue" alt="Lapce Docs">
|
||||
</a>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
|
||||
Lapce (IPA: /læps/) is written in pure Rust, with a UI in [Floem](https://github.com/lapce/floem). It is designed with [Rope Science](https://xi-editor.io/docs/rope_science_00.html) from the [Xi-Editor](https://github.com/xi-editor/xi-editor), enabling lightning-fast computation, and leverages [wgpu](https://github.com/gfx-rs/wgpu) for rendering. More information about the features of Lapce can be found on the [main website](https://lapce.dev) and user documentation can be found on [GitBook](https://docs.lapce.dev/).
|
||||
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
* Built-in LSP ([Language Server Protocol](https://microsoft.github.io/language-server-protocol/)) support to give you intelligent code features such as: completion, diagnostics and code actions
|
||||
* Modal editing support as first class citizen (Vim-like, and toggleable)
|
||||
* Built-in remote development support inspired by [VSCode Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Enjoy the benefits of a "local" experience, and seamlessly gain the full power of a remote system. We also have [Lapdev](https://lap.dev/) which can help manage your remote dev environments.
|
||||
* Plugins can be written in programming languages that can compile to the [WASI](https://wasi.dev/) format (C, Rust, [AssemblyScript](https://www.assemblyscript.org/))
|
||||
* Built-in terminal, so you can execute commands in your workspace, without leaving Lapce.
|
||||
|
||||
## Installation
|
||||
|
||||
You can find pre-built releases for Windows, Linux and macOS [here](https://github.com/lapce/lapce/releases), or [installing with a package manager](docs/installing-with-package-manager.md).
|
||||
If you'd like to compile from source, you can find the [guide](docs/building-from-source.md).
|
||||
|
||||
## Contributing
|
||||
|
||||
<a href="https://ws.lap.dev/#https://github.com/lapce/lapce" target="_blank">
|
||||
<img src="https://lap.dev/images/open-in-lapdev.svg?version=8" alt="Open in Lapdev">
|
||||
</a>
|
||||
|
||||
[Lapdev](https://lap.dev/), developed by the Lapce team, is a cloud dev env service similar to GitHub Codespaces. By clicking the button above, you'll be taken to a fully set up Lapce dev env where you can browse the code and start developing. All dependencies are pre-installed, so you can get straight to code.
|
||||
|
||||
Guidelines for contributing to Lapce can be found in [`CONTRIBUTING.md`](CONTRIBUTING.md).
|
||||
|
||||
## Feedback & Contact
|
||||
|
||||
The most popular place for Lapce developers and users is on the [Discord server](https://discord.gg/n8tGJ6Rn6D).
|
||||
|
||||
Or, join the discussion on [Reddit](https://www.reddit.com/r/lapce/) where we are just getting started.
|
||||
|
||||
There is also a [Matrix Space](https://matrix.to/#/#lapce-editor:matrix.org), which is linked to the content from the Discord server.
|
||||
|
||||
## License
|
||||
|
||||
Lapce is released under the Apache License Version 2, which is an open source license. You may contribute to this project, or use the code as you please as long as you adhere to its conditions. You can find a copy of the license text here: [`LICENSE`](LICENSE).
|
||||
@@ -0,0 +1,7 @@
|
||||
# WeHub 来源说明
|
||||
|
||||
- 原始项目:`lapce/lapce`
|
||||
- 原始仓库:https://github.com/lapce/lapce
|
||||
- 导入方式:上游默认分支的最新快照
|
||||
- 原作者、版权和许可证信息以原始仓库及本仓库 LICENSE 为准
|
||||
- 本文件仅用于记录来源,不代表 WeHub 是原项目作者
|
||||
@@ -0,0 +1,17 @@
|
||||
# https://github.com/crate-ci/typos/blob/02ea592e44b3a53c302f697cddca7641cd051c3d/docs/reference.md
|
||||
|
||||
[files]
|
||||
|
||||
[default]
|
||||
extend-ignore-re = [
|
||||
# Ignore lines that end with `# spellchecker:disable-line`
|
||||
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
|
||||
# Ignore the line after `# spellchecker:ignore-next-line`:
|
||||
"(#|//)\\s*spellchecker:ignore-next-line\\n.*",
|
||||
# Ignore blocks between `# spellchecker:off` and `# spellchecker:on`
|
||||
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
|
||||
]
|
||||
|
||||
[default.extend-identifiers]
|
||||
|
||||
[default.extend-words]
|
||||
@@ -0,0 +1,210 @@
|
||||
#:schema ../extra/schemas/color-theme.json
|
||||
|
||||
[color-theme]
|
||||
name = "Lapce Dark"
|
||||
|
||||
[ui]
|
||||
font-family = ""
|
||||
font-size = 13
|
||||
header-height = 35
|
||||
status-height = 25
|
||||
tab-min-width = 100
|
||||
activity-width = 50
|
||||
scroll-width = 10
|
||||
drop-shadow-width = 0
|
||||
|
||||
[color-theme.base]
|
||||
black = "#282C34"
|
||||
blue = "#61AFEF"
|
||||
cyan = "#56B6C2"
|
||||
green = "#98C379"
|
||||
grey = "#3E4451"
|
||||
magenta = "#C678DD"
|
||||
orange = "#D19A66"
|
||||
purple = "#C678DD"
|
||||
red = "#E06C75"
|
||||
white = "#ABB2BF"
|
||||
yellow = "#E5C07B"
|
||||
|
||||
primary-background = "$black"
|
||||
# Background for 'secondary' elements: panels, palette, status bar, completion, hover
|
||||
secondary-background = "#21252B"
|
||||
current-background = "#2C313A"
|
||||
text = "$white"
|
||||
dim-text = "#5C6370"
|
||||
|
||||
[color-theme.syntax]
|
||||
"comment" = "$dim-text"
|
||||
"constant" = "$yellow"
|
||||
"type" = "$yellow"
|
||||
"typeAlias" = "$yellow"
|
||||
"number" = "$yellow"
|
||||
"enum" = "$yellow"
|
||||
"struct" = "$yellow"
|
||||
"structure" = "$yellow"
|
||||
"interface" = "$yellow"
|
||||
"attribute" = "$yellow"
|
||||
"constructor" = "$yellow"
|
||||
"function" = "$blue"
|
||||
"method" = "$blue"
|
||||
"function.method" = "$blue"
|
||||
"keyword" = "$purple"
|
||||
"selfKeyword" = "$purple"
|
||||
"field" = "$red"
|
||||
"property" = "$red"
|
||||
"enumMember" = "$red"
|
||||
"enum-member" = "$red"
|
||||
"string" = "$green"
|
||||
"type.builtin" = "$cyan"
|
||||
"builtinType" = "$cyan"
|
||||
"escape" = "$cyan"
|
||||
"string.escape" = "$cyan"
|
||||
"embedded" = "$cyan"
|
||||
"punctuation.delimiter" = "$yellow"
|
||||
"text.title" = "$orange"
|
||||
"text.uri" = "$cyan"
|
||||
"text.reference" = "$yellow"
|
||||
"variable" = "$red"
|
||||
"variable.other.member" = "$red"
|
||||
"tag" = "$blue"
|
||||
|
||||
"markup.heading" = "$red"
|
||||
"markup.bold" = "$orange"
|
||||
"markup.italic" = "$orange"
|
||||
"markup.list" = "$orange"
|
||||
"markup.link.url" = "$blue"
|
||||
"markup.link.label" = "$purple"
|
||||
"markup.link.text" = "$purple"
|
||||
|
||||
"bracket.color.1" = "$blue"
|
||||
"bracket.color.2" = "$yellow"
|
||||
"bracket.color.3" = "$purple"
|
||||
"bracket.unpaired" = "$red"
|
||||
|
||||
[color-theme.ui]
|
||||
"lapce.error" = "$red"
|
||||
"lapce.warn" = "$yellow"
|
||||
"lapce.dropdown_shadow" = "#000000"
|
||||
"lapce.border" = "#000000"
|
||||
"lapce.scroll_bar" = "#3E4451BB"
|
||||
|
||||
"lapce.button.primary.background" = "#50a14f"
|
||||
"lapce.button.primary.foreground" = "$black"
|
||||
|
||||
# tab
|
||||
"lapce.tab.active.background" = "$primary-background"
|
||||
"lapce.tab.active.foreground" = "$text"
|
||||
"lapce.tab.active.underline" = "#528BFF"
|
||||
|
||||
"lapce.tab.inactive.background" = "$secondary-background"
|
||||
"lapce.tab.inactive.foreground" = "$text"
|
||||
"lapce.tab.inactive.underline" = "#528BFF77"
|
||||
|
||||
"lapce.tab.separator" = ""
|
||||
|
||||
"lapce.icon.active" = "$text"
|
||||
"lapce.icon.inactive" = "$dim-text"
|
||||
|
||||
"lapce.remote.icon" = "$black"
|
||||
"lapce.remote.local" = "#4078F2"
|
||||
"lapce.remote.connected" = "#50A14F"
|
||||
"lapce.remote.connecting" = "#C18401"
|
||||
"lapce.remote.disconnected" = "#E45649"
|
||||
|
||||
"lapce.plugin.name" = "#DDDDDD"
|
||||
"lapce.plugin.description" = "$text"
|
||||
"lapce.plugin.author" = "#B0B0B0"
|
||||
|
||||
"editor.background" = "$primary-background"
|
||||
"editor.foreground" = "$text"
|
||||
"editor.dim" = "$dim-text"
|
||||
"editor.focus" = "#CCCCCC"
|
||||
"editor.caret" = "#528BFF"
|
||||
"editor.selection" = "$grey"
|
||||
"editor.current_line" = "#2C313C"
|
||||
"editor.debug_break_line" = "#528abF37"
|
||||
"editor.link" = "$blue"
|
||||
"editor.visible_whitespace" = "$grey"
|
||||
"editor.indent_guide" = "$grey"
|
||||
"editor.drag_drop_background" = "#79c1fc55"
|
||||
"editor.drag_drop_tab_background" = "#0b0e1455"
|
||||
"editor.sticky_header_background" = "$primary-background"
|
||||
|
||||
"inlay_hint.foreground" = "$text"
|
||||
"inlay_hint.background" = "#528abF37"
|
||||
|
||||
"error_lens.error.foreground" = "$red"
|
||||
"error_lens.error.background" = "#E06C7520"
|
||||
"error_lens.warning.foreground" = "$yellow"
|
||||
"error_lens.warning.background" = "#E5C07B20"
|
||||
"error_lens.other.foreground" = "$dim-text"
|
||||
"error_lens.other.background" = "#5C637020"
|
||||
|
||||
"completion_lens.foreground" = "$dim-text"
|
||||
|
||||
"source_control.added" = "#50A14FCC"
|
||||
"source_control.removed" = "#FF5266CC"
|
||||
"source_control.modified" = "#0184BCCC"
|
||||
|
||||
"tooltip.background" = "$primary-background"
|
||||
"tooltip.foreground" = "$text"
|
||||
|
||||
"palette.background" = "$secondary-background"
|
||||
"palette.foreground" = "$text"
|
||||
"palette.current.background" = "$current-background"
|
||||
"palette.current.foreground" = "$text"
|
||||
|
||||
"completion.background" = "$secondary-background"
|
||||
"completion.current" = "$current-background"
|
||||
|
||||
"hover.background" = "$secondary-background"
|
||||
|
||||
"activity.background" = "$secondary-background"
|
||||
"activity.current" = "$primary-background"
|
||||
|
||||
"debug.breakpoint" = "$red"
|
||||
"debug.breakpoint.hover" = "#E06C7566"
|
||||
|
||||
"panel.background" = "$secondary-background"
|
||||
"panel.foreground" = "$text"
|
||||
"panel.foreground.dim" = "$dim-text"
|
||||
"panel.current.background" = "$current-background"
|
||||
"panel.current.foreground" = "$text"
|
||||
"panel.current.foreground.dim" = "$dim-text"
|
||||
"panel.hovered.background" = "#343A45"
|
||||
"panel.hovered.active.background" = "$dim-text"
|
||||
"panel.hovered.foreground" = "$text"
|
||||
"panel.hovered.foreground.dim" = "$dim-text"
|
||||
|
||||
"status.background" = "$secondary-background"
|
||||
"status.foreground" = "$text"
|
||||
"status.modal.normal.background" = "$blue"
|
||||
"status.modal.normal.foreground" = "$black"
|
||||
"status.modal.insert.background" = "$red"
|
||||
"status.modal.insert.foreground" = "$black"
|
||||
"status.modal.visual.background" = "$yellow"
|
||||
"status.modal.visual.foreground" = "$black"
|
||||
"status.modal.terminal.background" = "$purple"
|
||||
"status.modal.terminal.foreground" = "$black"
|
||||
|
||||
"markdown.blockquote" = "#898989"
|
||||
|
||||
"terminal.cursor" = "$text"
|
||||
"terminal.foreground" = "$text"
|
||||
"terminal.background" = "$primary-background"
|
||||
"terminal.white" = "$white"
|
||||
"terminal.black" = "$black"
|
||||
"terminal.red" = "$red"
|
||||
"terminal.blue" = "$blue"
|
||||
"terminal.green" = "$green"
|
||||
"terminal.yellow" = "$yellow"
|
||||
"terminal.cyan" = "$cyan"
|
||||
"terminal.magenta" = "$magenta"
|
||||
"terminal.bright_white" = "#C8CCD4"
|
||||
"terminal.bright_red" = "$red"
|
||||
"terminal.bright_blue" = "$blue"
|
||||
"terminal.bright_green" = "$green"
|
||||
"terminal.bright_yellow" = "$yellow"
|
||||
"terminal.bright_cyan" = "$cyan"
|
||||
"terminal.bright_magenta" = "$magenta"
|
||||
"terminal.bright_black" = "#545862"
|
||||
@@ -0,0 +1,153 @@
|
||||
#:schema ../extra/schemas/icon-theme.json
|
||||
|
||||
[icon-theme]
|
||||
name = "Lapce Codicons"
|
||||
|
||||
[icon-theme.ui]
|
||||
"logo" = "lapce_logo.svg"
|
||||
"menu" = "menu.svg"
|
||||
"link" = "link.svg"
|
||||
"error" = "error.svg"
|
||||
"add" = "add.svg"
|
||||
"close" = "close.svg"
|
||||
"remote" = "remote.svg"
|
||||
"unsaved" = "circle-filled.svg"
|
||||
"warning" = "warning.svg"
|
||||
"problem" = "problem.svg"
|
||||
"debug" = "debug.svg"
|
||||
"debug_breakpoint" = "circle-filled.svg"
|
||||
"debug_alt" = "debug-alt.svg"
|
||||
"debug_small" = "debug-alt-small.svg"
|
||||
"debug_restart" = "debug-restart.svg"
|
||||
"debug_continue" = "debug-continue.svg"
|
||||
"debug_step_over" = "debug-step-over.svg"
|
||||
"debug_step_into" = "debug-step-into.svg"
|
||||
"debug_step_out" = "debug-step-out.svg"
|
||||
"debug_pause" = "debug-pause.svg"
|
||||
"debug_stop" = "debug-stop.svg"
|
||||
"debug_console" = "debug-console.svg"
|
||||
"debug_disconnect" = "debug-disconnect.svg"
|
||||
"start" = "debug-start.svg"
|
||||
"run_errors" = "run-errors.svg"
|
||||
"settings" = "settings-gear.svg"
|
||||
"terminal" = "terminal.svg"
|
||||
"lightbulb" = "lightbulb.svg"
|
||||
"extensions" = "extensions.svg"
|
||||
"keyboard" = "keyboard.svg"
|
||||
"breadcrumb_separator" = "chevron-right.svg"
|
||||
"symbol_color" = "symbol-color.svg"
|
||||
"type_hierarchy" = "type-hierarchy.svg"
|
||||
|
||||
"window.close" = "chrome-close.svg"
|
||||
"window.restore" = "chrome-restore.svg"
|
||||
"window.maximize" = "chrome-maximize.svg"
|
||||
"window.minimize" = "chrome-minimize.svg"
|
||||
|
||||
"file" = "file.svg"
|
||||
"file_explorer" = "files.svg"
|
||||
"file_picker_up" = "arrow-up.svg"
|
||||
|
||||
"image_loading" = "refresh.svg"
|
||||
"image_error" = "error.svg"
|
||||
|
||||
"scm.icon" = "source-control.svg"
|
||||
"scm.diff.modified" = "diff-modified.svg"
|
||||
"scm.diff.added" = "diff-added.svg"
|
||||
"scm.diff.removed" = "diff-removed.svg"
|
||||
"scm.diff.renamed" = "diff-renamed.svg"
|
||||
"scm.change.add" = "add.svg"
|
||||
"scm.change.remove" = "remove.svg"
|
||||
|
||||
"palette.menu" = "chevron-down.svg"
|
||||
|
||||
"fold" = "fold.svg"
|
||||
"fold.up" = "fold-up.svg"
|
||||
"fold.down" = "fold-down.svg"
|
||||
|
||||
"dropdown.arrow" = "chevron-down.svg"
|
||||
|
||||
"panel.fold-down" = "chevron-down.svg"
|
||||
"panel.fold-up" = "chevron-right.svg"
|
||||
|
||||
"location.forward" = "arrow-right.svg"
|
||||
"location.backward" = "arrow-left.svg"
|
||||
|
||||
"item.opened" = "chevron-down.svg"
|
||||
"item.closed" = "chevron-right.svg"
|
||||
|
||||
"directory.closed" = "folder.svg"
|
||||
"directory.opened" = "folder-opened.svg"
|
||||
|
||||
"panel.restore" = "chevron-down.svg"
|
||||
"panel.maximise" = "chevron-right.svg"
|
||||
|
||||
"split.horizontal" = "split-horizontal.svg"
|
||||
|
||||
"tab.previous" = "chevron-left.svg"
|
||||
"tab.next" = "chevron-right.svg"
|
||||
|
||||
"sidebar.left.on" = "layout-sidebar-left.svg"
|
||||
"sidebar.left.off" = "layout-sidebar-left-off.svg"
|
||||
"sidebar.right.on" = "layout-sidebar-right.svg"
|
||||
"sidebar.right.off" = "layout-sidebar-right-off.svg"
|
||||
|
||||
"layout.panel.on" = "layout-panel.svg"
|
||||
"layout.panel.off" = "layout-panel-off.svg"
|
||||
|
||||
"search.icon" = "search.svg"
|
||||
"search.clear" = "close.svg"
|
||||
"search.forward" = "arrow-down.svg"
|
||||
"search.backward" = "arrow-up.svg"
|
||||
"search.case_sensitive" = "case-sensitive.svg"
|
||||
"search.whole_word" = "whole-word.svg"
|
||||
"search.regex" = "regex.svg"
|
||||
"search.replace" = "replace.svg"
|
||||
"search.replace_all" = "replace-all.svg"
|
||||
|
||||
"document_symbol" = "symbol-class.svg"
|
||||
"references" = "references.svg"
|
||||
"implementation" = "combine.svg"
|
||||
"symbol_kind.array" = "symbol-array.svg"
|
||||
"symbol_kind.boolean" = "symbol-boolean.svg"
|
||||
"symbol_kind.class" = "symbol-class.svg"
|
||||
"symbol_kind.constant" = "symbol-constant.svg"
|
||||
"symbol_kind.enum_member" = "symbol-enum-member.svg"
|
||||
"symbol_kind.enum" = "symbol-enum.svg"
|
||||
"symbol_kind.event" = "symbol-event.svg"
|
||||
"symbol_kind.field" = "symbol-field.svg"
|
||||
"symbol_kind.file" = "symbol-file.svg"
|
||||
"symbol_kind.function" = "symbol-method.svg"
|
||||
"symbol_kind.interface" = "symbol-interface.svg"
|
||||
"symbol_kind.key" = "symbol-key.svg"
|
||||
"symbol_kind.method" = "symbol-method.svg"
|
||||
"symbol_kind.namespace" = "symbol-namespace.svg"
|
||||
"symbol_kind.number" = "symbol-numeric.svg"
|
||||
"symbol_kind.object" = "symbol-namespace.svg"
|
||||
"symbol_kind.operator" = "symbol-operator.svg"
|
||||
"symbol_kind.property" = "symbol-property.svg"
|
||||
"symbol_kind.string" = "symbol-string.svg"
|
||||
"symbol_kind.struct" = "symbol-structure.svg"
|
||||
"symbol_kind.type_parameter" = "symbol-parameter.svg"
|
||||
"symbol_kind.variable" = "symbol-variable.svg"
|
||||
|
||||
"completion_item_kind.class" = "symbol-class.svg"
|
||||
"completion_item_kind.constant" = "symbol-constant.svg"
|
||||
"completion_item_kind.enum_member" = "symbol-enum-member.svg"
|
||||
"completion_item_kind.enum" = "symbol-enum.svg"
|
||||
"completion_item_kind.field" = "symbol-field.svg"
|
||||
"completion_item_kind.function" = "symbol-method.svg"
|
||||
"completion_item_kind.interface" = "symbol-interface.svg"
|
||||
"completion_item_kind.keyword" = "symbol-keyword.svg"
|
||||
"completion_item_kind.method" = "symbol-method.svg"
|
||||
"completion_item_kind.module" = "symbol-namespace.svg"
|
||||
"completion_item_kind.property" = "symbol-property.svg"
|
||||
"completion_item_kind.snippet" = "symbol-snippet.svg"
|
||||
"completion_item_kind.string" = "symbol-string.svg"
|
||||
"completion_item_kind.struct" = "symbol-structure.svg"
|
||||
"completion_item_kind.variable" = "symbol-variable.svg"
|
||||
|
||||
[icon-theme.foldername]
|
||||
|
||||
[icon-theme.filename]
|
||||
|
||||
[icon-theme.extension]
|
||||
@@ -0,0 +1,737 @@
|
||||
# --------------------------------- General --------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "F1"
|
||||
command = "palette.command"
|
||||
|
||||
# [[keymaps]]
|
||||
# key = "ctrl+q"
|
||||
# command = "quit"
|
||||
|
||||
# --------------------------------- Basic editing ---------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+up"
|
||||
command = "move_line_up"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+down"
|
||||
command = "move_line_down"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Delete"
|
||||
command = "delete_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "backspace"
|
||||
command = "delete_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+backspace"
|
||||
command = "delete_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Home"
|
||||
command = "line_start_non_blank"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "End"
|
||||
command = "line_end"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageUp"
|
||||
command = "page_up"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageDown"
|
||||
command = "page_down"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+PageUp"
|
||||
command = "scroll_up"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+PageDown"
|
||||
command = "scroll_down"
|
||||
|
||||
# ------------------------------------ Multi cursor -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+shift+i"
|
||||
command = "insert_cursor_end_of_line"
|
||||
mode = "i"
|
||||
|
||||
# ----------------------------------- Editor Management -------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+tab"
|
||||
command = "next_editor_tab"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+tab"
|
||||
command = "previous_editor_tab"
|
||||
|
||||
# --------------------------------- Rich Language Editing ----------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "F2"
|
||||
command = "rename_symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "F12"
|
||||
command = "goto_definition"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g f"
|
||||
command = "show_code_actions"
|
||||
mode = "n"
|
||||
|
||||
# ------------------------------------ Navigation -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "F8"
|
||||
command = "next_error"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+F8"
|
||||
command = "previous_error"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+-"
|
||||
command = "jump_location_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+-"
|
||||
command = "jump_location_forward"
|
||||
mode = "i"
|
||||
|
||||
# --------------------------------- Integrated Terminal ------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+`"
|
||||
command = "toggle_terminal_focus"
|
||||
|
||||
# ------------------------------------ ------------ -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "jump_to_next_snippet_placeholder"
|
||||
when = "in_snippet"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+tab"
|
||||
command = "jump_to_prev_snippet_placeholder"
|
||||
when = "in_snippet"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "clear_search"
|
||||
when = "search_active || search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+up"
|
||||
command = "select_next_syntax_item"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+down"
|
||||
command = "select_previous_syntax_item"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+m"
|
||||
command = "list.select"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "list.select"
|
||||
when = "completion_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "list.select"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "list.previous"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "up"
|
||||
command = "list.previous"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageUp"
|
||||
command = "list.previous_page"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "list.next"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "down"
|
||||
command = "list.next"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageDown"
|
||||
command = "list.next_page"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "o"
|
||||
command = "list.expand"
|
||||
when = "list_focus"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "/"
|
||||
command = "palette.line"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "modal.close"
|
||||
when = "modal_focus || completion_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "inline_completion.select"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "inline_completion.cancel"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+["
|
||||
command = "inline_completion.previous"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+]"
|
||||
command = "inline_completion.next"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+\\"
|
||||
command = "inline_completion.invoke"
|
||||
when = "!inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "right"
|
||||
command = "right"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "left"
|
||||
command = "left"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "up"
|
||||
command = "up"
|
||||
when = "!list_focus"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "down"
|
||||
command = "down"
|
||||
when = "!list_focus"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+h"
|
||||
command = "delete_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "insert_new_line"
|
||||
when = "!list_focus && !input_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "focus_replace_editor"
|
||||
when = "search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "focus_find_editor"
|
||||
when = "replace_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+enter"
|
||||
command = "search_backward"
|
||||
when = "search_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "search_forward"
|
||||
when = "search_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "global_search_refresh"
|
||||
when = "global_search_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "confirm_rename"
|
||||
when = "rename_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "insert_tab"
|
||||
when = "!in_snippet && !completion_focus && !inline_completion_visible && !search_focus && !replace_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+m"
|
||||
command = "insert_new_line"
|
||||
when = "!list_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+shift+up"
|
||||
command = "duplicate_line_up"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+shift+down"
|
||||
command = "duplicate_line_down"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ Modal -----------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "normal_mode"
|
||||
mode = "niv"
|
||||
when = "!search_focus && !modal_focus && !search_active && !inline_completion_visible"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+c"
|
||||
command = "normal_mode"
|
||||
mode = "niv"
|
||||
when = "!search_focus && !modal_focus && !search_active"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+["
|
||||
command = "normal_mode"
|
||||
mode = "niv"
|
||||
when = "!search_focus && !search_active"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+;"
|
||||
command = "palette.command"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+g"
|
||||
command = "go_to_line_default_last"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g g"
|
||||
command = "go_to_line_default_first"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "h"
|
||||
command = "left"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "j"
|
||||
command = "down"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "k"
|
||||
command = "up"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "l"
|
||||
command = "right"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "a"
|
||||
command = "append"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+a"
|
||||
command = "append_end_of_line"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "i"
|
||||
command = "insert_mode"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "u"
|
||||
command = "undo"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+r"
|
||||
command = "redo"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+i"
|
||||
command = "jump_location_forward_local"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+o"
|
||||
command = "jump_location_backward_local"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "goto_definition"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g d"
|
||||
command = "goto_definition"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g h"
|
||||
command = "show_hover"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "p"
|
||||
command = "paste"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+p"
|
||||
command = "paste_before"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+j"
|
||||
command = "join_lines"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "y"
|
||||
command = "yank"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "x"
|
||||
command = "delete_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "get_references"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "s"
|
||||
command = "delete_forward_and_insert"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c"
|
||||
command = "delete_forward_and_insert"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+s"
|
||||
command = "delete_line_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c c"
|
||||
command = "delete_line_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c w"
|
||||
command = "delete_word_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c e"
|
||||
command = "delete_word_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+i"
|
||||
command = "insert_first_non_blank"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "o"
|
||||
command = "new_line_below"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "0"
|
||||
command = "line_start"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+6"
|
||||
command = "line_start_non_blank"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+4"
|
||||
command = "line_end"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "w"
|
||||
command = "word_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "e"
|
||||
command = "word_end_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "b"
|
||||
command = "word_backward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+o"
|
||||
command = "new_line_above"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+e"
|
||||
command = "scroll_down"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+y"
|
||||
command = "scroll_up"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+u"
|
||||
command = "page_up"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+d"
|
||||
command = "page_down"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "z z"
|
||||
command = "center_of_window"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "z t"
|
||||
command = "top_of_window"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "z b"
|
||||
command = "bottom_of_window"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "d"
|
||||
command = "delete_forward"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "m"
|
||||
command = "create_mark"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "'"
|
||||
command = "go_to_mark"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "f"
|
||||
command = "inline_find_right"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+f"
|
||||
command = "inline_find_left"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = ";"
|
||||
command = "repeat_last_inline_find"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "d"
|
||||
command = "motion_mode_delete"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+."
|
||||
command = "motion_mode_indent"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+,"
|
||||
command = "motion_mode_outdent"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "y"
|
||||
command = "motion_mode_yank"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+8"
|
||||
command = "search_whole_word_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "n"
|
||||
command = "search_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+n"
|
||||
command = "search_backward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+5"
|
||||
command = "match_pairs"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "] shift+0"
|
||||
command = "next_unmatched_right_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "[ shift+9"
|
||||
command = "previous_unmatched_left_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "] shift+]"
|
||||
command = "next_unmatched_right_curly_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "[ shift+["
|
||||
command = "previous_unmatched_left_curly_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "v"
|
||||
command = "toggle_visual_mode"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+v"
|
||||
command = "toggle_linewise_visual_mode"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+v"
|
||||
command = "toggle_blockwise_visual_mode"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w l"
|
||||
command = "split_right"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w h"
|
||||
command = "split_left"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w j"
|
||||
command = "split_down"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w k"
|
||||
command = "split_up"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w s"
|
||||
command = "split_horizontal"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w v"
|
||||
command = "split_vertical"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w c"
|
||||
command = "split_close"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w x"
|
||||
command = "split_exchange"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "space"
|
||||
command = "toggle_code_glance"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+."
|
||||
command = "indent_line"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+,"
|
||||
command = "outdent_line"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+c"
|
||||
command = "delete_to_end_and_insert"
|
||||
mode = "n"
|
||||
@@ -0,0 +1,305 @@
|
||||
# --------------------------------- Window ---------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
command = "window_close"
|
||||
key = "Meta+Shift+W"
|
||||
|
||||
# --------------------------------- General --------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+p"
|
||||
command = "palette"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+p"
|
||||
command = "palette.command"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+e"
|
||||
command = "toggle_code_glance"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+,"
|
||||
command = "open_settings"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+k meta+s"
|
||||
command = "open_keyboard_shortcuts"
|
||||
|
||||
# [[keymaps]]
|
||||
# key = "meta+q"
|
||||
# command = "quit"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+="
|
||||
command = "zoom_in"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+-"
|
||||
command = "zoom_out"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+enter"
|
||||
command = "source_control_commit"
|
||||
when = "source_control_focus"
|
||||
|
||||
# --------------------------------- Basic editing ---------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+z"
|
||||
command = "undo"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+z"
|
||||
command = "redo"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+y"
|
||||
command = "redo"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+x"
|
||||
command = "clipboard_cut"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+c"
|
||||
command = "clipboard_copy"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+v"
|
||||
command = "clipboard_paste"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+f"
|
||||
command = "search"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+right"
|
||||
command = "word_end_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+left"
|
||||
command = "word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+left"
|
||||
command = "line_start_non_blank"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+right"
|
||||
command = "line_end"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+a"
|
||||
command = "line_start_non_blank"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+e"
|
||||
command = "line_end"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+k"
|
||||
command = "delete_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+backspace"
|
||||
command = "delete_word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+backspace"
|
||||
command = "delete_to_beginning_of_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k"
|
||||
command = "delete_to_end_of_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+delete"
|
||||
command = "delete_word_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+\\"
|
||||
command = "match_pairs"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+/"
|
||||
command = "toggle_line_comment"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+]"
|
||||
command = "indent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+["
|
||||
command = "outdent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+a"
|
||||
command = "select_all"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+enter"
|
||||
command = "new_line_below"
|
||||
when = "!source_control_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+enter"
|
||||
command = "new_line_above"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ Multi cursor -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+meta+up"
|
||||
command = "insert_cursor_above"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+meta+down"
|
||||
command = "insert_cursor_below"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+l"
|
||||
command = "select_current_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+l"
|
||||
command = "select_all_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+u"
|
||||
command = "select_undo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+d"
|
||||
command = "select_next_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+k meta+d"
|
||||
command = "select_skip_current"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ File Management --------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+s"
|
||||
command = "save"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+o"
|
||||
command = "open_file"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+n"
|
||||
command = "new_file"
|
||||
|
||||
# ----------------------------------- Editor Management -------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+w"
|
||||
command = "split_close"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+k f"
|
||||
command = "close_folder"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+\\"
|
||||
command = "split_vertical"
|
||||
|
||||
# --------------------------------- Rich Language Editing ----------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+space"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+i"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+space"
|
||||
command = "get_signature"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+."
|
||||
command = "show_code_actions"
|
||||
|
||||
# --------------------------------- Display -------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+e"
|
||||
command = "toggle_file_explorer_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+f"
|
||||
command = "toggle_search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+x"
|
||||
command = "toggle_plugin_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+m"
|
||||
command = "toggle_problem_focus"
|
||||
|
||||
# ------------------------------------ Navigation -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+up"
|
||||
command = "document_start"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+down"
|
||||
command = "document_end"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+f"
|
||||
command = "right"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "up"
|
||||
when = "!list_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "down"
|
||||
when = "!list_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+o"
|
||||
command = "palette.symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+t"
|
||||
command = "palette.workspace_symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+g"
|
||||
command = "palette.line"
|
||||
@@ -0,0 +1,310 @@
|
||||
# --------------------------------- Window ---------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
command = "close_window"
|
||||
key = "Alt+F4"
|
||||
|
||||
# --------------------------------- General --------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "palette"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+p"
|
||||
command = "palette.command"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+e"
|
||||
command = "toggle_code_glance"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+,"
|
||||
command = "open_settings"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k ctrl+s"
|
||||
command = "open_keyboard_shortcuts"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+="
|
||||
command = "zoom_in"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+-"
|
||||
command = "zoom_out"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+enter"
|
||||
command = "source_control_commit"
|
||||
when = "source_control_focus"
|
||||
|
||||
# --------------------------------- Terminal copy/paste ---------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+c"
|
||||
command = "clipboard_copy"
|
||||
mode = "t"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+v"
|
||||
command = "clipboard_paste"
|
||||
mode = "t"
|
||||
|
||||
# --------------------------------- Basic editing ---------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+z"
|
||||
command = "undo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+z"
|
||||
command = "redo"
|
||||
mode = "i"
|
||||
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+y"
|
||||
command = "redo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+x"
|
||||
command = "clipboard_cut"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+Delete"
|
||||
command = "clipboard_cut"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+c"
|
||||
command = "clipboard_copy"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+insert"
|
||||
command = "clipboard_copy"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+v"
|
||||
command = "clipboard_paste"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+insert"
|
||||
command = "clipboard_paste"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+f"
|
||||
command = "search"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+right"
|
||||
command = "word_end_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+left"
|
||||
command = "word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+backspace"
|
||||
command = "delete_word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+delete"
|
||||
command = "delete_word_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+\\"
|
||||
command = "match_pairs"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+/"
|
||||
command = "toggle_line_comment"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+]"
|
||||
command = "indent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+["
|
||||
command = "outdent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+a"
|
||||
command = "select_all"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+enter"
|
||||
command = "new_line_below"
|
||||
when = "!source_control_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+enter"
|
||||
command = "new_line_above"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ Multi cursor -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+ctrl+up"
|
||||
command = "insert_cursor_above"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+ctrl+down"
|
||||
command = "insert_cursor_below"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+l"
|
||||
command = "select_current_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+l"
|
||||
command = "select_all_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+u"
|
||||
command = "select_undo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+d"
|
||||
command = "select_next_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k ctrl+d"
|
||||
command = "select_skip_current"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ File Management --------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+s"
|
||||
command = "save"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+o"
|
||||
command = "open_file"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "new_file"
|
||||
|
||||
# ----------------------------------- Editor Management -------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w"
|
||||
command = "split_close"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k f"
|
||||
command = "close_folder"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+F4"
|
||||
command = "split_close"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+\\"
|
||||
command = "split_vertical"
|
||||
|
||||
# --------------------------------- Rich Language Editing ----------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+space"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+i"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+space"
|
||||
command = "get_signature"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+."
|
||||
command = "show_code_actions"
|
||||
|
||||
# --------------------------------- Display -------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+e"
|
||||
command = "toggle_file_explorer_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+f"
|
||||
command = "toggle_search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+x"
|
||||
command = "toggle_plugin_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+m"
|
||||
command = "toggle_problem_focus"
|
||||
|
||||
# ------------------------------------ Navigation -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+Home"
|
||||
command = "document_start"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+End"
|
||||
command = "document_end"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+b"
|
||||
command = "left"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+f"
|
||||
command = "right"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "up"
|
||||
when = "!list_focus"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "down"
|
||||
when = "!list_focus"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+o"
|
||||
command = "palette.symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+t"
|
||||
command = "palette.workspace_symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+g"
|
||||
command = "palette.line"
|
||||
@@ -0,0 +1,216 @@
|
||||
#:schema ../extra/schemas/color-theme.json
|
||||
|
||||
[color-theme]
|
||||
name = "Lapce Light"
|
||||
|
||||
[ui]
|
||||
font-family = ""
|
||||
font-size = 13
|
||||
header-height = 35
|
||||
status-height = 25
|
||||
tab-min-width = 100
|
||||
activity-width = 50
|
||||
scroll-width = 10
|
||||
drop-shadow-width = 0
|
||||
|
||||
[color-theme.base]
|
||||
black = "#383A42"
|
||||
blue = "#4078F2"
|
||||
cyan = "#0184BC"
|
||||
green = "#50A14F"
|
||||
grey = "#E5E5E6"
|
||||
magenta = "#A626A4"
|
||||
orange = "#D19A66"
|
||||
purple = "#A626A4"
|
||||
red = "#E45649"
|
||||
white = "#FAFAFA"
|
||||
yellow = "#C18401"
|
||||
|
||||
primary-background = "$white"
|
||||
# Background for 'secondary' elements: panels, palette, status bar, completion, hover
|
||||
secondary-background = "#EAEAEB"
|
||||
current-background = "#DBDBDC"
|
||||
text = "$black"
|
||||
dim-text = "#A0A1A7"
|
||||
|
||||
[color-theme.syntax]
|
||||
"comment" = "$dim-text"
|
||||
"constant" = "$yellow"
|
||||
"type" = "$yellow"
|
||||
"typeAlias" = "$yellow"
|
||||
"number" = "$yellow"
|
||||
"enum" = "$yellow"
|
||||
"struct" = "$yellow"
|
||||
"structure" = "$yellow"
|
||||
"interface" = "$yellow"
|
||||
"attribute" = "$yellow"
|
||||
"constructor" = "$yellow"
|
||||
|
||||
"function" = "$blue"
|
||||
"method" = "$blue"
|
||||
"function.method" = "$blue"
|
||||
|
||||
"keyword" = "$purple"
|
||||
"selfKeyword" = "$purple"
|
||||
|
||||
"field" = "$red"
|
||||
"property" = "$red"
|
||||
"enumMember" = "$red"
|
||||
"enum-member" = "$red"
|
||||
|
||||
"string" = "$green"
|
||||
"string.escape" = "$cyan"
|
||||
|
||||
"type.builtin" = "$cyan"
|
||||
"builtinType" = "$cyan"
|
||||
"escape" = "$cyan"
|
||||
"embedded" = "$cyan"
|
||||
|
||||
"punctuation.delimiter" = "$yellow"
|
||||
"text.title" = "$orange"
|
||||
"text.uri" = "$cyan"
|
||||
"text.reference" = "$yellow"
|
||||
"variable" = "$red"
|
||||
"variable.other.member" = "$red"
|
||||
"tag" = "$blue"
|
||||
|
||||
"markup.heading" = "$red"
|
||||
"markup.bold" = "$orange"
|
||||
"markup.italic" = "$orange"
|
||||
"markup.list" = "$orange"
|
||||
"markup.link.url" = "$blue"
|
||||
"markup.link.label" = "$purple"
|
||||
"markup.link.text" = "$purple"
|
||||
|
||||
"bracket.color.1" = "$blue"
|
||||
"bracket.color.2" = "$yellow"
|
||||
"bracket.color.3" = "$purple"
|
||||
"bracket.unpaired" = "$red"
|
||||
|
||||
[color-theme.ui]
|
||||
"lapce.error" = "#E51400"
|
||||
"lapce.warn" = "#E9A700"
|
||||
"lapce.dropdown_shadow" = "#B4B4B4"
|
||||
"lapce.border" = "#B4B4B4"
|
||||
"lapce.scroll_bar" = "#B4B4B4BB"
|
||||
|
||||
"lapce.button.primary.background" = "#50a14f"
|
||||
"lapce.button.primary.foreground" = "$white"
|
||||
|
||||
# tab
|
||||
"lapce.tab.active.background" = "$primary-background"
|
||||
"lapce.tab.active.foreground" = "$text"
|
||||
"lapce.tab.active.underline" = "#528BFF"
|
||||
|
||||
"lapce.tab.inactive.background" = "#EAEAEB"
|
||||
"lapce.tab.inactive.foreground" = "$text"
|
||||
"lapce.tab.inactive.underline" = "#528BFF77"
|
||||
|
||||
"lapce.tab.separator" = "#B4B4B4"
|
||||
|
||||
"lapce.icon.active" = "$text"
|
||||
"lapce.icon.inactive" = "$dim-text"
|
||||
|
||||
"lapce.remote.icon" = "$white"
|
||||
"lapce.remote.local" = "#4078F2"
|
||||
"lapce.remote.connected" = "#50A14F"
|
||||
"lapce.remote.connecting" = "#C18401"
|
||||
"lapce.remote.disconnected" = "#E45649"
|
||||
|
||||
"lapce.plugin.name" = "#444444"
|
||||
"lapce.plugin.description" = "$text"
|
||||
"lapce.plugin.author" = "#707070"
|
||||
|
||||
"terminal.cursor" = "$text"
|
||||
"terminal.foreground" = "$text"
|
||||
"terminal.background" = "$primary-background"
|
||||
"terminal.white" = "$white"
|
||||
"terminal.black" = "$black"
|
||||
"terminal.red" = "$red"
|
||||
"terminal.blue" = "$blue"
|
||||
"terminal.green" = "$green"
|
||||
"terminal.yellow" = "$yellow"
|
||||
"terminal.cyan" = "$cyan"
|
||||
"terminal.magenta" = "$magenta"
|
||||
"terminal.bright_white" = "#090A0B"
|
||||
"terminal.bright_red" = "$red"
|
||||
"terminal.bright_blue" = "$blue"
|
||||
"terminal.bright_green" = "$green"
|
||||
"terminal.bright_yellow" = "$yellow"
|
||||
"terminal.bright_cyan" = "$cyan"
|
||||
"terminal.bright_magenta" = "$magenta"
|
||||
"terminal.bright_black" = "#A0A1A7"
|
||||
|
||||
"editor.background" = "$primary-background"
|
||||
"editor.foreground" = "$text"
|
||||
"editor.dim" = "$dim-text"
|
||||
"editor.focus" = "#000000"
|
||||
"editor.caret" = "#526FFF"
|
||||
"editor.selection" = "$grey"
|
||||
"editor.current_line" = "#F2F2F2"
|
||||
"editor.debug_break_line" = "#528bFF55"
|
||||
"editor.link" = "$blue"
|
||||
"editor.visible_whitespace" = "$grey"
|
||||
"editor.indent_guide" = "$grey"
|
||||
"editor.drag_drop_background" = "#79c1fc33"
|
||||
"editor.drag_drop_tab_background" = "#0b0e1433"
|
||||
"editor.sticky_header_background" = "$primary-background"
|
||||
|
||||
"inlay_hint.foreground" = "$text"
|
||||
"inlay_hint.background" = "#528bFF55"
|
||||
|
||||
"error_lens.error.foreground" = "$red"
|
||||
"error_lens.error.background" = "#E4564920"
|
||||
"error_lens.warning.foreground" = "$yellow"
|
||||
"error_lens.warning.background" = "#C1840120"
|
||||
"error_lens.other.foreground" = "$dim-text"
|
||||
"error_lens.other.background" = "#A0A1A720"
|
||||
|
||||
"completion_lens.foreground" = "$dim-text"
|
||||
|
||||
"source_control.added" = "#50A14FCC"
|
||||
"source_control.removed" = "#FF5266CC"
|
||||
"source_control.modified" = "#0184BCCC"
|
||||
|
||||
"tooltip.background" = "$primary-background"
|
||||
"tooltip.foreground" = "$text"
|
||||
|
||||
"palette.background" = "$secondary-background"
|
||||
"palette.foreground" = "$text"
|
||||
"palette.current.background" = "$current-background"
|
||||
"palette.current.foreground" = "$text"
|
||||
|
||||
"completion.background" = "$secondary-background"
|
||||
"completion.current" = "$current-background"
|
||||
|
||||
"hover.background" = "$secondary-background"
|
||||
|
||||
"activity.background" = "$secondary-background"
|
||||
"activity.current" = "$primary-background"
|
||||
|
||||
"debug.breakpoint" = "$red"
|
||||
"debug.breakpoint.hover" = "#E4564966"
|
||||
|
||||
"panel.background" = "$secondary-background"
|
||||
"panel.foreground" = "$text"
|
||||
"panel.foreground.dim" = "$dim-text"
|
||||
"panel.current.background" = "$current-background"
|
||||
"panel.current.foreground" = "$text"
|
||||
"panel.current.foreground.dim" = "$dim-text"
|
||||
"panel.hovered.background" = "#CBCBCB"
|
||||
"panel.hovered.active.background" = "$dim-text"
|
||||
"panel.hovered.foreground" = "$text"
|
||||
"panel.hovered.foreground.dim" = "$dim-text"
|
||||
|
||||
"status.background" = "$secondary-background"
|
||||
"status.foreground" = "$text"
|
||||
"status.modal.normal.background" = "$blue"
|
||||
"status.modal.normal.foreground" = "$white"
|
||||
"status.modal.insert.background" = "$red"
|
||||
"status.modal.insert.foreground" = "$white"
|
||||
"status.modal.visual.background" = "$yellow"
|
||||
"status.modal.visual.foreground" = "$white"
|
||||
"status.modal.terminal.background" = "$purple"
|
||||
"status.modal.terminal.foreground" = "$white"
|
||||
|
||||
"markdown.blockquote" = "#686868"
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
# The run config is used for both run mode and debug mode
|
||||
|
||||
[[configs]]
|
||||
# the name of this task
|
||||
name = "task"
|
||||
|
||||
# the type of the debugger. If not set, it can't be debugged but can still be run
|
||||
# type = "lldb"
|
||||
|
||||
# the program to run, e.g. "${workspace}\\target\\debug\\check.exe"
|
||||
program = ""
|
||||
|
||||
# the program arguments, e.g. args = ["arg1", "arg2"], optional
|
||||
# args = []
|
||||
|
||||
# current working directory, optional
|
||||
# cwd = "${workspace}"
|
||||
|
||||
# environment variables, optional
|
||||
# [configs.env]
|
||||
# VAR1 = "VAL1"
|
||||
# VAR2 = "VAL2"
|
||||
|
||||
# task to run before the run/debug session is started, optional
|
||||
# [configs.prelaunch]
|
||||
# program = "cargo"
|
||||
# args = [
|
||||
# "build",
|
||||
# ]
|
||||
@@ -0,0 +1,105 @@
|
||||
#:schema ../extra/schemas/settings.json
|
||||
|
||||
[core]
|
||||
modal = false
|
||||
color-theme = "Lapce Dark"
|
||||
icon-theme = "Lapce Codicons"
|
||||
custom-titlebar = true
|
||||
file-explorer-double-click = false
|
||||
auto-reload-plugin = false
|
||||
|
||||
[editor]
|
||||
font-family = "monospace"
|
||||
font-size = 13
|
||||
code-glance-font-size = 2
|
||||
line-height = 1.5
|
||||
smart-tab = true
|
||||
tab-width = 4
|
||||
show-tab = true
|
||||
show-bread-crumbs = true
|
||||
scroll-beyond-last-line = true
|
||||
cursor-surrounding-lines = 1
|
||||
wrap-style = "editor-width"
|
||||
wrap-column = 80
|
||||
wrap-width = 600 # px
|
||||
sticky-header = true
|
||||
completion-width = 600
|
||||
completion-show-documentation = true
|
||||
completion-item-show-detail = false
|
||||
show-signature = true
|
||||
signature-label-code-block = true
|
||||
auto-closing-matching-pairs = true
|
||||
auto-surround = true
|
||||
hover-delay = 300 # ms
|
||||
modal-mode-relative-line-numbers = true
|
||||
format-on-save = false
|
||||
highlight-matching-brackets = true
|
||||
highlight-selection-occurrences = true
|
||||
highlight-scope-lines = false
|
||||
autosave-interval = 0
|
||||
format-on-autosave = true
|
||||
normalize-line-endings = true
|
||||
enable-inlay-hints = true
|
||||
inlay-hint-font-family = ""
|
||||
inlay-hint-font-size = 0
|
||||
enable-error-lens = true
|
||||
only-render-error-styling = true
|
||||
error-lens-end-of-line = true
|
||||
error-lens-font-family = ""
|
||||
error-lens-font-size = 0
|
||||
error-lens-multiline = false
|
||||
enable-completion-lens = false
|
||||
enable-inline-completion = true
|
||||
completion-lens-font-family = ""
|
||||
completion-lens-font-size = 0
|
||||
blink-interval = 500 # ms
|
||||
multicursor-case-sensitive = true
|
||||
multicursor-whole-words = true
|
||||
render-whitespace = "none"
|
||||
show-indent-guide = true
|
||||
atomic-soft-tabs = false
|
||||
double-click = "single"
|
||||
move-focus-while-search = true
|
||||
diff-context-lines = 3
|
||||
scroll-speed-modifier = 1
|
||||
bracket-pair-colorization = false
|
||||
bracket-colorization-limit = 30000
|
||||
files-exclude = "**/{.git,.svn,.hg,CVS,.DS_Store,Thumbs.db}" # Glob patterns
|
||||
|
||||
[terminal]
|
||||
font-family = ""
|
||||
font-size = 0
|
||||
line-height = 0
|
||||
|
||||
[terminal.default-profile]
|
||||
macos = "default"
|
||||
linux = "default"
|
||||
windows = "default"
|
||||
|
||||
[terminal.profiles]
|
||||
default = {}
|
||||
|
||||
# [terminal.profiles.example]
|
||||
# command = "cargo"
|
||||
# arguments = ["run"]
|
||||
# environment = { "KEY" = "VALUE" }
|
||||
# workdir = "/home/user"
|
||||
|
||||
[ui]
|
||||
scale = +1.0
|
||||
font-family = ""
|
||||
font-size = 13
|
||||
icon-size = 0
|
||||
header-height = 36
|
||||
status-height = 25
|
||||
tab-min-width = 100
|
||||
tab-separator-height = "Content"
|
||||
scroll-width = 10
|
||||
drop-shadow-width = 0
|
||||
palette-width = 500
|
||||
hover-font-family = ""
|
||||
hover-font-size = 0
|
||||
trim-search-results-whitespace = true
|
||||
list-line-height = 25
|
||||
tab-close-button = "Right"
|
||||
open-editors-visible = true
|
||||
@@ -0,0 +1,15 @@
|
||||
[licenses]
|
||||
# use SPDX short identifiers
|
||||
allow = [
|
||||
"Apache-2.0",
|
||||
"Apache-2.0 WITH LLVM-exception",
|
||||
"BSD-2-Clause",
|
||||
"BSD-3-Clause",
|
||||
"BSL-1.0",
|
||||
"CC0-1.0",
|
||||
"ISC",
|
||||
"MIT",
|
||||
"MPL-2.0",
|
||||
"Unicode-DFS-2016",
|
||||
"Zlib",
|
||||
]
|
||||
@@ -0,0 +1,244 @@
|
||||
variable "RUST_VERSION" {
|
||||
default = "1"
|
||||
}
|
||||
|
||||
variable "XX_VERSION" {
|
||||
default = "master"
|
||||
}
|
||||
|
||||
variable "PACKAGE_NAME" {
|
||||
default = RELEASE_TAG_NAME == "nightly" ? "lapce-nightly" : "lapce"
|
||||
}
|
||||
|
||||
variable "RELEASE_TAG_NAME" {}
|
||||
|
||||
target "_common" {
|
||||
context = "."
|
||||
platforms = ["local"]
|
||||
output = ["target"]
|
||||
args = {
|
||||
PACKAGE_NAME = PACKAGE_NAME
|
||||
RELEASE_TAG_NAME = RELEASE_TAG_NAME
|
||||
RUST_VERSION = RUST_VERSION
|
||||
XX_VERSION = XX_VERSION
|
||||
}
|
||||
}
|
||||
|
||||
variable "platforms" {
|
||||
default = [
|
||||
"linux/amd64",
|
||||
"linux/arm64",
|
||||
]
|
||||
}
|
||||
|
||||
target "_platforms" {
|
||||
platforms = platforms
|
||||
}
|
||||
|
||||
group "default" {
|
||||
targets = ["binary"]
|
||||
}
|
||||
|
||||
target "binary" {
|
||||
inherits = ["_common"]
|
||||
target = "binary"
|
||||
args = {
|
||||
ZSTD_SYS_USE_PKG_CONFIG = "1"
|
||||
LIBGIT2_STATIC = "1"
|
||||
LIBSSH2_STATIC = "1"
|
||||
LIBZ_SYS_STATIC = "1"
|
||||
OPENSSL_STATIC = "1"
|
||||
OPENSSL_NO_VENDOR = "0"
|
||||
PKG_CONFIG_ALL_STATIC = "1"
|
||||
}
|
||||
}
|
||||
|
||||
target "cross-binary" {
|
||||
inherits = ["binary", "_platforms"]
|
||||
target = "cross-binary"
|
||||
}
|
||||
|
||||
target "package" {
|
||||
inherits = ["_common"]
|
||||
target = "package"
|
||||
args = {
|
||||
ZSTD_SYS_USE_PKG_CONFIG = "1"
|
||||
LIBGIT2_STATIC = "0"
|
||||
LIBSSH2_STATIC = "0"
|
||||
LIBZ_SYS_STATIC = "0"
|
||||
OPENSSL_STATIC = "0"
|
||||
OPENSSL_NO_VENDOR = "1"
|
||||
PKG_CONFIG_ALL_STATIC = "0"
|
||||
}
|
||||
}
|
||||
|
||||
target "cross-package" {
|
||||
inherits = ["package", "_platforms"]
|
||||
target = "cross-package"
|
||||
}
|
||||
|
||||
// OS
|
||||
|
||||
variable "DPKG_FAMILY_PACKAGES" {
|
||||
default = [
|
||||
"libc6-dev",
|
||||
"libssl-dev",
|
||||
"zlib1g-dev",
|
||||
"libzstd-dev",
|
||||
"libvulkan-dev",
|
||||
"libwayland-dev",
|
||||
"libxcb-shape0-dev",
|
||||
"libxcb-xfixes0-dev",
|
||||
"libxkbcommon-x11-dev",
|
||||
]
|
||||
}
|
||||
|
||||
target "debian" {
|
||||
inherits = [build.type]
|
||||
name = "${os_name}-${build.os_version}-${build.type}"
|
||||
dockerfile = "extra/linux/docker/${os_name}/Dockerfile"
|
||||
args = {
|
||||
DISTRIBUTION_NAME = os_name
|
||||
DISTRIBUTION_VERSION = build.os_version
|
||||
DISTRIBUTION_PACKAGES = join(" ", coalesce(build.packages, DPKG_FAMILY_PACKAGES))
|
||||
}
|
||||
platforms = coalesce(build.platforms, platforms)
|
||||
matrix = {
|
||||
os_name = ["debian"]
|
||||
build = [
|
||||
{ packages = null, platforms = null, type = "package", os_version = "bullseye" }, # 11
|
||||
{ packages = null, platforms = null, type = "package", os_version = "bookworm" }, # 12
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
target "cross-debian" {
|
||||
inherits = ["debian", "cross-package"]
|
||||
}
|
||||
|
||||
target "ubuntu" {
|
||||
inherits = [build.type]
|
||||
name = "${os_name}-${build.os_version}-${build.type}"
|
||||
dockerfile = "extra/linux/docker/${os_name}/Dockerfile"
|
||||
args = {
|
||||
DISTRIBUTION_NAME = os_name
|
||||
DISTRIBUTION_VERSION = build.os_version
|
||||
DISTRIBUTION_PACKAGES = join(" ", coalesce(build.packages, DPKG_FAMILY_PACKAGES))
|
||||
}
|
||||
platforms = coalesce(build.platforms, platforms)
|
||||
matrix = {
|
||||
os_name = ["ubuntu"]
|
||||
build = [
|
||||
{ packages = null, platforms = null, type = "package", os_version = "bionic" }, # 18.04
|
||||
{ packages = null, platforms = null, type = "package", os_version = "focal" }, # 20.04
|
||||
{ packages = null, platforms = null, type = "package", os_version = "jammy" }, # 22.04
|
||||
{ packages = null, platforms = null, type = "package", os_version = "noble" }, # 24.04
|
||||
{ packages = null, platforms = null, type = "package", os_version = "oracular" }, # 24.10
|
||||
{ packages = null, platforms = null, type = "package", os_version = "plucky" }, # 25.04
|
||||
# static binary, it looks ugly to define the target this way
|
||||
# but I don't have a better way to make it more friendly on CLI side without
|
||||
# more terrible code-wise way to implement it
|
||||
{ packages = null, platforms = null, type = "binary", os_version = "focal" }, # 20.04
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
target "cross-ubuntu" {
|
||||
inherits = ["ubuntu", "cross-package"]
|
||||
}
|
||||
|
||||
variable "RHEL_FAMILY_PACKAGES" {
|
||||
default = [
|
||||
"openssl-devel",
|
||||
"wayland-devel",
|
||||
"vulkan-loader-devel",
|
||||
"libzstd-devel",
|
||||
"libxcb-devel",
|
||||
"libxkbcommon-x11-devel",
|
||||
]
|
||||
}
|
||||
|
||||
target "fedora" {
|
||||
inherits = [build.type]
|
||||
name = "${name}-${build.version}-${build.type}"
|
||||
dockerfile = "extra/linux/docker/${name}/Dockerfile"
|
||||
args = {
|
||||
XX_VERSION = "test"
|
||||
|
||||
DISTRIBUTION_NAME = name
|
||||
DISTRIBUTION_VERSION = build.version
|
||||
DISTRIBUTION_PACKAGES = join(" ", coalesce(build.packages, RHEL_FAMILY_PACKAGES))
|
||||
}
|
||||
// platforms = coalesce(build.platforms, platforms)
|
||||
platforms = ["linux/amd64"]
|
||||
matrix = {
|
||||
name = ["fedora"]
|
||||
build = [
|
||||
{ packages = null, platforms = null, type = "package", version = "39" },
|
||||
{ packages = null, platforms = null, type = "package", version = "40" },
|
||||
{ packages = null, platforms = null, type = "package", version = "41" },
|
||||
{ packages = null, platforms = null, type = "package", version = "42" },
|
||||
{ packages = null, platforms = null, type = "package", version = "43" },
|
||||
{ packages = null, platforms = null, type = "package", version = "rawhide" },
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
target "cross-fedora" {
|
||||
inherits = ["fedora", "cross-package"]
|
||||
}
|
||||
|
||||
variable "APK_FAMILY_PACKAGES" {
|
||||
default = [
|
||||
"make",
|
||||
"clang",
|
||||
"git",
|
||||
"lld",
|
||||
"build-base",
|
||||
"rustup",
|
||||
"openssl-dev",
|
||||
"openssl-libs-static",
|
||||
"libssh2-static",
|
||||
"libgit2-static",
|
||||
"fontconfig-static",
|
||||
"freetype-static",
|
||||
"zlib-static",
|
||||
"gcc",
|
||||
"zstd-static",
|
||||
"libxcb-static",
|
||||
"libxkbcommon-static",
|
||||
"vulkan-loader-dev",
|
||||
]
|
||||
}
|
||||
|
||||
target "alpine" {
|
||||
inherits = ["binary"]
|
||||
name = format("${os_name}-%s", replace(build.os_version, ".", "-"))
|
||||
dockerfile = "extra/linux/docker/${os_name}/Dockerfile"
|
||||
args = {
|
||||
DISTRIBUTION_NAME = os_name
|
||||
DISTRIBUTION_VERSION = build.os_version
|
||||
DISTRIBUTION_PACKAGES = join(" ", coalesce(build.packages, APK_FAMILY_PACKAGES))
|
||||
}
|
||||
platforms = coalesce(build.platforms, platforms)
|
||||
matrix = {
|
||||
os_name = ["alpine"]
|
||||
build = [
|
||||
{ os_version = "", packages = null, platforms = null },
|
||||
{ os_version = "3.22", packages = null, platforms = null },
|
||||
{ os_version = "3.20", packages = null, platforms = null },
|
||||
{ os_version = "3.18", packages = null, platforms = null },
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
target "cross-alpine" {
|
||||
inherits = ["alpine-3-20", "cross-binary"]
|
||||
}
|
||||
|
||||
target "alpine-dev" {
|
||||
inherits = ["alpine-3-20"]
|
||||
target = "dev"
|
||||
tags = ["lapce/lapce:dev"]
|
||||
output = ["type=docker"]
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
## Building from source
|
||||
|
||||
It is easy to build Lapce from source on a GNU/Linux distribution. Cargo handles the build process, all you need to do, is ensure the correct dependencies are installed.
|
||||
|
||||
1. Install the Rust compiler and Cargo using [`rustup.rs`](https://rustup.rs/). If you already have the toolchain, ensure you are using latest Rust version.
|
||||
|
||||
2. Install dependencies for your operating system:
|
||||
|
||||
#### Ubuntu
|
||||
```sh
|
||||
sudo apt install clang libxkbcommon-x11-dev pkg-config libvulkan-dev libwayland-dev xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
```
|
||||
#### Fedora
|
||||
```sh
|
||||
sudo dnf install clang libxkbcommon-x11-devel libxcb-devel vulkan-loader-devel wayland-devel openssl-devel pkgconf
|
||||
```
|
||||
#### Void Linux
|
||||
```sh
|
||||
sudo xbps-install -S base-devel clang libxkbcommon-devel vulkan-loader wayland-devel
|
||||
```
|
||||
|
||||
3. Clone this repository (this command will clone to your home directory):
|
||||
```sh
|
||||
git clone https://github.com/lapce/lapce.git ~/lapce
|
||||
```
|
||||
|
||||
4. `cd` into the repository, and run the build command with the release flag
|
||||
```sh
|
||||
cd ~/lapce
|
||||
```
|
||||
|
||||
```sh
|
||||
cargo install --path . --bin lapce --profile release-lto --locked
|
||||
```
|
||||
|
||||
> If you use a different distribution, and are having trouble finding appropriate dependencies, let us know in an issue!
|
||||
|
||||
Once Lapce is compiled, the executable will be available in `$HOME/.cargo/bin/lapce` and should be available in `PATH` automatically.
|
||||
|
||||
## Building using Docker or Podman
|
||||
|
||||
Packages available in releases are built using containers based on multi-stage Dockerfiles. To easily orchestrate builds, there is a `docker-bake.hcl` manifest in root of repository that defines all stages and targets.
|
||||
If you want to build all packages for ubuntu, you can run `RELEASE_TAG_NAME=nightly docker buildx bake ubuntu` (`RELEASE_TAG_NAME` is a required environment variable used to tell what kind of release is being built as well as baking in the version itself).
|
||||
To scope in to specific distribution version, you can define target with it's version counterpart from matrix, e.g. to build only Ubuntu Focal package, you can run `RELEASE_TAG_NAME=nightly docker buildx bake ubuntu-focal`.
|
||||
Additionally to building multiple OS versions at the same time, Docker-based builds will also try to cross-compile Lapce for other architectures.
|
||||
This does not require QEMU installed as it's done via true cross-compilation meaning `HOST` will run your native OS/CPU architecture and `TARGET` will be the wanted architecture, instead of spawning container that's running OS using `TARGET` architecture.
|
||||
|
||||
> ![WARNING]
|
||||
> Do not run plain targets like `ubuntu` or `fedora` if you don't have very powerful machine, as it will spawn many concurrent jobs
|
||||
> which will take a long time to build.
|
||||
@@ -0,0 +1,20 @@
|
||||
## Installation With Package Manager
|
||||
|
||||
Lapce is available in below software repositories:
|
||||
|
||||
[](https://repology.org/project/lapce/versions)
|
||||
|
||||
Lapce is also additionally available via:
|
||||
|
||||
- [Flatpak](https://flathub.org/apps/details/dev.lapce.lapce)
|
||||
- [Scoop](https://scoop.sh/#/apps?q=lapce)
|
||||
|
||||
|
||||
For Fedora Linux, Lapce is (unofficially) available via dnf RPM package manager, using nightly as of 2024.01:
|
||||
|
||||
- [copr](https://copr.fedorainfracloud.org/coprs/titaniumtown/lapce/)
|
||||
|
||||
```bash
|
||||
sudo dnf copr enable titaniumtown/lapce
|
||||
sudo dnf install lapce
|
||||
```
|
||||
@@ -0,0 +1,8 @@
|
||||
# Updating versioning for package managers and whatnot
|
||||
|
||||
- App metainfo: `extra/linux/dev.lapce.lapce.metainfo.xml`
|
||||
- macOS plist (`CFBundleShortVersionString`): `extra/macos/Lapce.app/Contents/Info.plist`
|
||||
- Rust: `Cargo.toml`
|
||||
- Obviously changelog: `CHANGELOG.md`
|
||||
- RPM spec: `lapce.spec`
|
||||
- Windows wix spec (`<Product [...] Version=X.X.X>`): `extra/windows/wix/lapce.wxs`
|
||||
@@ -0,0 +1,23 @@
|
||||
I'm a Vim fan. After years of using it, I started to customize it like everybody else. I thought I had something that worked quite well until I hit one problem. My linter sometimes took seconds to check the code, and it would freeze Vim because Vim didn't have asynchronous support. I looked around; I found NeoVim and problem solved. Happy days.
|
||||
|
||||
But there was always this one thing I couldn't solve. I want to make Vim pretty. I tried all kinds of themes. Tried all kinds of status bar plugins with icons in it. File explorers with file icons in them. But no, I also wanted a 1px vertical split bar, not the thick colored one or the dashed line drawn with pipe characters. After hours and hours of search, it occurred to me that it's impossible to do. Again NeoVim was the savior. It introduced external UI. The idea was that NeoVim splits the UI and the backend. The backend emits events to the UI, and the UI draws them. I couldn't wait to try it out with writing a UI in Electron, with the hope that I could solve my vertical split bar dream. But I didn't because it emits the drawing events treating it as a whole canvas, and I don't get the boundary of each splits. I started to hack NeoVim code. I made it to emit split sizes and positions, and I finally can draw the bars in the UI. With joy, I also looked at emits the command modes to the UI, so I could put the command in the middle of the window. And then echo messages, status line, etc. I pushed a PR for the hacky solution(https://github.com/neovim/neovim/pull/5686). Then I hit performance issues in Electron because Javascript was not fast enough to deserialize the drawing events from NeoVim. So I wrote another UI in Go with Qt binding(https://github.com/dzhou121/gonvim).
|
||||
|
||||
I wanted to external more and more components in NeoVim, but I found it harder and harder, and I spotted Xi-Editor. I started to write a UI for it straightaway. Creating a code editor with Vim editing experience was the plan. There were things missing that I had to add in Xi. And working on it was so much easier because Xi was built to be the UI/backend architecture without the heritage(burden) of (Neo)Vim.
|
||||
|
||||
Then one day, I experienced VSCode's remote development feature, and it felt so "local". I wanted to add the feature to my code editor. Then I realized that it can't be done with NeoVim or Xi's UI/backend architecture. The reason was that (Neo)Vim/Xi backends are the editing engine, so when you put the backend to a remote machine, every keyboard input needs to be sent to it, and the backend emits the drawing events to you, which will include the network latency in everything you type. That wouldn't work. The editing logic must be tightly bound with the UI to give the best editing experience.
|
||||
|
||||
So the new architecture I came up with was like this:
|
||||
|
||||
UI
|
||||
Reads file from Proxy<br>
|
||||
Handle keyboard/mouse events and do the edits on the file buffer<br>
|
||||
Send the file editing delta to the proxy to keep the file in sync<br>
|
||||
|
||||
Proxy
|
||||
Receive save event from UI and flush the file buffer to disk<br>
|
||||
proxy the events between UI and the plugins<br>
|
||||
|
||||
Plugin
|
||||
Communicate with UI through proxy<br>
|
||||
|
||||
UI sits locally. Proxy and Plugin will be in the remote box when doing remote development. With this architecture, I can make sure the editing experience is always the best, with other considerations like syntax highlighting being done in a different thread, so nothing blocks the main thread at any time. I finally had a lightning-fast and powerful code editor. (which can be beautiful as well)
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,187 @@
|
||||
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
|
||||
Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
|
||||
|
||||
|
||||
Bitstream Vera Fonts Copyright
|
||||
------------------------------
|
||||
|
||||
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
|
||||
a trademark of Bitstream, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of the fonts accompanying this license ("Fonts") and associated
|
||||
documentation files (the "Font Software"), to reproduce and distribute the
|
||||
Font Software, including without limitation the rights to use, copy, merge,
|
||||
publish, distribute, and/or sell copies of the Font Software, and to permit
|
||||
persons to whom the Font Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright and trademark notices and this permission notice shall
|
||||
be included in all copies of one or more of the Font Software typefaces.
|
||||
|
||||
The Font Software may be modified, altered, or added to, and in particular
|
||||
the designs of glyphs or characters in the Fonts may be modified and
|
||||
additional glyphs or characters may be added to the Fonts, only if the fonts
|
||||
are renamed to names not containing either the words "Bitstream" or the word
|
||||
"Vera".
|
||||
|
||||
This License becomes null and void to the extent applicable to Fonts or Font
|
||||
Software that has been modified and is distributed under the "Bitstream
|
||||
Vera" names.
|
||||
|
||||
The Font Software may be sold as part of a larger software package but no
|
||||
copy of one or more of the Font Software typefaces may be sold by itself.
|
||||
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
||||
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
||||
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
|
||||
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
|
||||
FONT SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of Gnome, the Gnome
|
||||
Foundation, and Bitstream Inc., shall not be used in advertising or
|
||||
otherwise to promote the sale, use or other dealings in this Font Software
|
||||
without prior written authorization from the Gnome Foundation or Bitstream
|
||||
Inc., respectively. For further information, contact: fonts at gnome dot
|
||||
org.
|
||||
|
||||
Arev Fonts Copyright
|
||||
------------------------------
|
||||
|
||||
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the fonts accompanying this license ("Fonts") and
|
||||
associated documentation files (the "Font Software"), to reproduce
|
||||
and distribute the modifications to the Bitstream Vera Font Software,
|
||||
including without limitation the rights to use, copy, merge, publish,
|
||||
distribute, and/or sell copies of the Font Software, and to permit
|
||||
persons to whom the Font Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright and trademark notices and this permission notice
|
||||
shall be included in all copies of one or more of the Font Software
|
||||
typefaces.
|
||||
|
||||
The Font Software may be modified, altered, or added to, and in
|
||||
particular the designs of glyphs or characters in the Fonts may be
|
||||
modified and additional glyphs or characters may be added to the
|
||||
Fonts, only if the fonts are renamed to names not containing either
|
||||
the words "Tavmjong Bah" or the word "Arev".
|
||||
|
||||
This License becomes null and void to the extent applicable to Fonts
|
||||
or Font Software that has been modified and is distributed under the
|
||||
"Tavmjong Bah Arev" names.
|
||||
|
||||
The Font Software may be sold as part of a larger software package but
|
||||
no copy of one or more of the Font Software typefaces may be sold by
|
||||
itself.
|
||||
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
|
||||
TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of Tavmjong Bah shall not
|
||||
be used in advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Font Software without prior written authorization
|
||||
from Tavmjong Bah. For further information, contact: tavmjong @ free
|
||||
. fr.
|
||||
|
||||
TeX Gyre DJV Math
|
||||
-----------------
|
||||
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
|
||||
|
||||
Math extensions done by B. Jackowski, P. Strzelczyk and P. Pianowski
|
||||
(on behalf of TeX users groups) are in public domain.
|
||||
|
||||
Letters imported from Euler Fraktur from AMSfonts are (c) American
|
||||
Mathematical Society (see below).
|
||||
Bitstream Vera Fonts Copyright
|
||||
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
|
||||
is a trademark of Bitstream, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of the fonts accompanying this license (“Fonts”) and associated
|
||||
documentation
|
||||
files (the “Font Software”), to reproduce and distribute the Font Software,
|
||||
including without limitation the rights to use, copy, merge, publish,
|
||||
distribute,
|
||||
and/or sell copies of the Font Software, and to permit persons to whom
|
||||
the Font Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright and trademark notices and this permission notice
|
||||
shall be
|
||||
included in all copies of one or more of the Font Software typefaces.
|
||||
|
||||
The Font Software may be modified, altered, or added to, and in particular
|
||||
the designs of glyphs or characters in the Fonts may be modified and
|
||||
additional
|
||||
glyphs or characters may be added to the Fonts, only if the fonts are
|
||||
renamed
|
||||
to names not containing either the words “Bitstream” or the word “Vera”.
|
||||
|
||||
This License becomes null and void to the extent applicable to Fonts or
|
||||
Font Software
|
||||
that has been modified and is distributed under the “Bitstream Vera”
|
||||
names.
|
||||
|
||||
The Font Software may be sold as part of a larger software package but
|
||||
no copy
|
||||
of one or more of the Font Software typefaces may be sold by itself.
|
||||
|
||||
THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
||||
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
||||
FOUNDATION
|
||||
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
|
||||
SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
|
||||
ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR
|
||||
INABILITY TO USE
|
||||
THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Except as contained in this notice, the names of GNOME, the GNOME
|
||||
Foundation,
|
||||
and Bitstream Inc., shall not be used in advertising or otherwise to promote
|
||||
the sale, use or other dealings in this Font Software without prior written
|
||||
authorization from the GNOME Foundation or Bitstream Inc., respectively.
|
||||
For further information, contact: fonts at gnome dot org.
|
||||
|
||||
AMSFonts (v. 2.2) copyright
|
||||
|
||||
The PostScript Type 1 implementation of the AMSFonts produced by and
|
||||
previously distributed by Blue Sky Research and Y&Y, Inc. are now freely
|
||||
available for general use. This has been accomplished through the
|
||||
cooperation
|
||||
of a consortium of scientific publishers with Blue Sky Research and Y&Y.
|
||||
Members of this consortium include:
|
||||
|
||||
Elsevier Science IBM Corporation Society for Industrial and Applied
|
||||
Mathematics (SIAM) Springer-Verlag American Mathematical Society (AMS)
|
||||
|
||||
In order to assure the authenticity of these fonts, copyright will be
|
||||
held by
|
||||
the American Mathematical Society. This is not meant to restrict in any way
|
||||
the legitimate use of the fonts, such as (but not limited to) electronic
|
||||
distribution of documents containing these fonts, inclusion of these fonts
|
||||
into other public domain or commercial font collections or computer
|
||||
applications, use of the outline data to create derivative fonts and/or
|
||||
faces, etc. However, the AMS does require that the AMS copyright notice be
|
||||
removed from any derivative versions of the fonts which have been altered in
|
||||
any way. In addition, to ensure the fidelity of TeX documents using Computer
|
||||
Modern fonts, Professor Donald Knuth, creator of the Computer Modern faces,
|
||||
has requested that any alterations which yield different font metrics be
|
||||
given a different name.
|
||||
|
||||
$Id$
|
||||
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 237 KiB |
@@ -0,0 +1,8 @@
|
||||
<svg version="1.1" id="svg2" width="2880" height="2880" viewBox="0 0 2880 2880" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs id="defs6"></defs>
|
||||
<g id="g10" transform="matrix(4.511777, 0, 0, -4.511777, -3433.283203, 6312.723633)" style="filter: none;">
|
||||
<g id="g12" transform="scale(0.1)">
|
||||
<path d="m 8680.16,13575.4 -567.42,327.6 c 0,-2068.7 -0.01,-4137.33 -0.01,-6205.98 551.01,318.11 1102.02,636.24 1653.02,954.37 V 9306.6 L 8680.16,8679.83 c 0,1631.87 0.02,3263.67 0,4895.57 z M 9768.37,9981 v 2310.9 c 861.33,-497.3 1722.73,-994.6 2584.03,-1491.9 -672.2,-388.1 -1344.4,-776.2 -2016.6,-1164.29 V 8980.5 c 861.3,497.3 1722.7,994.6 2584,1491.9 l 567.5,327.6 -567.5,327.6 c -1050.5,606.5 -2100.9,1213 -3151.43,1819.5 l -2.62,1.5 -567.43,327.6 c 0,-1208.1 0.01,-2416.2 0.01,-3624.32 z m 1447.33,835.6 -879.9,508.1 v -1016.1 z" style="fill:#1a1a1a;fill-opacity:1;fill-rule:evenodd;stroke:none" id="path14"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 944 B |
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="250" y1="60.691" x2="250" y2="439.31" id="gradient-1" gradientTransform="matrix(0.62884, 0.62884, -0.62884, 0.62884, 301.693542, -118.848228)">
|
||||
<stop offset="0" style="stop-color: rgb(2, 6, 21);"/>
|
||||
<stop offset="1" style="stop-color: rgb(18, 25, 53);"/>
|
||||
</linearGradient>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="10802.515" y1="7688.36" x2="10802.515" y2="13911.66" id="gradient-2" gradientTransform="matrix(-0.028, -0.028, 0.028, -0.028, 233.907039, 905.05849)">
|
||||
<stop offset="0" style="stop-color: rgb(0, 62, 149);"/>
|
||||
<stop offset="1" style="stop-color: rgb(70, 172, 255);"/>
|
||||
</linearGradient>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="10800.265" y1="7696.154" x2="10800.265" y2="13903.866" id="gradient-3" gradientTransform="matrix(0.044238, 0, 0, -0.044238, -212.162399, 727.776001)">
|
||||
<stop offset="0" style="stop-color: rgb(0, 62, 149);"/>
|
||||
<stop offset="1" style="stop-color: rgba(0, 0, 0, 1)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g style="" transform="matrix(1.205162, 0, 0, 1.205162, -51.290611, -51.290611)">
|
||||
<rect x="60.691" y="60.691" width="378.619" height="378.619" rx="40" ry="40" style="stroke: rgb(0, 0, 0); stroke-width: 0px; fill: url(#gradient-1);"/>
|
||||
<path d="M 171.945 127.03 L 146.511 112.346 L 146.511 112.729 C 146.511 204.245 146.511 295.758 146.511 387.272 L 146.511 387.655 L 146.843 387.463 C 171.219 373.391 195.594 359.317 219.97 345.243 L 220.08 345.18 L 220.08 315.683 L 172.056 343.411 L 172.056 343.257 C 172.056 271.245 172.057 199.414 172.056 127.221 L 172.056 127.094 L 171.945 127.03 Z M 220.329 184.461 C 258.277 206.37 295.767 228.015 333.714 249.924 L 333.846 250.001 L 333.714 250.077 C 303.976 267.246 274.704 284.147 244.967 301.316 L 244.856 301.379 L 244.856 330.876 L 245.188 330.684 C 283.291 308.684 321.398 286.685 359.5 264.685 L 384.738 250.116 L 384.937 250.001 L 359.5 235.317 C 313.028 208.486 266.559 181.655 220.085 154.824 L 219.969 154.758 L 194.536 140.074 L 194.536 140.457 C 194.536 193.902 194.536 247.346 194.536 300.792 L 194.536 301.175 L 220.086 286.424 L 220.196 286.36 L 220.196 184.384 L 220.329 184.461 Z M 244.856 272.123 L 284.445 249.266 L 244.856 226.406 L 244.856 272.123 Z" style="fill-opacity: 1; fill-rule: evenodd; stroke-width: 0px; fill: url(#gradient-2);" id="path14"/>
|
||||
<path d="M 171.846 127.202 L 146.711 112.69 L 146.711 112.729 C 146.711 204.245 146.71 295.758 146.71 387.272 L 146.71 387.31 L 146.743 387.291 C 171.119 373.218 195.495 359.145 219.87 345.071 L 219.881 345.065 L 219.881 345.065 L 219.881 345.065 L 219.881 316.028 L 171.857 343.755 L 171.857 343.602 C 171.857 271.475 171.857 199.414 171.857 127.221 L 171.857 127.209 L 171.846 127.202 Z M 171.79 127.221 L 171.812 127.234 L 171.812 127.285 C 171.813 199.457 171.812 271.602 171.812 343.794 L 171.812 343.832 L 219.837 316.105 L 219.837 345.039 L 219.793 345.065 C 195.436 359.128 171.23 373.103 146.887 387.157 L 146.754 387.233 L 146.754 387.08 C 146.754 295.63 146.755 204.372 146.755 112.92 L 146.755 112.767 L 171.768 127.209 L 171.79 127.221 Z M 220.13 184.116 C 258.178 206.084 296.065 227.956 334.112 249.924 L 334.244 250.001 L 334.112 250.077 C 304.397 267.234 274.803 284.32 245.066 301.488 L 245.055 301.494 L 245.055 330.531 L 245.088 330.512 C 283.191 308.512 321.298 286.512 359.401 264.512 L 384.539 250.001 L 359.401 235.489 C 312.928 208.658 266.46 181.828 219.986 154.997 L 219.87 154.931 L 194.735 140.419 L 194.735 140.457 C 194.735 193.902 194.735 247.346 194.735 300.792 L 194.735 300.83 L 219.986 286.251 L 219.997 286.245 L 219.997 286.252 L 220.014 286.235 L 219.997 286.245 L 219.997 286.245 L 219.997 184.04 L 220.13 184.116 Z M 219.953 286.194 L 219.953 286.219 L 219.931 286.232 L 194.78 300.753 L 194.78 300.6 C 194.78 247.219 194.779 194.029 194.779 140.649 L 194.779 140.496 L 219.848 154.969 L 219.964 155.035 C 266.438 181.866 312.906 208.697 359.378 235.527 L 384.451 250.001 L 359.378 264.474 C 321.276 286.474 283.279 308.41 245.232 330.378 L 245.1 330.454 L 245.1 301.545 L 245.1 301.52 L 245.122 301.507 L 245.144 301.494 C 274.862 284.337 304.563 267.189 334.3 250.02 L 334.333 250.001 L 334.3 249.982 C 296.197 227.982 258.09 205.982 219.986 183.982 L 219.953 183.963 L 219.953 286.194 Z M 284.047 249.266 L 245.055 226.75 L 245.055 271.778 L 284.047 249.266 Z M 245.1 226.827 L 283.959 249.266 L 245.1 271.701 L 245.1 226.827 Z" style="stroke-width: 0px; fill: url(#gradient-3);"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="250" y1="60.691" x2="250" y2="439.31" id="gradient-1" gradientTransform="matrix(0.912777, 0.912777, -0.912777, 0.912777, 250.049508, -206.672811)" spreadMethod="pad">
|
||||
<stop offset="0" style="stop-color: rgb(168, 204, 255);"/>
|
||||
<stop offset="1" style="stop-color: rgb(250, 250, 250);"/>
|
||||
</linearGradient>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="10802.515" y1="7688.36" x2="10802.515" y2="13911.66" id="gradient-2" gradientTransform="matrix(-0.028, -0.028, 0.028, -0.028, 233.907039, 905.05849)">
|
||||
<stop offset="0" style="stop-color: rgb(0, 62, 149);"/>
|
||||
<stop offset="1" style="stop-color: rgb(70, 172, 255);"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g style="" transform="matrix(1.205162, 0, 0, 1.205162, -51.290611, -51.290611)">
|
||||
<rect x="60.691" y="60.691" width="378.619" height="378.619" rx="40" ry="40" style="stroke: rgb(0, 0, 0); stroke-width: 0px; fill: url(#gradient-1); fill-rule: nonzero;"/>
|
||||
<path d="M 171.945 127.03 L 146.511 112.346 L 146.511 112.729 C 146.511 204.245 146.511 295.758 146.511 387.272 L 146.511 387.655 L 146.843 387.463 C 171.219 373.391 195.594 359.317 219.97 345.243 L 220.08 345.18 L 220.08 315.683 L 172.056 343.411 L 172.056 343.257 C 172.056 271.245 172.057 199.414 172.056 127.221 L 172.056 127.094 L 171.945 127.03 Z M 220.329 184.461 C 258.277 206.37 295.767 228.015 333.714 249.924 L 333.846 250.001 L 333.714 250.077 C 303.976 267.246 274.704 284.147 244.967 301.316 L 244.856 301.379 L 244.856 330.876 L 245.188 330.684 C 283.291 308.684 321.398 286.685 359.5 264.685 L 384.738 250.116 L 384.937 250.001 L 359.5 235.317 C 313.028 208.486 266.559 181.655 220.085 154.824 L 219.969 154.758 L 194.536 140.074 L 194.536 140.457 C 194.536 193.902 194.536 247.346 194.536 300.792 L 194.536 301.175 L 220.086 286.424 L 220.196 286.36 L 220.196 184.384 L 220.329 184.461 Z M 244.856 272.123 L 284.445 249.266 L 244.856 226.406 L 244.856 272.123 Z" style="fill-opacity: 1; fill-rule: evenodd; stroke-width: 0px; fill: url(#gradient-2);" id="path14"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="2880" height="2880" viewBox="0 0 2880 2880">
|
||||
<defs id="defs6">
|
||||
<radialGradient id="RadialGradient1">
|
||||
<stop offset="0%" stop-color="#3da4eb"/>
|
||||
<stop offset="100%" stop-color="#196eae"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<g id="g10" transform="matrix(4.511777, 0, 0, -4.511777, -3433.283203, 6312.723633)" style="filter:none">
|
||||
<g id="g12" transform="scale(0.1)">
|
||||
<path d="m 8680.16,13575.4 -567.42,327.6 c 0,-2068.7 -0.01,-4137.33 -0.01,-6205.98 551.01,318.11 1102.02,636.24 1653.02,954.37 V 9306.6 L 8680.16,8679.83 c 0,1631.87 0.02,3263.67 0,4895.57 z M 9768.37,9981 v 2310.9 c 861.33,-497.3 1722.73,-994.6 2584.03,-1491.9 -672.2,-388.1 -1344.4,-776.2 -2016.6,-1164.29 V 8980.5 c 861.3,497.3 1722.7,994.6 2584,1491.9 l 567.5,327.6 -567.5,327.6 c -1050.5,606.5 -2100.9,1213 -3151.43,1819.5 l -2.62,1.5 -567.43,327.6 c 0,-1208.1 0.01,-2416.2 0.01,-3624.32 z m 1447.33,835.6 -879.9,508.1 v -1016.1 z" style="fill:url(#RadialGradient1);fill-opacity:1;fill-rule:evenodd;stroke:none" id="path14"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 944 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
@@ -0,0 +1,20 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
|
||||
Name=Lapce
|
||||
Comment=Lightning-fast and powerful code editor written in Rust
|
||||
Categories=Development;IDE;
|
||||
GenericName=Code Editor
|
||||
StartupWMClass=lapce
|
||||
|
||||
Icon=dev.lapce.lapce
|
||||
Exec=lapce %F
|
||||
Terminal=false
|
||||
MimeType=text/plain;inode/directory;
|
||||
Actions=new-window;
|
||||
|
||||
[Desktop Action new-window]
|
||||
Name=New Window
|
||||
Exec=lapce --new %F
|
||||
Icon=dev.lapce.lapce
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>dev.lapce.lapce</id>
|
||||
<name>Lapce</name>
|
||||
<developer_name>Dongdong Zhou, et al.</developer_name>
|
||||
<summary>Lightning-fast and powerful code editor written in Rust</summary>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>Apache-2.0</project_license>
|
||||
<url type="homepage">https://lapce.dev/</url>
|
||||
<url type="bugtracker">https://github.com/lapce/lapce/issues</url>
|
||||
<url type="help">https://docs.lapce.dev/</url>
|
||||
<categories>
|
||||
<category>IDE</category>
|
||||
<category>Development</category>
|
||||
</categories>
|
||||
<description>
|
||||
<p>
|
||||
Lapce is an open source code editor written in Rust. By utilising native GUI and GPU rendering, and with the performance Rust provides, Lapce is one of the fastest code editors out there.
|
||||
</p>
|
||||
<p>Features:</p>
|
||||
<ul>
|
||||
<li>Modal Editing (Vim like) support as first class citizen (can be turned off as well)</li>
|
||||
<li>Built-in LSP (Language Server Protocol) support to give you code intelligence like code completion, diagnostics and code actions etc.</li>
|
||||
<li>Built-in remote development support (inspired by VSCode Remote Development) for a seamless "local" experience, benefiting from the full power of the remote system.</li>
|
||||
<li>Plugins can be written in programming languages that can compile to the WASI format (C, Rust, AssemblyScript)</li>
|
||||
<li>Built-in terminal, so you can execute commands in your workspace, without leaving Lapce.</li>
|
||||
</ul>
|
||||
</description>
|
||||
<content_rating type="oars-1.1" />
|
||||
<launchable type="desktop-id">dev.lapce.lapce.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default" environment="plasma">
|
||||
<caption>Lapce source project opened in Lapce with Rust source code file opened</caption>
|
||||
<image type="source" width="1000" height="700">https://raw.githubusercontent.com/lapce/lapce/refs/tags/v0.4.5/extra/images/linux/code-file-with-highlight.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<releases>
|
||||
<release version="0.4.6" date="2026-01-21">
|
||||
<url type="details">https://github.com/lapce/lapce/releases/tag/v0.4.6</url>
|
||||
<issues>
|
||||
<issue url="https://github.com/lapce/lapce/issues/3821">#3821</issue>
|
||||
<issue url="https://github.com/lapce/lapce/issues/3832">#3832</issue>
|
||||
<issue url="https://github.com/lapce/lapce/pull/3818">#3818</issue>
|
||||
<issue url="https://github.com/lapce/lapce/pull/3819">#3819</issue>
|
||||
</issues>
|
||||
</release>
|
||||
<release version="0.4.5" date="2025-09-05">
|
||||
<url type="details">https://github.com/lapce/lapce/releases/tag/v0.4.5</url>
|
||||
<issues>
|
||||
<issue url="https://github.com/lapce/lapce/issues/3795">#3795</issue>
|
||||
</issues>
|
||||
</release>
|
||||
<release version="0.4.4" date="2025-08-30">
|
||||
<url type="details">https://github.com/lapce/lapce/releases/tag/v0.4.4</url>
|
||||
<issues>
|
||||
<issue url="https://github.com/lapce/lapce/issues/3786">#3795</issue>
|
||||
</issues>
|
||||
</release>
|
||||
<release version="0.4.3" date="2024-06-27">
|
||||
<url type="details">https://github.com/lapce/lapce/releases/tag/v0.4.3</url>
|
||||
</release>
|
||||
</releases>
|
||||
</component>
|
||||
@@ -0,0 +1,123 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG DISTRIBUTION_VERSION
|
||||
ARG RUST_VERSION
|
||||
ARG XX_VERSION=latest
|
||||
|
||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
|
||||
FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-alpine${DISTRIBUTION_VERSION} AS build-base
|
||||
COPY --from=xx / /
|
||||
|
||||
SHELL [ "/bin/ash", "-c" ]
|
||||
|
||||
# install host dependencies
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apk,sharing=private \
|
||||
--mount=type=cache,target=/etc/apk/cache,sharing=private \
|
||||
<<EOF
|
||||
|
||||
apk upgrade -Ua
|
||||
apk add --no-cache \
|
||||
bash clang lld llvm file git sccache \
|
||||
cmake pkgconf build-base abuild curl mold \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
SHELL [ "/bin/bash", "-c" ]
|
||||
|
||||
WORKDIR /source
|
||||
COPY --link . .
|
||||
|
||||
FROM build-base AS build-prep
|
||||
|
||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL='sparse'
|
||||
ENV CARGO_TARGET_DIR='/root/.cache/rust'
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=locked \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-cargo fetch --locked
|
||||
EOF
|
||||
|
||||
# Install target dependencies
|
||||
ARG TARGETPLATFORM
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apk,sharing=private \
|
||||
--mount=type=cache,target=/etc/apk/cache,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-apk add \
|
||||
"xx-cxx-essentials" \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
FROM build-prep AS build
|
||||
|
||||
ARG PACKAGE_NAME
|
||||
ENV PACKAGE_NAME="${PACKAGE_NAME}"
|
||||
|
||||
ARG OUTPUT_DIR="/output"
|
||||
ENV OUTPUT_DIR="${OUTPUT_DIR}"
|
||||
|
||||
ARG CARGO_BUILD_INCREMENTAL='false'
|
||||
ENV CARGO_TARGET_DIR='/root/.cache/rust'
|
||||
|
||||
ARG RELEASE_TAG_NAME
|
||||
ENV RELEASE_TAG_NAME="${RELEASE_TAG_NAME}"
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=locked \
|
||||
--mount=type=cache,target=/root/.cache,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-clang --setup-target-triple
|
||||
xx-clang --wrap
|
||||
|
||||
if ! xx-info is-cross; then
|
||||
export OPENSSL_DIR="/usr"
|
||||
else
|
||||
export OPENSSL_DIR="/$(xx-info triple)/usr"
|
||||
fi
|
||||
|
||||
export LIBZ_SYS_STATIC="1"
|
||||
export LIBSSH2_STATIC="1"
|
||||
export LIBGIT2_STATIC="1"
|
||||
export OPENSSL_STATIC="1"
|
||||
export PKG_CONFIG_ALL_STATIC="1"
|
||||
export OPENSSL_NO_VENDOR="1"
|
||||
export ZSTD_SYS_USE_PKG_CONFIG="1"
|
||||
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=mold -C target-feature=+crt-static"
|
||||
export PKG_CONFIG="$(xx-clang --print-prog-name=pkg-config)"
|
||||
|
||||
xx-cargo build \
|
||||
--verbose \
|
||||
--frozen \
|
||||
--bin lapce-proxy \
|
||||
--profile release-lto \
|
||||
--no-default-features
|
||||
|
||||
xx-verify "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce-proxy
|
||||
|
||||
mkdir -p /target
|
||||
mv -v "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce-proxy /usr/local/bin/
|
||||
EOF
|
||||
|
||||
FROM build-prep AS dev
|
||||
|
||||
FROM scratch AS binary
|
||||
COPY --from=build /usr/local/bin/lapce-proxy .
|
||||
|
||||
FROM scratch AS cross-binary
|
||||
COPY --from=build /usr/local/bin/lapce-proxy .
|
||||
@@ -0,0 +1,186 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG DISTRIBUTION_VERSION
|
||||
ARG RUST_VERSION
|
||||
ARG XX_VERSION=latest
|
||||
|
||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
|
||||
FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-${DISTRIBUTION_VERSION} AS build-base
|
||||
COPY --from=xx / /
|
||||
|
||||
SHELL [ "/bin/bash", "-c" ]
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# install host dependencies
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt,sharing=private \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=private \
|
||||
<<EOF
|
||||
|
||||
apt-get update -y
|
||||
apt-get install -y \
|
||||
bash clang lld llvm file cmake pkg-config dpkg-dev \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
WORKDIR /source
|
||||
COPY --link . .
|
||||
|
||||
FROM build-base AS build-prep
|
||||
|
||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL='sparse'
|
||||
ENV CARGO_TARGET_DIR='/root/.cache/rust'
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=locked \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
cargo fetch --locked
|
||||
EOF
|
||||
|
||||
# Install target dependencies
|
||||
ARG TARGETPLATFORM
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt,sharing=private \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-apt-get install -y \
|
||||
"xx-cxx-essentials" \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
FROM build-prep AS build
|
||||
|
||||
ARG PACKAGE_NAME
|
||||
ENV PACKAGE_NAME="${PACKAGE_NAME}"
|
||||
|
||||
ARG OUTPUT_DIR="/output"
|
||||
ENV OUTPUT_DIR="${OUTPUT_DIR}"
|
||||
|
||||
# in bullseye arm64 target does not link with lld so configure it to use ld instead
|
||||
# RUN [ ! -f /etc/alpine-release ] && xx-info is-cross && [ "$(xx-info arch)" = "arm64" ] && XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple || true
|
||||
|
||||
ARG CARGO_BUILD_INCREMENTAL='false'
|
||||
ENV CARGO_TARGET_DIR='/root/.cache/rust'
|
||||
|
||||
ENV CC='xx-clang'
|
||||
ENV CXX='xx-clang++'
|
||||
|
||||
ENV OPENSSL_NO_VENDOR="1"
|
||||
ENV ZSTD_SYS_USE_PKG_CONFIG="1"
|
||||
|
||||
ARG RELEASE_TAG_NAME
|
||||
ENV RELEASE_TAG_NAME="${RELEASE_TAG_NAME}"
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=locked \
|
||||
--mount=type=cache,target=/root/.cache,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-clang --setup-target-triple
|
||||
xx-clang --wrap
|
||||
|
||||
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/bin/ld.lld"
|
||||
export PKG_CONFIG="$(xx-clang --print-prog-name=pkg-config)"
|
||||
export CARGO_BUILD_TARGET="$(xx-cargo --print-target-triple)"
|
||||
|
||||
xx-cargo build \
|
||||
--frozen \
|
||||
--package lapce-app \
|
||||
--profile release-lto \
|
||||
--no-default-features
|
||||
|
||||
xx-verify "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce
|
||||
|
||||
mkdir -p /target
|
||||
mv -v "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce /target/
|
||||
|
||||
cargo pkgid | cut -d'#' -f2 | cut -d'@' -f2 | cut -d':' -f2 | tee /target/lapce.version
|
||||
EOF
|
||||
|
||||
WORKDIR /output
|
||||
RUN <<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
export _PACKAGE_ARCHITECTURE=$(xx-info debian-arch)
|
||||
|
||||
mkdir -v -p ${PACKAGE_NAME}/{etc,usr/{bin,share/{applications,metainfo,pixmaps}},debian}
|
||||
cd ${PACKAGE_NAME}
|
||||
|
||||
cp '/source/extra/linux/dev.lapce.lapce.desktop' './usr/share/applications/dev.lapce.lapce.desktop'
|
||||
cp '/source/extra/linux/dev.lapce.lapce.metainfo.xml' './usr/share/metainfo/dev.lapce.lapce.metainfo.xml'
|
||||
cp '/source/extra/images/logo.png' './usr/share/pixmaps/dev.lapce.lapce.png'
|
||||
|
||||
mv '/target/lapce' './usr/bin/'
|
||||
|
||||
if [[ "${PACKAGE_NAME}" == "lapce" ]]; then
|
||||
conflicts="lapce-nightly"
|
||||
else
|
||||
conflicts="lapce"
|
||||
fi
|
||||
|
||||
case "${RELEASE_TAG_NAME}" in
|
||||
nightly-*)
|
||||
version=$(cat /target/lapce.version)
|
||||
commit=$(echo "${RELEASE_TAG_NAME}" | cut -d'-' -f2)
|
||||
# date=$(date +%Y%m%d%H%M)
|
||||
RELEASE_TAG_NAME="${version}+${commit}"
|
||||
;;
|
||||
debug|nightly)
|
||||
version=$(cat /target/lapce.version)
|
||||
date=$(date +%Y%m%d%H%M)
|
||||
RELEASE_TAG_NAME="${version}+${date}"
|
||||
;;
|
||||
*)
|
||||
RELEASE_TAG_NAME="${RELEASE_TAG_NAME//v/}"
|
||||
;;
|
||||
esac
|
||||
|
||||
cat <<- EOL > debian/control
|
||||
Package: ${PACKAGE_NAME}
|
||||
Version: ${RELEASE_TAG_NAME}
|
||||
Conflicts: ${conflicts}
|
||||
Maintainer: Jakub Panek <me+debian@panekj.dev>
|
||||
Architecture: ${_PACKAGE_ARCHITECTURE}
|
||||
Description: Lightning-fast and Powerful Code Editor
|
||||
Source: https://lapce.dev
|
||||
EOL
|
||||
|
||||
depends=$(dpkg-shlibdeps -O -e usr/bin/lapce)
|
||||
depends=$(echo "${depends}" | sed 's/shlibs:Depends=//')
|
||||
echo "Depends: ${depends}" >> debian/control
|
||||
mv debian DEBIAN
|
||||
|
||||
. /etc/os-release
|
||||
|
||||
dpkg-deb --root-owner-group --build . "${OUTPUT_DIR}"/"${PACKAGE_NAME}.${ID}.${VERSION_CODENAME}.${_PACKAGE_ARCHITECTURE}.deb"
|
||||
EOF
|
||||
|
||||
FROM build-base AS dev
|
||||
COPY . ./dev
|
||||
|
||||
FROM scratch AS binary
|
||||
COPY --from=build /output/lapce .
|
||||
|
||||
FROM scratch AS cross-binary
|
||||
COPY --from=build /output/lapce .
|
||||
|
||||
FROM scratch AS package
|
||||
COPY --from=build /output/*.deb .
|
||||
|
||||
FROM scratch AS cross-package
|
||||
COPY --from=build /output/*.deb .
|
||||
@@ -0,0 +1,190 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG DISTRIBUTION_VERSION
|
||||
ARG RUST_VERSION
|
||||
ARG XX_VERSION=latest
|
||||
|
||||
FROM --platform=$BUILDPLATFORM ghcr.io/panekj/xx:${XX_VERSION} AS xx
|
||||
FROM --platform=$BUILDPLATFORM fedora:${DISTRIBUTION_VERSION} AS build-base
|
||||
COPY --from=xx --link / /
|
||||
|
||||
SHELL [ "/bin/bash", "-c" ]
|
||||
|
||||
# install host dependencies
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/dnf,sharing=locked \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
printf "keepcache=True" >> /etc/dnf/dnf.conf
|
||||
dnf update -y
|
||||
dnf install -y \
|
||||
bash clang lld llvm file cmake pkg-config curl git rpm-build
|
||||
EOF
|
||||
|
||||
ENV CARGO_HOME="/cargo"
|
||||
ENV RUSTUP_HOME="/rustup"
|
||||
|
||||
RUN \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
EOF
|
||||
|
||||
ENV PATH="${CARGO_HOME}/bin:${PATH}"
|
||||
|
||||
WORKDIR /source
|
||||
|
||||
FROM build-base AS build-prep
|
||||
|
||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL='sparse'
|
||||
ENV CARGO_TARGET_DIR='/target'
|
||||
ENV CARGO_NET_GIT_FETCH_WITH_CLI="true"
|
||||
|
||||
COPY --link . .
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=locked \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
cargo fetch --locked
|
||||
EOF
|
||||
|
||||
# Install target dependencies
|
||||
ARG TARGETPLATFORM
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/dnf,sharing=locked \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
mkdir -p /run/lock
|
||||
mkdir -p /var/run/lock
|
||||
XX_DEBUG_DNF=1 \
|
||||
xx-dnf install -y \
|
||||
"xx-cxx-essentials" \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
FROM build-prep AS build
|
||||
|
||||
ARG PACKAGE_NAME
|
||||
ENV PACKAGE_NAME="${PACKAGE_NAME}"
|
||||
|
||||
ARG CARGO_BUILD_INCREMENTAL='false'
|
||||
|
||||
ENV CC='xx-clang'
|
||||
ENV CXX='xx-clang++'
|
||||
|
||||
ENV OPENSSL_NO_VENDOR="1"
|
||||
ENV ZSTD_SYS_USE_PKG_CONFIG="1"
|
||||
|
||||
ARG RELEASE_TAG_NAME
|
||||
ENV RELEASE_TAG_NAME="${RELEASE_TAG_NAME}"
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,readonly=true \
|
||||
--mount=type=cache,target=/cargo/registry/cache,readonly=true \
|
||||
--mount=type=cache,target=/cargo/registry/index,readonly=true \
|
||||
--mount=type=cache,target=/root/.cache,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
LAPCE_VERSION=$(cargo pkgid | cut -d'#' -f2 | cut -d'@' -f2 | cut -d':' -f2)
|
||||
|
||||
case "${RELEASE_TAG_NAME}" in
|
||||
nightly-*)
|
||||
commit=$(echo "${RELEASE_TAG_NAME}" | cut -d'-' -f2)
|
||||
RELEASE_TAG_NAME="${LAPCE_VERSION}+${commit}"
|
||||
;;
|
||||
debug|nightly)
|
||||
date=$(date +%Y%m%d%H%M)
|
||||
RELEASE_TAG_NAME="${LAPCE_VERSION}+${date}"
|
||||
;;
|
||||
*)
|
||||
RELEASE_TAG_NAME="${RELEASE_TAG_NAME//v/}"
|
||||
;;
|
||||
esac
|
||||
|
||||
. /etc/os-release
|
||||
export DISTRO_ID="$(echo $ID | tr - _)"
|
||||
export DISTRO_VERSION="$(echo $VERSION_ID | tr - _)"
|
||||
|
||||
cat > lapce.spec <<EOL
|
||||
Name: ${PACKAGE_NAME}
|
||||
Version: ${RELEASE_TAG_NAME}
|
||||
Release: 1.${DISTRO_ID}${DISTRO_VERSION}
|
||||
Summary: Lightning-fast and Powerful Code Editor written in Rust
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/lapce/lapce
|
||||
Packager: Jakub Panek
|
||||
|
||||
%description
|
||||
Lapce is written in pure Rust with a UI in Floem (which is also written in Rust).
|
||||
It is designed with Rope Science from the Xi-Editor which makes for lightning-fast computation, and leverages OpenGL for rendering.
|
||||
|
||||
%build
|
||||
xx-clang --setup-target-triple
|
||||
xx-clang --wrap
|
||||
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/bin/ld.lld"
|
||||
export PKG_CONFIG="$(xx-clang --print-prog-name=pkg-config)"
|
||||
rustup target add "$(xx-cargo --print-target-triple)"
|
||||
export RELEASE_TAG_NAME="${RELEASE_TAG_NAME}"
|
||||
xx-cargo build --profile release-lto --bin lapce --frozen
|
||||
xx-verify "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce
|
||||
|
||||
%install
|
||||
install -Dm755 "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce %{buildroot}%{_bindir}/lapce
|
||||
install -Dm644 extra/linux/dev.lapce.lapce.desktop %{buildroot}/usr/share/applications/dev.lapce.lapce.desktop
|
||||
install -Dm644 extra/linux/dev.lapce.lapce.metainfo.xml %{buildroot}/usr/share/metainfo/dev.lapce.lapce.metainfo.xml
|
||||
install -Dm644 extra/images/logo.png %{buildroot}/usr/share/pixmaps/dev.lapce.lapce.png
|
||||
|
||||
%files
|
||||
%license LICENSE*
|
||||
%doc *.md
|
||||
%{_bindir}/lapce
|
||||
/usr/share/applications/dev.lapce.lapce.desktop
|
||||
/usr/share/metainfo/dev.lapce.lapce.metainfo.xml
|
||||
/usr/share/pixmaps/dev.lapce.lapce.png
|
||||
|
||||
%changelog
|
||||
* Thu Apr 25 2024 Jakub Panek
|
||||
- See GitHub for full changelog
|
||||
EOL
|
||||
|
||||
/usr/bin/rpmbuild --build-in-place --noclean --noprep -bb --rmspec lapce.spec --verbose -D 'debug_package %{nil}'
|
||||
ls -lahR $HOME/rpmbuild
|
||||
EOF
|
||||
|
||||
RUN \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
mv -v $HOME/rpmbuild/RPMS/* /output/
|
||||
EOF
|
||||
|
||||
FROM build-base AS dev
|
||||
COPY . ./dev
|
||||
|
||||
FROM scratch AS binary
|
||||
COPY --from=build /output/lapce .
|
||||
|
||||
FROM scratch AS cross-binary
|
||||
COPY --from=build /output/lapce .
|
||||
|
||||
FROM scratch AS package
|
||||
COPY --from=build /output/*.rpm .
|
||||
|
||||
FROM scratch AS cross-package
|
||||
COPY --from=build /output/*.rpm .
|
||||
@@ -0,0 +1,213 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG DISTRIBUTION_VERSION
|
||||
ARG RUST_VERSION
|
||||
ARG XX_VERSION
|
||||
|
||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
|
||||
FROM --platform=$BUILDPLATFORM ubuntu:${DISTRIBUTION_VERSION} AS build-base
|
||||
COPY --from=xx / /
|
||||
|
||||
SHELL [ "/bin/bash", "-c" ]
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
rm -f /etc/apt/apt.conf.d/docker-clean
|
||||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
|
||||
EOF
|
||||
|
||||
# install host dependencies
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt,sharing=private \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
apt-get update -y
|
||||
apt-get upgrade -y
|
||||
apt-get install -y \
|
||||
bash clang lld llvm file cmake pkg-config curl git dpkg-dev \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
ENV CARGO_HOME="/cargo"
|
||||
ENV RUSTUP_HOME="/rustup"
|
||||
|
||||
RUN \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
EOF
|
||||
|
||||
ENV PATH="${CARGO_HOME}/bin:${PATH}"
|
||||
|
||||
WORKDIR /source
|
||||
COPY --link . .
|
||||
|
||||
FROM build-base AS build-prep
|
||||
|
||||
ENV CARGO_TARGET_DIR='/target'
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=locked \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=locked \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
cargo fetch --locked
|
||||
EOF
|
||||
|
||||
# Install target dependencies
|
||||
ARG TARGETPLATFORM
|
||||
ARG DISTRIBUTION_PACKAGES
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt,sharing=private \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-apt-get install -y \
|
||||
"xx-cxx-essentials" \
|
||||
${DISTRIBUTION_PACKAGES}
|
||||
EOF
|
||||
|
||||
FROM build-prep AS build
|
||||
|
||||
ARG PACKAGE_NAME
|
||||
|
||||
ARG OUTPUT_DIR="/output"
|
||||
|
||||
ARG CARGO_BUILD_INCREMENTAL='false'
|
||||
|
||||
ENV CC='xx-clang'
|
||||
ENV CXX='xx-clang++'
|
||||
|
||||
ARG ZSTD_SYS_USE_PKG_CONFIG
|
||||
ARG LIBGIT2_STATIC
|
||||
ARG LIBSSH2_STATIC
|
||||
ARG LIBZ_SYS_STATIC
|
||||
ARG OPENSSL_STATIC
|
||||
ARG OPENSSL_NO_VENDOR
|
||||
ARG PKG_CONFIG_ALL_STATIC
|
||||
|
||||
ARG RELEASE_TAG_NAME
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/cargo/git/db,sharing=shared,readonly \
|
||||
--mount=type=cache,target=/cargo/registry/cache,sharing=shared,readonly \
|
||||
--mount=type=cache,target=/cargo/registry/index,sharing=shared,readonly \
|
||||
--mount=type=cache,target=/root/.cache,sharing=private \
|
||||
<<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
xx-clang --setup-target-triple
|
||||
xx-clang --wrap
|
||||
|
||||
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/bin/ld.lld"
|
||||
export PKG_CONFIG="$(xx-clang --print-prog-name=pkg-config)"
|
||||
export CARGO_BUILD_TARGET="$(xx-cargo --print-target-triple)"
|
||||
|
||||
env
|
||||
|
||||
xx-cargo build \
|
||||
--frozen \
|
||||
--package lapce-app \
|
||||
--profile release-lto \
|
||||
--no-default-features
|
||||
|
||||
xx-verify "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce
|
||||
|
||||
mkdir -p /target
|
||||
mv -v "${CARGO_TARGET_DIR}"/"$(xx-cargo --print-target-triple)"/release-lto/lapce /target/
|
||||
|
||||
cargo pkgid | cut -d'#' -f2 | cut -d'@' -f2 | cut -d':' -f2 | tee /target/lapce.version
|
||||
EOF
|
||||
|
||||
FROM build-base AS dev
|
||||
COPY . ./dev
|
||||
|
||||
FROM scratch AS binary
|
||||
COPY --from=build /target/lapce .
|
||||
|
||||
FROM scratch AS cross-binary
|
||||
COPY --from=build /target/lapce .
|
||||
|
||||
FROM build AS package-prepare
|
||||
WORKDIR /output
|
||||
COPY --from=build /target /target
|
||||
RUN <<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
export _PACKAGE_ARCHITECTURE=$(xx-info debian-arch)
|
||||
|
||||
mkdir -v -p ${PACKAGE_NAME}/{etc,usr/{bin,share/{applications,metainfo,pixmaps}},debian}
|
||||
cd ${PACKAGE_NAME}
|
||||
|
||||
cp '/source/extra/linux/dev.lapce.lapce.desktop' './usr/share/applications/dev.lapce.lapce.desktop'
|
||||
cp '/source/extra/linux/dev.lapce.lapce.metainfo.xml' './usr/share/metainfo/dev.lapce.lapce.metainfo.xml'
|
||||
cp '/source/extra/images/logo.png' './usr/share/pixmaps/dev.lapce.lapce.png'
|
||||
|
||||
mv '/target/lapce' './usr/bin/'
|
||||
|
||||
if [[ "${PACKAGE_NAME}" == "lapce" ]]; then
|
||||
conflicts="lapce-nightly"
|
||||
else
|
||||
conflicts="lapce"
|
||||
fi
|
||||
|
||||
case "${RELEASE_TAG_NAME}" in
|
||||
nightly-*)
|
||||
version=$(cat /target/lapce.version)
|
||||
commit=$(echo "${RELEASE_TAG_NAME}" | cut -d'-' -f2)
|
||||
# date=$(date +%Y%m%d%H%M)
|
||||
RELEASE_TAG_NAME="${version}+${commit}"
|
||||
;;
|
||||
debug|nightly)
|
||||
version=$(cat /target/lapce.version)
|
||||
date=$(date +%Y%m%d%H%M)
|
||||
RELEASE_TAG_NAME="${version}+${date}"
|
||||
;;
|
||||
*)
|
||||
RELEASE_TAG_NAME="${RELEASE_TAG_NAME//v/}"
|
||||
;;
|
||||
esac
|
||||
|
||||
cat <<- EOL > debian/control
|
||||
Package: ${PACKAGE_NAME}
|
||||
Version: ${RELEASE_TAG_NAME}
|
||||
Conflicts: ${conflicts}
|
||||
Maintainer: Jakub Panek <me+debian@panekj.dev>
|
||||
Architecture: ${_PACKAGE_ARCHITECTURE}
|
||||
Description: Lightning-fast and Powerful Code Editor
|
||||
Source: https://lapce.dev
|
||||
EOL
|
||||
|
||||
depends=$(dpkg-shlibdeps -O -e usr/bin/lapce)
|
||||
depends=$(echo "${depends}" | sed 's/shlibs:Depends=//')
|
||||
echo "Depends: ${depends}" >> debian/control
|
||||
mv debian DEBIAN
|
||||
|
||||
. /etc/os-release
|
||||
|
||||
dpkg-deb --root-owner-group --build . "${OUTPUT_DIR}"/"${PACKAGE_NAME}.${ID}.${VERSION_CODENAME}.${_PACKAGE_ARCHITECTURE}.deb"
|
||||
EOF
|
||||
|
||||
FROM scratch AS package
|
||||
COPY --from=package-prepare /output/*.deb .
|
||||
|
||||
FROM scratch AS cross-package
|
||||
COPY --from=package-prepare /output/*.deb .
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>lapce</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.lapce</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Lapce</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.4.6</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>lapce.icns</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
<key>NSMainNibFile</key>
|
||||
<string></string>
|
||||
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||
<true/>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Lapce</string>
|
||||
<key>NSRequiresAquaSystemAppearance</key>
|
||||
<string>NO</string>
|
||||
<key>NSAppleEventsUsageDescription</key>
|
||||
<string>An application in Lapce would like to access AppleScript.</string>
|
||||
<key>NSCalendarsUsageDescription</key>
|
||||
<string>An application in Lapce would like to access calendar data.</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>An application in Lapce would like to access the camera.</string>
|
||||
<key>NSContactsUsageDescription</key>
|
||||
<string>An application in Lapce wants to access your contacts.</string>
|
||||
<key>NSLocationAlwaysUsageDescription</key>
|
||||
<string>An application in Lapce would like to access your location information, even in the background.</string>
|
||||
<key>NSLocationUsageDescription</key>
|
||||
<string>An application in Lapce would like to access your location information.</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>An application in Lapce would like to access your location information while active.</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>An application in Lapce would like to access your microphone.</string>
|
||||
<key>NSRemindersUsageDescription</key>
|
||||
<string>An application in Lapce would like to access your reminders.</string>
|
||||
<key>NSSystemAdministrationUsageDescription</key>
|
||||
<string>An application in Lapce requires elevated permissions.</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,47 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$version,
|
||||
[string]$directory
|
||||
)
|
||||
|
||||
$proxy = (Join-Path $directory 'lapce.exe')
|
||||
|
||||
$LapceProcesses = (Get-Process -Name 'lapce' -EA SilentlyContinue).Count
|
||||
if ($LapceProcesses -ne 0) {
|
||||
Write-Host 'Proxy currently in use. Aborting installation'
|
||||
exit
|
||||
}
|
||||
|
||||
if (Test-Path $proxy) {
|
||||
Write-Host 'Proxy already installed'
|
||||
exit
|
||||
}
|
||||
|
||||
switch ($env:PROCESSOR_ARCHITECTURE) {
|
||||
# Only x86_64 is supported currently
|
||||
'AMD64' {
|
||||
$arch = 'x86_64'
|
||||
}
|
||||
}
|
||||
|
||||
$url = "https://github.com/lapce/lapce/releases/download/${version}/lapce-proxy-windows-${arch}.gz"
|
||||
$gzip = Join-Path "${env:TMP}" "lapce-proxy-windows-${arch}.gz"
|
||||
|
||||
$webclient = [System.Net.WebClient]::new()
|
||||
$webclient.DownloadFile($url, $gzip)
|
||||
$webclient.Dispose()
|
||||
|
||||
[System.IO.Directory]::CreateDirectory($directory)
|
||||
|
||||
$archive = [System.IO.File]::Open($gzip, [System.IO.FileMode]::Open)
|
||||
$proxy_file = [System.IO.File]::Create($proxy)
|
||||
$compressor = [System.IO.Compression.GZipStream]::new($archive, [System.IO.Compression.CompressionMode]::Decompress)
|
||||
$compressor.CopyTo($proxy_file)
|
||||
Start-Sleep -Seconds 3
|
||||
$compressor.close()
|
||||
$proxy_file.close()
|
||||
$archive.close()
|
||||
|
||||
[System.IO.File]::Delete($gzip)
|
||||
|
||||
Write-Host 'lapce-proxy installed'
|
||||
@@ -0,0 +1,104 @@
|
||||
#!/bin/sh
|
||||
set -eux
|
||||
|
||||
# This script is written to be as POSIX as possible
|
||||
# so it works fine for all Unix-like operating systems
|
||||
|
||||
test_cmd() {
|
||||
command -v "$1" >/dev/null
|
||||
}
|
||||
|
||||
# proxy version
|
||||
lapce_new_ver="${1}"
|
||||
# proxy directory
|
||||
# eval to resolve '~' into proper user dir
|
||||
eval lapce_dir="'${2}'"
|
||||
|
||||
case "${lapce_new_ver}" in
|
||||
v*)
|
||||
lapce_new_version=$(echo "${lapce_new_ver}" | cut -d'v' -f2)
|
||||
lapce_new_ver_tag="${lapce_new_ver}"
|
||||
;;
|
||||
nightly*)
|
||||
lapce_new_version="${lapce_new_ver}"
|
||||
lapce_new_ver_tag=$(echo ${lapce_new_ver} | cut -d '-' -f1)
|
||||
;;
|
||||
*)
|
||||
printf 'Unknown version\n'
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -e "${lapce_dir}/lapce" ]; then
|
||||
lapce_installed_ver=$("${lapce_dir}/lapce" --version | cut -d' ' -f2)
|
||||
|
||||
printf '[DEBUG]: Current proxy version: %s\n' "${lapce_installed_ver}"
|
||||
printf '[DEBUG]: New proxy version: %s\n' "${lapce_new_version}"
|
||||
if [ "${lapce_installed_ver}" = "${lapce_new_version}" ]; then
|
||||
printf 'Proxy already exists\n'
|
||||
exit 0
|
||||
else
|
||||
printf 'Proxy outdated. Replacing proxy\n'
|
||||
rm "${lapce_dir}/lapce"
|
||||
fi
|
||||
fi
|
||||
|
||||
for _cmd in tar gzip uname; do
|
||||
if ! test_cmd "${_cmd}"; then
|
||||
printf 'Missing required command: %s\n' "${_cmd}"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
# Currently only linux/darwin are supported
|
||||
case $(uname -s) in
|
||||
Linux) os_name=linux ;;
|
||||
Darwin) os_name=darwin ;;
|
||||
*)
|
||||
printf '[ERROR] unsupported os\n'
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# Currently only amd64/arm64 are supported
|
||||
case $(uname -m) in
|
||||
x86_64|amd64|x64) arch_name=x86_64 ;;
|
||||
arm64|aarch64) arch_name=aarch64 ;;
|
||||
# riscv64) arch_name=riscv64 ;;
|
||||
*)
|
||||
printf '[ERROR] unsupported arch\n'
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
lapce_download_url="https://github.com/lapce/lapce/releases/download/${lapce_new_ver_tag}/lapce-proxy-${os_name}-${arch_name}.gz"
|
||||
|
||||
printf 'Creating "%s"\n' "${lapce_dir}"
|
||||
mkdir -p "${lapce_dir}"
|
||||
cd "${lapce_dir}"
|
||||
|
||||
if test_cmd 'curl'; then
|
||||
# How old curl has these options? we'll find out
|
||||
printf 'Downloading using curl\n'
|
||||
curl --proto '=https' --tlsv1.2 -LfS -O "${lapce_download_url}"
|
||||
# curl --proto '=https' --tlsv1.2 -LZfS -o "${tmp_dir}/lapce-proxy-${os_name}-${arch_name}.gz" "${lapce_download_url}"
|
||||
elif test_cmd 'wget'; then
|
||||
printf 'Downloading using wget\n'
|
||||
wget "${lapce_download_url}"
|
||||
else
|
||||
printf 'curl/wget not found, failed to download proxy\n'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf 'Decompressing gzip\n'
|
||||
gzip -df "${lapce_dir}/lapce-proxy-${os_name}-${arch_name}.gz"
|
||||
|
||||
printf 'Renaming proxy \n'
|
||||
mv -v "${lapce_dir}/lapce-proxy-${os_name}-${arch_name}" "${lapce_dir}/lapce"
|
||||
|
||||
printf 'Making it executable\n'
|
||||
chmod +x "${lapce_dir}/lapce"
|
||||
|
||||
printf 'lapce-proxy installed\n'
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,202 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$ref": "#/definitions/ColorTheme",
|
||||
"definitions": {
|
||||
"ColorTheme": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"color-theme": {
|
||||
"$ref": "#/definitions/ColorThemeClass"
|
||||
},
|
||||
"ui": {
|
||||
"$ref": "#/definitions/UI"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "ColorTheme"
|
||||
},
|
||||
"ColorThemeClass": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"base": {
|
||||
"$ref": "#/definitions/Base"
|
||||
},
|
||||
"syntax": {
|
||||
"$ref": "#/definitions/Syntax"
|
||||
},
|
||||
"ui": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "ColorThemeClass"
|
||||
},
|
||||
"Base": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"required": [],
|
||||
"title": "Base"
|
||||
},
|
||||
"Syntax": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"constant": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"typeAlias": {
|
||||
"type": "string"
|
||||
},
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"enum": {
|
||||
"type": "string"
|
||||
},
|
||||
"struct": {
|
||||
"type": "string"
|
||||
},
|
||||
"structure": {
|
||||
"type": "string"
|
||||
},
|
||||
"interface": {
|
||||
"type": "string"
|
||||
},
|
||||
"attribute": {
|
||||
"type": "string"
|
||||
},
|
||||
"constructor": {
|
||||
"type": "string"
|
||||
},
|
||||
"function": {
|
||||
"type": "string"
|
||||
},
|
||||
"method": {
|
||||
"type": "string"
|
||||
},
|
||||
"function.method": {
|
||||
"type": "string"
|
||||
},
|
||||
"keyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"selfKeyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"field": {
|
||||
"type": "string"
|
||||
},
|
||||
"property": {
|
||||
"type": "string"
|
||||
},
|
||||
"enumMember": {
|
||||
"type": "string"
|
||||
},
|
||||
"enum-member": {
|
||||
"type": "string"
|
||||
},
|
||||
"string": {
|
||||
"type": "string"
|
||||
},
|
||||
"type.builtin": {
|
||||
"type": "string"
|
||||
},
|
||||
"builtinType": {
|
||||
"type": "string"
|
||||
},
|
||||
"escape": {
|
||||
"type": "string"
|
||||
},
|
||||
"string.escape": {
|
||||
"type": "string"
|
||||
},
|
||||
"embedded": {
|
||||
"type": "string"
|
||||
},
|
||||
"punctuation.delimiter": {
|
||||
"type": "string"
|
||||
},
|
||||
"text.title": {
|
||||
"type": "string"
|
||||
},
|
||||
"text.uri": {
|
||||
"type": "string"
|
||||
},
|
||||
"text.reference": {
|
||||
"type": "string"
|
||||
},
|
||||
"variable": {
|
||||
"type": "string"
|
||||
},
|
||||
"variable.other.member": {
|
||||
"type": "string"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string"
|
||||
},
|
||||
"bracket.color.1": {
|
||||
"type": "string"
|
||||
},
|
||||
"bracket.color.2": {
|
||||
"type": "string"
|
||||
},
|
||||
"bracket.color.3": {
|
||||
"type": "string"
|
||||
},
|
||||
"bracket.unpaired": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Syntax"
|
||||
},
|
||||
"UI": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"header-height": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status-height": {
|
||||
"type": "integer"
|
||||
},
|
||||
"tab-min-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"activity-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"scroll-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"drop-shadow-width": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "UI"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$ref": "#/definitions/IconTheme",
|
||||
"definitions": {
|
||||
"IconTheme": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"icon-theme": {
|
||||
"$ref": "#/definitions/IconThemeClass"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "IconTheme"
|
||||
},
|
||||
"IconThemeClass": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"ui": {
|
||||
"$ref": "#/definitions/IconMapping"
|
||||
},
|
||||
"foldername": {
|
||||
"$ref": "#/definitions/IconMapping"
|
||||
},
|
||||
"filename": {
|
||||
"$ref": "#/definitions/IconMapping"
|
||||
},
|
||||
"extension": {
|
||||
"$ref": "#/definitions/IconMapping"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "IconThemeClass"
|
||||
},
|
||||
"IconMapping": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"*" : {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "IconMapping"
|
||||
},
|
||||
"Extension": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"[a-zA-Z0-9]" : {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "IconMapping"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,353 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$ref": "#/definitions/Settings",
|
||||
"definitions": {
|
||||
"Settings": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"core": {
|
||||
"$ref": "#/definitions/Core"
|
||||
},
|
||||
"editor": {
|
||||
"$ref": "#/definitions/Editor"
|
||||
},
|
||||
"terminal": {
|
||||
"$ref": "#/definitions/Terminal"
|
||||
},
|
||||
"ui": {
|
||||
"$ref": "#/definitions/UI"
|
||||
},
|
||||
"color-theme": {
|
||||
"$ref": "file://./color-theme.json"
|
||||
},
|
||||
"icon-theme": {
|
||||
"$schema": "file://./icon-theme.json"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Settings"
|
||||
},
|
||||
"Base": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"white": {
|
||||
"type": "string"
|
||||
},
|
||||
"black": {
|
||||
"type": "string"
|
||||
},
|
||||
"grey": {
|
||||
"type": "string"
|
||||
},
|
||||
"blue": {
|
||||
"type": "string"
|
||||
},
|
||||
"red": {
|
||||
"type": "string"
|
||||
},
|
||||
"yellow": {
|
||||
"type": "string"
|
||||
},
|
||||
"orange": {
|
||||
"type": "string"
|
||||
},
|
||||
"green": {
|
||||
"type": "string"
|
||||
},
|
||||
"purple": {
|
||||
"type": "string"
|
||||
},
|
||||
"cyan": {
|
||||
"type": "string"
|
||||
},
|
||||
"magenta": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Base"
|
||||
},
|
||||
"Syntax": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"constant": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"typeAlias": {
|
||||
"type": "string"
|
||||
},
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"enum": {
|
||||
"type": "string"
|
||||
},
|
||||
"struct": {
|
||||
"type": "string"
|
||||
},
|
||||
"structure": {
|
||||
"type": "string"
|
||||
},
|
||||
"interface": {
|
||||
"type": "string"
|
||||
},
|
||||
"attribute": {
|
||||
"type": "string"
|
||||
},
|
||||
"constructor": {
|
||||
"type": "string"
|
||||
},
|
||||
"function": {
|
||||
"type": "string"
|
||||
},
|
||||
"method": {
|
||||
"type": "string"
|
||||
},
|
||||
"function.method": {
|
||||
"type": "string"
|
||||
},
|
||||
"keyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"keyword.control": {
|
||||
"type": "string"
|
||||
},
|
||||
"selfKeyword": {
|
||||
"type": "string"
|
||||
},
|
||||
"field": {
|
||||
"type": "string"
|
||||
},
|
||||
"property": {
|
||||
"type": "string"
|
||||
},
|
||||
"enumMember": {
|
||||
"type": "string"
|
||||
},
|
||||
"enum-member": {
|
||||
"type": "string"
|
||||
},
|
||||
"variable.other.member": {
|
||||
"type": "string"
|
||||
},
|
||||
"string": {
|
||||
"type": "string"
|
||||
},
|
||||
"type.builtin": {
|
||||
"type": "string"
|
||||
},
|
||||
"builtinType": {
|
||||
"type": "string"
|
||||
},
|
||||
"escape": {
|
||||
"type": "string"
|
||||
},
|
||||
"embedded": {
|
||||
"type": "string"
|
||||
},
|
||||
"symbol": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Syntax"
|
||||
},
|
||||
"Core": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"modal": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"color-theme": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon-theme": {
|
||||
"type": "string"
|
||||
},
|
||||
"custom-titlebar": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Core"
|
||||
},
|
||||
"Editor": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"code-lens-font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"line-height": {
|
||||
"type": "number"
|
||||
},
|
||||
"tab-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"show-tab": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"show-bread-crumbs": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"scroll-beyond-last-line": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"cursor-surrounding-lines": {
|
||||
"type": "integer"
|
||||
},
|
||||
"sticky-header": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"completion-show-documentation": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"auto-closing-matching-pairs": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"auto-surround": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"hover-delay": {
|
||||
"type": "integer"
|
||||
},
|
||||
"modal-mode-relative-line-numbers": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"format-on-save": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"highlight-matching-brackets": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"highlight-selection-occurrences": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"autosave-interval": {
|
||||
"type": "integer"
|
||||
},
|
||||
"enable-inlay-hints": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"inlay-hint-font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"inlay-hint-font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"enable-error-lens": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"error-lens-end-of-line": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"error-lens-font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"error-lens-font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"blink-interval": {
|
||||
"type": "integer"
|
||||
},
|
||||
"multicursor-case-sensitive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"multicursor-whole-words": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"render-whitespace": {
|
||||
"type": "string"
|
||||
},
|
||||
"show-indent-guide": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"atomic-soft-tabs": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Editor"
|
||||
},
|
||||
"Terminal": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"line-height": {
|
||||
"type": "integer"
|
||||
},
|
||||
"shell": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Terminal"
|
||||
},
|
||||
"UI": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"icon-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"header-height": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status-height": {
|
||||
"type": "integer"
|
||||
},
|
||||
"tab-min-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"scroll-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"drop-shadow-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"palette-width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"hover-font-family": {
|
||||
"type": "string"
|
||||
},
|
||||
"hover-font-size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"trim-search-results-whitespace": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "UI"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 401 KiB |
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="windows-1252"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||
<Product Name="Lapce" Id="*" UpgradeCode="9c09a374-1135-4782-959f-2dec376a1dfa" Language="1033" Codepage="1252" Version="0.4.6" Manufacturer="Lapce">
|
||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
|
||||
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
|
||||
<Icon Id="lapce.exe" SourceFile=".\extra\windows\lapce.ico"/>
|
||||
<WixVariable Id="WixUILicenseRtf" Value=".\extra\windows\wix\license.rtf"/>
|
||||
<Property Id="ARPPRODUCTICON" Value="lapce.exe"/>
|
||||
<MediaTemplate EmbedCab="yes"/>
|
||||
<UIRef Id="WixUI_Minimal"/>
|
||||
|
||||
<Feature Id="ProductFeature" Title="ConsoleApp" Level="1">
|
||||
<ComponentRef Id="LapceExe"/>
|
||||
<ComponentRef Id="LapceShortcut"/>
|
||||
<ComponentRef Id="ModifyPathEnv"/>
|
||||
<ComponentRef Id="ContextMenu"/>
|
||||
</Feature>
|
||||
|
||||
<!-- Create directories -->
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="ProgramFiles64Folder">
|
||||
<Directory Id="LapceProgramFiles" Name="Lapce"/>
|
||||
</Directory>
|
||||
<Directory Id="ProgramMenuFolder">
|
||||
<Directory Id="LapceProgramMenu" Name="Lapce"/>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<!-- Application binaries -->
|
||||
<DirectoryRef Id="LapceProgramFiles">
|
||||
<Component Id="LapceExe" Guid="*">
|
||||
<File Id="LapceExeFile" Source=".\target\release-lto\lapce.exe" Name="lapce.exe" KeyPath="yes"/>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
<DirectoryRef Id="LapceProgramMenu">
|
||||
<!-- Application shortcut -->
|
||||
<Component Id="LapceShortcut" Guid="7d3d3a8e-febb-4759-8eca-873676d5066a">
|
||||
<Shortcut Id="LapceShortcutFile" Icon="lapce.exe" Name="Lapce" Description="Lightning-fast and Powerful Code Editor" Target="[LapceProgramFiles]lapce.exe"/>
|
||||
<RemoveFolder Id="LapceProgramMenu" On="uninstall"/>
|
||||
<RegistryValue Root="HKCU" Key="Software\Microsoft\Lapce" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
<DirectoryRef Id="LapceProgramFiles">
|
||||
<!-- Add to PATH -->
|
||||
<Component Id="ModifyPathEnv" Guid="0581ccb0-5db8-4935-8b07-8f46bc2d7171" KeyPath="yes">
|
||||
<Environment Id="PathEnv" Value="[LapceProgramFiles]" Name="PATH" Permanent="no" Part="first" Action="set" System="yes"/>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
<DirectoryRef Id="TARGETDIR">
|
||||
<!-- Add context menu -->
|
||||
<Component Id="ContextMenu" Guid="22ad399b-1d77-416c-ae33-57e8f8511177">
|
||||
<RegistryKey Root="HKCU" Key="Software\Classes\Directory\Background\shell\Open Lapce here\command">
|
||||
<RegistryValue Type="string" Value="[LapceProgramFiles]lapce.exe "%V"" KeyPath="yes"/>
|
||||
</RegistryKey>
|
||||
<RegistryKey Root="HKCU" Key="Software\Classes\Directory\Background\shell\Open Lapce here">
|
||||
<RegistryValue Type="string" Name="Icon" Value="[LapceProgramFiles]lapce.exe"/>
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
</Product>
|
||||
</Wix>
|
||||
@@ -0,0 +1,53 @@
|
||||
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{}
|
||||
{\*\generator Riched20 10.0.17763}\viewkind4\uc1
|
||||
\pard\sa200\sl276\slmult1\qc\f0\fs22\lang9 Apache License\par
|
||||
Version 2.0, January 2004\par
|
||||
{{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/ }}{\fldrslt{http://www.apache.org/licenses/\ul0\cf0}}}}\f0\fs22\par
|
||||
|
||||
\pard\sa200\sl276\slmult1\par
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\par
|
||||
\par
|
||||
1. Definitions.\par
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\par
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\par
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\par
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\par
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\par
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\par
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\par
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\par
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\par
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\par
|
||||
2. Grant of Copyright License.\par
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\par
|
||||
3. Grant of Patent License.\par
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\par
|
||||
4. Redistribution.\par
|
||||
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\par
|
||||
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\par
|
||||
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and\par
|
||||
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\par
|
||||
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\par
|
||||
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\par
|
||||
5. Submission of Contributions.\par
|
||||
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\par
|
||||
6. Trademarks.\par
|
||||
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\par
|
||||
7. Disclaimer of Warranty.\par
|
||||
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\par
|
||||
8. Limitation of Liability.\par
|
||||
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\par
|
||||
9. Accepting Warranty or Additional Liability.\par
|
||||
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\par
|
||||
END OF TERMS AND CONDITIONS\par
|
||||
\par
|
||||
APPENDIX: How to apply the Apache License to your work.\par
|
||||
\par
|
||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.\par
|
||||
Copyright 2016 Joe Wilm, The Alacritty Project Contributors\par
|
||||
Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at\par
|
||||
\par
|
||||
\tab {{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f0\fs22\par
|
||||
\par
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions andlimitations under the License.\par
|
||||
}
|
||||
@@ -0,0 +1,395 @@
|
||||
Attribution 4.0 International
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
||||
does not provide legal services or legal advice. Distribution of
|
||||
Creative Commons public licenses does not create a lawyer-client or
|
||||
other relationship. Creative Commons makes its licenses and related
|
||||
information available on an "as-is" basis. Creative Commons gives no
|
||||
warranties regarding its licenses, any material licensed under their
|
||||
terms and conditions, or any related information. Creative Commons
|
||||
disclaims all liability for damages resulting from their use to the
|
||||
fullest extent possible.
|
||||
|
||||
Using Creative Commons Public Licenses
|
||||
|
||||
Creative Commons public licenses provide a standard set of terms and
|
||||
conditions that creators and other rights holders may use to share
|
||||
original works of authorship and other material subject to copyright
|
||||
and certain other rights specified in the public license below. The
|
||||
following considerations are for informational purposes only, are not
|
||||
exhaustive, and do not form part of our licenses.
|
||||
|
||||
Considerations for licensors: Our public licenses are
|
||||
intended for use by those authorized to give the public
|
||||
permission to use material in ways otherwise restricted by
|
||||
copyright and certain other rights. Our licenses are
|
||||
irrevocable. Licensors should read and understand the terms
|
||||
and conditions of the license they choose before applying it.
|
||||
Licensors should also secure all rights necessary before
|
||||
applying our licenses so that the public can reuse the
|
||||
material as expected. Licensors should clearly mark any
|
||||
material not subject to the license. This includes other CC-
|
||||
licensed material, or material used under an exception or
|
||||
limitation to copyright. More considerations for licensors:
|
||||
wiki.creativecommons.org/Considerations_for_licensors
|
||||
|
||||
Considerations for the public: By using one of our public
|
||||
licenses, a licensor grants the public permission to use the
|
||||
licensed material under specified terms and conditions. If
|
||||
the licensor's permission is not necessary for any reason--for
|
||||
example, because of any applicable exception or limitation to
|
||||
copyright--then that use is not regulated by the license. Our
|
||||
licenses grant only permissions under copyright and certain
|
||||
other rights that a licensor has authority to grant. Use of
|
||||
the licensed material may still be restricted for other
|
||||
reasons, including because others have copyright or other
|
||||
rights in the material. A licensor may make special requests,
|
||||
such as asking that all changes be marked or described.
|
||||
Although not required by our licenses, you are encouraged to
|
||||
respect those requests where reasonable. More_considerations
|
||||
for the public:
|
||||
wiki.creativecommons.org/Considerations_for_licensees
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons Attribution 4.0 International Public License
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree
|
||||
to be bound by the terms and conditions of this Creative Commons
|
||||
Attribution 4.0 International Public License ("Public License"). To the
|
||||
extent this Public License may be interpreted as a contract, You are
|
||||
granted the Licensed Rights in consideration of Your acceptance of
|
||||
these terms and conditions, and the Licensor grants You such rights in
|
||||
consideration of benefits the Licensor receives from making the
|
||||
Licensed Material available under these terms and conditions.
|
||||
|
||||
|
||||
Section 1 -- Definitions.
|
||||
|
||||
a. Adapted Material means material subject to Copyright and Similar
|
||||
Rights that is derived from or based upon the Licensed Material
|
||||
and in which the Licensed Material is translated, altered,
|
||||
arranged, transformed, or otherwise modified in a manner requiring
|
||||
permission under the Copyright and Similar Rights held by the
|
||||
Licensor. For purposes of this Public License, where the Licensed
|
||||
Material is a musical work, performance, or sound recording,
|
||||
Adapted Material is always produced where the Licensed Material is
|
||||
synched in timed relation with a moving image.
|
||||
|
||||
b. Adapter's License means the license You apply to Your Copyright
|
||||
and Similar Rights in Your contributions to Adapted Material in
|
||||
accordance with the terms and conditions of this Public License.
|
||||
|
||||
c. Copyright and Similar Rights means copyright and/or similar rights
|
||||
closely related to copyright including, without limitation,
|
||||
performance, broadcast, sound recording, and Sui Generis Database
|
||||
Rights, without regard to how the rights are labeled or
|
||||
categorized. For purposes of this Public License, the rights
|
||||
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
||||
Rights.
|
||||
|
||||
d. Effective Technological Measures means those measures that, in the
|
||||
absence of proper authority, may not be circumvented under laws
|
||||
fulfilling obligations under Article 11 of the WIPO Copyright
|
||||
Treaty adopted on December 20, 1996, and/or similar international
|
||||
agreements.
|
||||
|
||||
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
||||
any other exception or limitation to Copyright and Similar Rights
|
||||
that applies to Your use of the Licensed Material.
|
||||
|
||||
f. Licensed Material means the artistic or literary work, database,
|
||||
or other material to which the Licensor applied this Public
|
||||
License.
|
||||
|
||||
g. Licensed Rights means the rights granted to You subject to the
|
||||
terms and conditions of this Public License, which are limited to
|
||||
all Copyright and Similar Rights that apply to Your use of the
|
||||
Licensed Material and that the Licensor has authority to license.
|
||||
|
||||
h. Licensor means the individual(s) or entity(ies) granting rights
|
||||
under this Public License.
|
||||
|
||||
i. Share means to provide material to the public by any means or
|
||||
process that requires permission under the Licensed Rights, such
|
||||
as reproduction, public display, public performance, distribution,
|
||||
dissemination, communication, or importation, and to make material
|
||||
available to the public including in ways that members of the
|
||||
public may access the material from a place and at a time
|
||||
individually chosen by them.
|
||||
|
||||
j. Sui Generis Database Rights means rights other than copyright
|
||||
resulting from Directive 96/9/EC of the European Parliament and of
|
||||
the Council of 11 March 1996 on the legal protection of databases,
|
||||
as amended and/or succeeded, as well as other essentially
|
||||
equivalent rights anywhere in the world.
|
||||
|
||||
k. You means the individual or entity exercising the Licensed Rights
|
||||
under this Public License. Your has a corresponding meaning.
|
||||
|
||||
|
||||
Section 2 -- Scope.
|
||||
|
||||
a. License grant.
|
||||
|
||||
1. Subject to the terms and conditions of this Public License,
|
||||
the Licensor hereby grants You a worldwide, royalty-free,
|
||||
non-sublicensable, non-exclusive, irrevocable license to
|
||||
exercise the Licensed Rights in the Licensed Material to:
|
||||
|
||||
a. reproduce and Share the Licensed Material, in whole or
|
||||
in part; and
|
||||
|
||||
b. produce, reproduce, and Share Adapted Material.
|
||||
|
||||
2. Exceptions and Limitations. For the avoidance of doubt, where
|
||||
Exceptions and Limitations apply to Your use, this Public
|
||||
License does not apply, and You do not need to comply with
|
||||
its terms and conditions.
|
||||
|
||||
3. Term. The term of this Public License is specified in Section
|
||||
6(a).
|
||||
|
||||
4. Media and formats; technical modifications allowed. The
|
||||
Licensor authorizes You to exercise the Licensed Rights in
|
||||
all media and formats whether now known or hereafter created,
|
||||
and to make technical modifications necessary to do so. The
|
||||
Licensor waives and/or agrees not to assert any right or
|
||||
authority to forbid You from making technical modifications
|
||||
necessary to exercise the Licensed Rights, including
|
||||
technical modifications necessary to circumvent Effective
|
||||
Technological Measures. For purposes of this Public License,
|
||||
simply making modifications authorized by this Section 2(a)
|
||||
(4) never produces Adapted Material.
|
||||
|
||||
5. Downstream recipients.
|
||||
|
||||
a. Offer from the Licensor -- Licensed Material. Every
|
||||
recipient of the Licensed Material automatically
|
||||
receives an offer from the Licensor to exercise the
|
||||
Licensed Rights under the terms and conditions of this
|
||||
Public License.
|
||||
|
||||
b. No downstream restrictions. You may not offer or impose
|
||||
any additional or different terms or conditions on, or
|
||||
apply any Effective Technological Measures to, the
|
||||
Licensed Material if doing so restricts exercise of the
|
||||
Licensed Rights by any recipient of the Licensed
|
||||
Material.
|
||||
|
||||
6. No endorsement. Nothing in this Public License constitutes or
|
||||
may be construed as permission to assert or imply that You
|
||||
are, or that Your use of the Licensed Material is, connected
|
||||
with, or sponsored, endorsed, or granted official status by,
|
||||
the Licensor or others designated to receive attribution as
|
||||
provided in Section 3(a)(1)(A)(i).
|
||||
|
||||
b. Other rights.
|
||||
|
||||
1. Moral rights, such as the right of integrity, are not
|
||||
licensed under this Public License, nor are publicity,
|
||||
privacy, and/or other similar personality rights; however, to
|
||||
the extent possible, the Licensor waives and/or agrees not to
|
||||
assert any such rights held by the Licensor to the limited
|
||||
extent necessary to allow You to exercise the Licensed
|
||||
Rights, but not otherwise.
|
||||
|
||||
2. Patent and trademark rights are not licensed under this
|
||||
Public License.
|
||||
|
||||
3. To the extent possible, the Licensor waives any right to
|
||||
collect royalties from You for the exercise of the Licensed
|
||||
Rights, whether directly or through a collecting society
|
||||
under any voluntary or waivable statutory or compulsory
|
||||
licensing scheme. In all other cases the Licensor expressly
|
||||
reserves any right to collect such royalties.
|
||||
|
||||
|
||||
Section 3 -- License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the
|
||||
following conditions.
|
||||
|
||||
a. Attribution.
|
||||
|
||||
1. If You Share the Licensed Material (including in modified
|
||||
form), You must:
|
||||
|
||||
a. retain the following if it is supplied by the Licensor
|
||||
with the Licensed Material:
|
||||
|
||||
i. identification of the creator(s) of the Licensed
|
||||
Material and any others designated to receive
|
||||
attribution, in any reasonable manner requested by
|
||||
the Licensor (including by pseudonym if
|
||||
designated);
|
||||
|
||||
ii. a copyright notice;
|
||||
|
||||
iii. a notice that refers to this Public License;
|
||||
|
||||
iv. a notice that refers to the disclaimer of
|
||||
warranties;
|
||||
|
||||
v. a URI or hyperlink to the Licensed Material to the
|
||||
extent reasonably practicable;
|
||||
|
||||
b. indicate if You modified the Licensed Material and
|
||||
retain an indication of any previous modifications; and
|
||||
|
||||
c. indicate the Licensed Material is licensed under this
|
||||
Public License, and include the text of, or the URI or
|
||||
hyperlink to, this Public License.
|
||||
|
||||
2. You may satisfy the conditions in Section 3(a)(1) in any
|
||||
reasonable manner based on the medium, means, and context in
|
||||
which You Share the Licensed Material. For example, it may be
|
||||
reasonable to satisfy the conditions by providing a URI or
|
||||
hyperlink to a resource that includes the required
|
||||
information.
|
||||
|
||||
3. If requested by the Licensor, You must remove any of the
|
||||
information required by Section 3(a)(1)(A) to the extent
|
||||
reasonably practicable.
|
||||
|
||||
4. If You Share Adapted Material You produce, the Adapter's
|
||||
License You apply must not prevent recipients of the Adapted
|
||||
Material from complying with this Public License.
|
||||
|
||||
|
||||
Section 4 -- Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that
|
||||
apply to Your use of the Licensed Material:
|
||||
|
||||
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
||||
to extract, reuse, reproduce, and Share all or a substantial
|
||||
portion of the contents of the database;
|
||||
|
||||
b. if You include all or a substantial portion of the database
|
||||
contents in a database in which You have Sui Generis Database
|
||||
Rights, then the database in which You have Sui Generis Database
|
||||
Rights (but not its individual contents) is Adapted Material; and
|
||||
|
||||
c. You must comply with the conditions in Section 3(a) if You Share
|
||||
all or a substantial portion of the contents of the database.
|
||||
|
||||
For the avoidance of doubt, this Section 4 supplements and does not
|
||||
replace Your obligations under this Public License where the Licensed
|
||||
Rights include other Copyright and Similar Rights.
|
||||
|
||||
|
||||
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
||||
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
||||
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
||||
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
||||
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
||||
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
||||
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
||||
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
||||
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
||||
|
||||
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
||||
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
||||
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
||||
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
||||
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
||||
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
||||
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
||||
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
||||
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
||||
|
||||
c. The disclaimer of warranties and limitation of liability provided
|
||||
above shall be interpreted in a manner that, to the extent
|
||||
possible, most closely approximates an absolute disclaimer and
|
||||
waiver of all liability.
|
||||
|
||||
|
||||
Section 6 -- Term and Termination.
|
||||
|
||||
a. This Public License applies for the term of the Copyright and
|
||||
Similar Rights licensed here. However, if You fail to comply with
|
||||
this Public License, then Your rights under this Public License
|
||||
terminate automatically.
|
||||
|
||||
b. Where Your right to use the Licensed Material has terminated under
|
||||
Section 6(a), it reinstates:
|
||||
|
||||
1. automatically as of the date the violation is cured, provided
|
||||
it is cured within 30 days of Your discovery of the
|
||||
violation; or
|
||||
|
||||
2. upon express reinstatement by the Licensor.
|
||||
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any
|
||||
right the Licensor may have to seek remedies for Your violations
|
||||
of this Public License.
|
||||
|
||||
c. For the avoidance of doubt, the Licensor may also offer the
|
||||
Licensed Material under separate terms or conditions or stop
|
||||
distributing the Licensed Material at any time; however, doing so
|
||||
will not terminate this Public License.
|
||||
|
||||
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
||||
License.
|
||||
|
||||
|
||||
Section 7 -- Other Terms and Conditions.
|
||||
|
||||
a. The Licensor shall not be bound by any additional or different
|
||||
terms or conditions communicated by You unless expressly agreed.
|
||||
|
||||
b. Any arrangements, understandings, or agreements regarding the
|
||||
Licensed Material not stated herein are separate from and
|
||||
independent of the terms and conditions of this Public License.
|
||||
|
||||
|
||||
Section 8 -- Interpretation.
|
||||
|
||||
a. For the avoidance of doubt, this Public License does not, and
|
||||
shall not be interpreted to, reduce, limit, restrict, or impose
|
||||
conditions on any use of the Licensed Material that could lawfully
|
||||
be made without permission under this Public License.
|
||||
|
||||
b. To the extent possible, if any provision of this Public License is
|
||||
deemed unenforceable, it shall be automatically reformed to the
|
||||
minimum extent necessary to make it enforceable. If the provision
|
||||
cannot be reformed, it shall be severed from this Public License
|
||||
without affecting the enforceability of the remaining terms and
|
||||
conditions.
|
||||
|
||||
c. No term or condition of this Public License will be waived and no
|
||||
failure to comply consented to unless expressly agreed to by the
|
||||
Licensor.
|
||||
|
||||
d. Nothing in this Public License constitutes or may be interpreted
|
||||
as a limitation upon, or waiver of, any privileges and immunities
|
||||
that apply to the Licensor or You, including from the legal
|
||||
processes of any jurisdiction or authority.
|
||||
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons is not a party to its public
|
||||
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
||||
its public licenses to material it publishes and in those instances
|
||||
will be considered the “Licensor.” The text of the Creative Commons
|
||||
public licenses is dedicated to the public domain under the CC0 Public
|
||||
Domain Dedication. Except for the limited purpose of indicating that
|
||||
material is shared under a Creative Commons public license or as
|
||||
otherwise permitted by the Creative Commons policies published at
|
||||
creativecommons.org/policies, Creative Commons does not authorize the
|
||||
use of the trademark "Creative Commons" or any other trademark or logo
|
||||
of Creative Commons without its prior written consent including,
|
||||
without limitation, in connection with any unauthorized modifications
|
||||
to any of its public licenses or any other arrangements,
|
||||
understandings, or agreements concerning use of licensed material. For
|
||||
the avoidance of doubt, this paragraph does not form part of the
|
||||
public licenses.
|
||||
|
||||
Creative Commons may be contacted at creativecommons.org.
|
||||
@@ -0,0 +1,3 @@
|
||||
# vscode-codicons
|
||||
|
||||
Source: [https://github.com/microsoft/vscode-codicons](https://github.com/microsoft/vscode-codicons)
|
||||
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M14 7v1H8v6H7V8H1V7h6V1h1v6h6z"/></svg>
|
||||
|
After Width: | Height: | Size: 151 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 9l2.146 2.146-.707.708-3-3v-.708l3-3 .707.708L3 8h10l-2.146-2.146.707-.708 3 3v.708l-3 3-.707-.707L13 9H3z"/></svg>
|
||||
|
After Width: | Height: | Size: 270 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.147 9l5 5h.707l5-5-.707-.707L9 12.439V2H8v10.44L3.854 8.292 3.147 9z"/></svg>
|
||||
|
After Width: | Height: | Size: 232 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3.093l-5 5V8.8l5 5 .707-.707-4.146-4.147H14v-1H3.56L7.708 3.8 7 3.093z"/></svg>
|
||||
|
After Width: | Height: | Size: 234 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 13.887l5-5V8.18l-5-5-.707.707 4.146 4.147H2v1h10.44L8.292 13.18l.707.707z"/></svg>
|
||||
|
After Width: | Height: | Size: 237 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.207 15.061L1 11.854v-.707L4.207 7.94l.707.707-2.353 2.354H15v1H2.56l2.354 2.353-.707.707zm7.586-7L15 4.854v-.707L11.793.94l-.707.707L13.439 4H1v1h12.44l-2.354 2.354.707.707z"/></svg>
|
||||
|
After Width: | Height: | Size: 337 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.854 7l-5-5h-.707l-5 5 .707.707L8 3.561V14h1V3.56l4.146 4.147.708-.707z"/></svg>
|
||||
|
After Width: | Height: | Size: 235 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"/>
|
||||
|
After Width: | Height: | Size: 104 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M8.85352 11.7021H7.85449L7.03809 9.54297H3.77246L3.00439 11.7021H2L4.9541 4H5.88867L8.85352 11.7021ZM6.74268 8.73193L5.53418 5.4502C5.49479 5.34277 5.4554 5.1709 5.41602 4.93457H5.39453C5.35872 5.15299 5.31755 5.32487 5.271 5.4502L4.07324 8.73193H6.74268Z"/><path d="M13.756 11.7021H12.8752V10.8428H12.8537C12.4706 11.5016 11.9066 11.8311 11.1618 11.8311C10.6139 11.8311 10.1843 11.686 9.87273 11.396C9.56479 11.106 9.41082 10.721 9.41082 10.2412C9.41082 9.21354 10.016 8.61556 11.2262 8.44727L12.8752 8.21631C12.8752 7.28174 12.4974 6.81445 11.7419 6.81445C11.0794 6.81445 10.4815 7.04004 9.94793 7.49121V6.58887C10.4886 6.24512 11.1117 6.07324 11.8171 6.07324C13.1097 6.07324 13.756 6.75716 13.756 8.125V11.7021ZM12.8752 8.91992L11.5485 9.10254C11.1403 9.15983 10.8324 9.26188 10.6247 9.40869C10.417 9.55192 10.3132 9.80794 10.3132 10.1768C10.3132 10.4453 10.4081 10.6655 10.5978 10.8374C10.7912 11.0057 11.0472 11.0898 11.3659 11.0898C11.8027 11.0898 12.1626 10.9377 12.4455 10.6333C12.7319 10.3254 12.8752 9.93685 12.8752 9.46777V8.91992Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"/></svg>
|
||||
|
After Width: | Height: | Size: 239 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.928 7.976l4.357 4.357-.618.62L5 8.284v-.618L9.667 3l.618.619-4.357 4.357z"/></svg>
|
||||
|
After Width: | Height: | Size: 237 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"/></svg>
|
||||
|
After Width: | Height: | Size: 242 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.024 5.928l-4.357 4.357-.62-.618L7.716 5h.618L13 9.667l-.619.618-4.357-4.357z"/></svg>
|
||||
|
After Width: | Height: | Size: 240 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.116 8l-4.558 4.558.884.884L8 8.884l4.558 4.558.884-.884L8.884 8l4.558-4.558-.884-.884L8 7.116 3.442 2.558l-.884.884L7.116 8z"/></svg>
|
||||
|
After Width: | Height: | Size: 288 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M3 3v10h10V3H3zm9 9H4V4h8v8z"/></svg>
|
||||
|
After Width: | Height: | Size: 149 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M14 8v1H3V8h11z"/></svg>
|
||||
|
After Width: | Height: | Size: 136 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M3 5v9h9V5H3zm8 8H4V6h7v7z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5 5h1V4h7v7h-1v1h2V3H5v2z"/></svg>
|
||||
|
After Width: | Height: | Size: 225 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M8 4c.367 0 .721.048 1.063.145a3.943 3.943 0 0 1 1.762 1.031 3.944 3.944 0 0 1 1.03 1.762c.097.34.145.695.145 1.062 0 .367-.048.721-.145 1.063a3.94 3.94 0 0 1-1.03 1.765 4.017 4.017 0 0 1-1.762 1.031C8.72 11.953 8.367 12 8 12s-.721-.047-1.063-.14a4.056 4.056 0 0 1-1.765-1.032A4.055 4.055 0 0 1 4.14 9.062 3.992 3.992 0 0 1 4 8c0-.367.047-.721.14-1.063a4.02 4.02 0 0 1 .407-.953A4.089 4.089 0 0 1 5.98 4.546a3.94 3.94 0 0 1 .957-.401A3.89 3.89 0 0 1 8 4z"/></svg>
|
||||
|
After Width: | Height: | Size: 575 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z"/></svg>
|
||||
|
After Width: | Height: | Size: 288 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 1l-.5.5v3l.5.5h3l.5-.5v-3L4.5 1h-3zM2 4V2h2v2H2zm-.5 2l-.5.5v3l.5.5h3l.5-.5v-3L4.5 6h-3zM2 9V7h2v2H2zm-1 2.5l.5-.5h3l.5.5v3l-.5.5h-3l-.5-.5v-3zm1 .5v2h2v-2H2zm10.5-7l-.5.5v6l.5.5h3l.5-.5v-6l-.5-.5h-3zM15 8h-2V6h2v2zm0 3h-2V9h2v2zM9.1 8H6v1h3.1l-1 1 .7.6 1.8-1.8v-.7L8.8 6.3l-.7.7 1 1z"/></svg>
|
||||
|
After Width: | Height: | Size: 450 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M7.293 9.006l-.88.88A2.484 2.484 0 0 0 4 8a2.488 2.488 0 0 0-2.413 1.886l-.88-.88L0 9.712l1.147 1.146-.147.146v1H0v.999h1v.053c.051.326.143.643.273.946L0 15.294.707 16l1.1-1.099A2.873 2.873 0 0 0 4 16a2.875 2.875 0 0 0 2.193-1.099L7.293 16 8 15.294l-1.273-1.292A3.92 3.92 0 0 0 7 13.036v-.067h1v-.965H7v-1l-.147-.146L8 9.712l-.707-.706zM4 9.006a1.5 1.5 0 0 1 1.5 1.499h-3A1.498 1.498 0 0 1 4 9.006zm2 3.997A2.217 2.217 0 0 1 4 15a2.22 2.22 0 0 1-2-1.998v-1.499h4v1.499z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5 2.41L5.78 2l9 6v.83L9 12.683v-1.2l4.6-3.063L6 3.35V7H5V2.41z"/></svg>
|
||||
|
After Width: | Height: | Size: 705 B |
@@ -0,0 +1 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M10.94 13.5l-1.32 1.32a3.73 3.73 0 0 0-7.24 0L1.06 13.5 0 14.56l1.72 1.72-.22.22V18H0v1.5h1.5v.08c.077.489.214.966.41 1.42L0 22.94 1.06 24l1.65-1.65A4.308 4.308 0 0 0 6 24a4.31 4.31 0 0 0 3.29-1.65L10.94 24 12 22.94 10.09 21c.198-.464.336-.951.41-1.45v-.1H12V18h-1.5v-1.5l-.22-.22L12 14.56l-1.06-1.06zM6 13.5a2.25 2.25 0 0 1 2.25 2.25h-4.5A2.25 2.25 0 0 1 6 13.5zm3 6a3.33 3.33 0 0 1-3 3 3.33 3.33 0 0 1-3-3v-2.25h6v2.25zm14.76-9.9v1.26L13.5 17.37V15.6l8.5-5.37L9 2v9.46a5.07 5.07 0 0 0-1.5-.72V.63L8.64 0l15.12 9.6z"/></svg>
|
||||
|
After Width: | Height: | Size: 637 B |
@@ -0,0 +1 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.04 1.361l.139-.057H21.32l.14.057 1.178 1.179.057.139V16.82l-.057.14-1.179 1.178-.139.057H14V18a1.99 1.99 0 0 0-.548-1.375h7.673V2.875H7.375v7.282a5.73 5.73 0 0 0-1.571-.164V2.679l.057-.14L7.04 1.362zm9.531 9.452l-2.809 2.8a2 2 0 0 0-.348-.467l-.419-.42 2.236-2.235-3.606-3.694.813-.833 4.133 4.133v.716zM9.62 14.82l1.32-1.32L12 14.56l-1.72 1.72.22.22V18H12v1.45h-1.5v.1a5.888 5.888 0 0 1-.41 1.45L12 22.94 10.94 24l-1.65-1.65A4.308 4.308 0 0 1 6 24a4.31 4.31 0 0 1-3.29-1.65L1.06 24 0 22.94 1.91 21a5.889 5.889 0 0 1-.41-1.42v-.08H0V18h1.5v-1.5l.22-.22L0 14.56l1.06-1.06 1.32 1.32a3.73 3.73 0 0 1 7.24 0zm-2.029-.661A2.25 2.25 0 0 0 3.75 15.75h4.5a2.25 2.25 0 0 0-.659-1.591zm.449 7.38A3.33 3.33 0 0 0 9 19.5v-2.25H3v2.25a3.33 3.33 0 0 0 3 3 3.33 3.33 0 0 0 2.04-.96z"/></svg>
|
||||
|
After Width: | Height: | Size: 931 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 2H4v12H2.5V2zm4.936.39L6.25 3v10l1.186.61 7-5V7.39l-7-5zM12.71 8l-4.96 3.543V4.457L12.71 8z"/></svg>
|
||||
|
After Width: | Height: | Size: 257 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.617 3.844a2.87 2.87 0 0 0-.451-.868l1.354-1.36L13.904 1l-1.36 1.354a2.877 2.877 0 0 0-.868-.452 3.073 3.073 0 0 0-2.14.075 3.03 3.03 0 0 0-.991.664L7 4.192l4.327 4.328 1.552-1.545c.287-.287.508-.618.663-.992a3.074 3.074 0 0 0 .075-2.14zm-.889 1.804a2.15 2.15 0 0 1-.471.705l-.93.93-3.09-3.09.93-.93a2.15 2.15 0 0 1 .704-.472 2.134 2.134 0 0 1 1.689.007c.264.114.494.271.69.472.2.195.358.426.472.69a2.134 2.134 0 0 1 .007 1.688zm-4.824 4.994l1.484-1.545-.616-.622-1.49 1.551-1.86-1.859 1.491-1.552L6.291 6 4.808 7.545l-.616-.615-1.551 1.545a3 3 0 0 0-.663.998 3.023 3.023 0 0 0-.233 1.169c0 .332.05.656.15.97.105.31.258.597.459.862L1 13.834l.615.615 1.36-1.353c.265.2.552.353.862.458.314.1.638.15.97.15.406 0 .796-.077 1.17-.232.378-.155.71-.376.998-.663l1.545-1.552-.616-.615zm-2.262 2.023a2.16 2.16 0 0 1-.834.164c-.301 0-.586-.057-.855-.17a2.278 2.278 0 0 1-.697-.466 2.28 2.28 0 0 1-.465-.697 2.167 2.167 0 0 1-.17-.854 2.16 2.16 0 0 1 .642-1.545l.93-.93 3.09 3.09-.93.93a2.22 2.22 0 0 1-.711.478z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4.5 3H6v10H4.5V3zm7 0v10H10V3h1.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 156 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.75 8a4.5 4.5 0 0 1-8.61 1.834l-1.391.565A6.001 6.001 0 0 0 14.25 8 6 6 0 0 0 3.5 4.334V2.5H2v4l.75.75h3.5v-1.5H4.352A4.5 4.5 0 0 1 12.75 8z"/></svg>
|
||||
|
After Width: | Height: | Size: 304 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.25 3l1.166-.624 8 5.333v1.248l-8 5.334-1.166-.624V3zm1.5 1.401v7.864l5.898-3.932L5.75 4.401z"/></svg>
|
||||
|
After Width: | Height: | Size: 256 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 9.532h.542l3.905-3.905-1.061-1.06-2.637 2.61V1H7.251v6.177l-2.637-2.61-1.061 1.06 3.905 3.905H8zm1.956 3.481a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"/></svg>
|
||||
|
After Width: | Height: | Size: 301 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 1h-.542L3.553 4.905l1.061 1.06 2.637-2.61v6.177h1.498V3.355l2.637 2.61 1.061-1.06L8.542 1H8zm1.956 12.013a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"/></svg>
|
||||
|
After Width: | Height: | Size: 298 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 5.75v-4h-1.5v2.542c-1.145-1.359-2.911-2.209-4.84-2.209-3.177 0-5.92 2.307-6.16 5.398l-.02.269h1.501l.022-.226c.212-2.195 2.202-3.94 4.656-3.94 1.736 0 3.244.875 4.05 2.166h-2.83v1.5h4.163l.962-.975V5.75h-.004zM8 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg>
|
||||
|
After Width: | Height: | Size: 411 B |
@@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M2 2v12h12V2H2zm10.75 10.75h-9.5v-9.5h9.5v9.5z"/></svg>
|
||||
|
After Width: | Height: | Size: 167 B |
@@ -0,0 +1 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M3.463 12.86l-.005-.07.005.07zm7.264.69l-3.034-3.049 1.014-1.014 3.209 3.225 3.163-3.163 1.014 1.014-3.034 3.034 3.034 3.05-1.014 1.014-3.209-3.225L8.707 17.6l-1.014-1.014 3.034-3.034z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.933 5.003V6h1.345l2.843-2.842 1.014 1.014-2.692 2.691.033.085a13.75 13.75 0 0 1 .885 4.912c0 .335-.011.667-.034.995l-.005.075h3.54v1.434h-3.72l-.01.058c-.303 1.653-.891 3.16-1.692 4.429l-.06.094 3.423 3.44-1.017 1.012-3.274-3.29-.099.11c-1.479 1.654-3.395 2.646-5.483 2.646-2.12 0-4.063-1.023-5.552-2.723l-.098-.113-3.209 3.208-1.014-1.014 3.366-3.365-.059-.095c-.772-1.25-1.34-2.725-1.636-4.34l-.01-.057H0V12.93h3.538l-.005-.075a14.23 14.23 0 0 1-.034-.995c0-1.743.31-3.39.863-4.854l.032-.084-2.762-2.776L2.65 3.135 5.5 6h1.427v-.997a5.003 5.003 0 0 1 10.006 0zm-8.572 0V6H15.5v-.997a3.569 3.569 0 0 0-7.138 0zm9.8 2.522l-.034-.09H5.733l-.034.09a12.328 12.328 0 0 0-.766 4.335c0 2.76.862 5.201 2.184 6.92 1.32 1.716 3.036 2.649 4.813 2.649 1.777 0 3.492-.933 4.813-2.65 1.322-1.718 2.184-4.16 2.184-6.919 0-1.574-.28-3.044-.766-4.335z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |