retrovim 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.conda/kmp-lsp.yaml +82 -0
- package/.conda/phpantom_lsp.yaml +78 -0
- package/.conda/retrovim.yaml +63 -34
- package/.conda/sqls.yaml +42 -0
- package/.github/workflows/release.yml +67 -56
- package/.npm/kanata_touchcursor.js +28 -15
- package/.npm/nvim.js +4 -4
- package/.npm/yazi.js +4 -4
- package/.npm/zsh.js +4 -4
- package/.pip/kanata_touchcursor/__init__.py +30 -15
- package/.pip/nvim/__init__.py +7 -9
- package/.pip/yazi/__init__.py +7 -9
- package/.pip/zsh/__init__.py +8 -9
- package/CHANGELOG.md +20 -0
- package/README.md +51 -44
- package/kanata/touchcursor.kbd +16 -11
- package/nvim/init.lua +78 -66
- package/package.json +25 -1
- package/pyproject.toml +54 -21
- package/yazi/keymap.toml +3 -3
- package/zsh/.zshrc +45 -31
- package/zsh/starship.toml +1 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# https://rattler-build.prefix.dev/latest/tutorials/repackaging
|
|
2
|
+
# rattler-build build --recipe kmp-lsp.yaml --target-platform linux-64 --output-dir kmp-lsp-channel
|
|
3
|
+
# rattler-build build --recipe kmp-lsp.yaml --target-platform linux-aarch64 --output-dir kmp-lsp-channel
|
|
4
|
+
# rattler-build build --recipe kmp-lsp.yaml --target-platform osx-64 --output-dir kmp-lsp-channel
|
|
5
|
+
# rattler-build build --recipe kmp-lsp.yaml --target-platform osx-arm64 --output-dir kmp-lsp-channel
|
|
6
|
+
# rattler-build build --recipe kmp-lsp.yaml --target-platform win-64 --output-dir kmp-lsp-channel
|
|
7
|
+
|
|
8
|
+
# https://pixi.prefix.dev/dev/reference/cli/pixi/clean/cache
|
|
9
|
+
# pixi clean cache --build --yes
|
|
10
|
+
|
|
11
|
+
# https://pixi.prefix.dev/dev/reference/cli/pixi/global/install
|
|
12
|
+
# pixi g install --path ./kmp-lsp-channel/linux-64/kmp-lsp*
|
|
13
|
+
# pixi g install --path ./kmp-lsp-channel/linux-aarch64/kmp-lsp*
|
|
14
|
+
# pixi g install --path ./kmp-lsp-channel/osx-64/kmp-lsp*
|
|
15
|
+
# pixi g install --path ./kmp-lsp-channel/osx-aarch64/kmp-lsp*
|
|
16
|
+
# pixi g install --path ./kmp-lsp-channel/win-64/kmp-lsp-0.25.0-h9490d1a_0.conda
|
|
17
|
+
|
|
18
|
+
# https://rattler-build.prefix.dev/latest/getting_started/#authentication
|
|
19
|
+
# rattler-build auth login anaconda.org --conda-token $ANACONDA_API_KEY
|
|
20
|
+
|
|
21
|
+
# https://rattler-build.prefix.dev/latest/getting_started/#publishing-the-package
|
|
22
|
+
# rattler-build publish --recipe kmp-lsp.yaml --target-platform linux-64 --to https://anaconda.org/retronvim
|
|
23
|
+
# rattler-build publish --recipe kmp-lsp.yaml --target-platform linux-aarch64 --to https://anaconda.org/retronvim
|
|
24
|
+
# rattler-build publish --recipe kmp-lsp.yaml --target-platform osx-64 --to https://anaconda.org/retronvim
|
|
25
|
+
# rattler-build publish --recipe kmp-lsp.yaml --target-platform osx-arm64 --to https://anaconda.org/retronvim
|
|
26
|
+
# rattler-build publish --recipe kmp-lsp.yaml --target-platform win-64 --to https://anaconda.org/retronvim
|
|
27
|
+
|
|
28
|
+
context:
|
|
29
|
+
version: 0.25.0
|
|
30
|
+
|
|
31
|
+
package:
|
|
32
|
+
name: kmp-lsp
|
|
33
|
+
version: ${{ version }}
|
|
34
|
+
|
|
35
|
+
source:
|
|
36
|
+
- if: target_platform == "linux-64"
|
|
37
|
+
then:
|
|
38
|
+
- url: https://github.com/Hessesian/kmp-lsp/releases/download/v${{ version }}/kmp-lsp-linux-x86_64.tar.gz
|
|
39
|
+
|
|
40
|
+
- if: target_platform == "linux-aarch64"
|
|
41
|
+
then:
|
|
42
|
+
- url: https://github.com/Hessesian/kmp-lsp/releases/download/v${{ version }}/kmp-lsp-linux-aarch64.tar.gz
|
|
43
|
+
|
|
44
|
+
- if: target_platform == "osx-64"
|
|
45
|
+
then:
|
|
46
|
+
- url: https://github.com/Hessesian/kmp-lsp/releases/download/v${{ version }}/kmp-lsp-darwin-x86_64.tar.gz
|
|
47
|
+
|
|
48
|
+
- if: target_platform == "osx-arm64"
|
|
49
|
+
then:
|
|
50
|
+
- url: https://github.com/Hessesian/kmp-lsp/releases/download/v${{ version }}/kmp-lsp-darwin-aarch64.tar.gz
|
|
51
|
+
|
|
52
|
+
- if: target_platform == "win-64"
|
|
53
|
+
then:
|
|
54
|
+
- url: https://github.com/Hessesian/kmp-lsp/releases/download/v${{ version }}/kmp-lsp-windows-x86_64.zip
|
|
55
|
+
|
|
56
|
+
build:
|
|
57
|
+
# number: 0 # build version
|
|
58
|
+
|
|
59
|
+
dynamic_linking:
|
|
60
|
+
# fixes macos builds from linux: failed to find `install_name_tool`
|
|
61
|
+
# https://rattler-build.prefix.dev/latest/build_options/#dynamic-linking-configuration
|
|
62
|
+
binary_relocation: false
|
|
63
|
+
|
|
64
|
+
script:
|
|
65
|
+
interpreter: bash
|
|
66
|
+
content:
|
|
67
|
+
- mkdir -p $PREFIX/bin
|
|
68
|
+
- cp -r kmp-lsp* $PREFIX/bin
|
|
69
|
+
|
|
70
|
+
- if: win
|
|
71
|
+
then:
|
|
72
|
+
- mv $PREFIX/bin/kmp-lsp* $PREFIX/bin/kmp-lsp.exe
|
|
73
|
+
|
|
74
|
+
tests:
|
|
75
|
+
- package_contents:
|
|
76
|
+
bin:
|
|
77
|
+
- kmp-lsp*
|
|
78
|
+
|
|
79
|
+
about:
|
|
80
|
+
summary: Fast, low-memory LSP server for Kotlin and Java, written in Rust
|
|
81
|
+
homepage: https://github.com/Hessesian/kmp-lsp
|
|
82
|
+
repository: https://github.com/Hessesian/kmp-lsp
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# https://rattler-build.prefix.dev/latest/tutorials/repackaging
|
|
2
|
+
# rattler-build build --recipe phpantom_lsp.yaml --target-platform linux-64 --output-dir phpantom-channel
|
|
3
|
+
# rattler-build build --recipe phpantom_lsp.yaml --target-platform linux-aarch64 --output-dir phpantom-channel
|
|
4
|
+
# rattler-build build --recipe phpantom_lsp.yaml --target-platform osx-64 --output-dir phpantom-channel
|
|
5
|
+
# rattler-build build --recipe phpantom_lsp.yaml --target-platform osx-arm64 --output-dir phpantom-channel
|
|
6
|
+
# rattler-build build --recipe phpantom_lsp.yaml --target-platform win-64 --output-dir phpantom-channel
|
|
7
|
+
|
|
8
|
+
# https://pixi.prefix.dev/dev/reference/cli/pixi/clean/cache
|
|
9
|
+
# pixi clean cache --build --yes
|
|
10
|
+
|
|
11
|
+
# https://pixi.prefix.dev/dev/reference/cli/pixi/global/install
|
|
12
|
+
# pixi g install --path ./phpantom-channel/linux-64/phpantom*
|
|
13
|
+
# pixi g install --path ./phpantom-channel/linux-aarch64/phpantom*
|
|
14
|
+
# pixi g install --path ./phpantom-channel/osx-64/phpantom*
|
|
15
|
+
# pixi g install --path ./phpantom-channel/osx-aarch64/phpantom*
|
|
16
|
+
# pixi g install --path ./phpantom-channel/win-64/phpantom-0.9.0-h9490d1a_0.conda
|
|
17
|
+
|
|
18
|
+
# https://rattler-build.prefix.dev/latest/getting_started/#authentication
|
|
19
|
+
# rattler-build auth login anaconda.org --conda-token $ANACONDA_API_KEY
|
|
20
|
+
|
|
21
|
+
# https://rattler-build.prefix.dev/latest/getting_started/#publishing-the-package
|
|
22
|
+
# rattler-build publish --recipe phpantom_lsp.yaml --target-platform linux-64 --to https://anaconda.org/retronvim
|
|
23
|
+
# rattler-build publish --recipe phpantom_lsp.yaml --target-platform linux-aarch64 --to https://anaconda.org/retronvim
|
|
24
|
+
# rattler-build publish --recipe phpantom_lsp.yaml --target-platform osx-64 --to https://anaconda.org/retronvim
|
|
25
|
+
# rattler-build publish --recipe phpantom_lsp.yaml --target-platform osx-arm64 --to https://anaconda.org/retronvim
|
|
26
|
+
# rattler-build publish --recipe phpantom_lsp.yaml --target-platform win-64 --to https://anaconda.org/retronvim
|
|
27
|
+
|
|
28
|
+
context:
|
|
29
|
+
version: 0.9.0
|
|
30
|
+
|
|
31
|
+
package:
|
|
32
|
+
name: phpantom_lsp
|
|
33
|
+
version: ${{ version }}
|
|
34
|
+
|
|
35
|
+
source:
|
|
36
|
+
- if: target_platform == "linux-64"
|
|
37
|
+
then:
|
|
38
|
+
- url: https://github.com/PHPantom-dev/phpantom_lsp/releases/download/${{ version }}/phpantom_lsp-x86_64-unknown-linux-gnu.tar.gz
|
|
39
|
+
|
|
40
|
+
- if: target_platform == "linux-aarch64"
|
|
41
|
+
then:
|
|
42
|
+
- url: https://github.com/PHPantom-dev/phpantom_lsp/releases/download/${{ version }}/phpantom_lsp-aarch64-unknown-linux-gnu.tar.gz
|
|
43
|
+
|
|
44
|
+
- if: target_platform == "osx-64"
|
|
45
|
+
then:
|
|
46
|
+
- url: https://github.com/PHPantom-dev/phpantom_lsp/releases/download/${{ version }}/phpantom_lsp-x86_64-apple-darwin.tar.gz
|
|
47
|
+
|
|
48
|
+
- if: target_platform == "osx-arm64"
|
|
49
|
+
then:
|
|
50
|
+
- url: https://github.com/PHPantom-dev/phpantom_lsp/releases/download/${{ version }}/phpantom_lsp-aarch64-apple-darwin.tar.gz
|
|
51
|
+
|
|
52
|
+
- if: target_platform == "win-64"
|
|
53
|
+
then:
|
|
54
|
+
- url: https://github.com/PHPantom-dev/phpantom_lsp/releases/download/${{ version }}/phpantom_lsp-x86_64-pc-windows-msvc.zip
|
|
55
|
+
|
|
56
|
+
build:
|
|
57
|
+
# number: 0 # build version
|
|
58
|
+
|
|
59
|
+
dynamic_linking:
|
|
60
|
+
# fixes macos builds from linux: failed to find `install_name_tool`
|
|
61
|
+
# https://rattler-build.prefix.dev/latest/build_options/#dynamic-linking-configuration
|
|
62
|
+
binary_relocation: false
|
|
63
|
+
|
|
64
|
+
script:
|
|
65
|
+
interpreter: bash
|
|
66
|
+
content:
|
|
67
|
+
- mkdir -p $PREFIX/bin
|
|
68
|
+
- cp -r phpantom* $PREFIX/bin
|
|
69
|
+
|
|
70
|
+
tests:
|
|
71
|
+
- package_contents:
|
|
72
|
+
bin:
|
|
73
|
+
- phpantom*
|
|
74
|
+
|
|
75
|
+
about:
|
|
76
|
+
summary: Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations.
|
|
77
|
+
homepage: https://phpantom-dev.github.io/phpantom_lsp/
|
|
78
|
+
repository: https://github.com/PHPantom-dev/phpantom_lsp
|
package/.conda/retrovim.yaml
CHANGED
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
# https://rattler-build.prefix.dev/latest/tutorials/repackaging
|
|
2
|
-
# rattler-build build --recipe retrovim.yaml --target-platform linux-64
|
|
3
|
-
# rattler-build build --recipe retrovim.yaml --target-platform
|
|
4
|
-
# rattler-build build --recipe retrovim.yaml --target-platform osx-
|
|
5
|
-
# rattler-build build --recipe retrovim.yaml --target-platform
|
|
2
|
+
# rattler-build build --recipe retrovim.yaml --target-platform linux-64 --output-dir retrovim-channel
|
|
3
|
+
# rattler-build build --recipe retrovim.yaml --target-platform linux-aarch64 --output-dir retrovim-channel
|
|
4
|
+
# rattler-build build --recipe retrovim.yaml --target-platform osx-64 --output-dir retrovim-channel
|
|
5
|
+
# rattler-build build --recipe retrovim.yaml --target-platform osx-arm64 --output-dir retrovim-channel
|
|
6
|
+
# rattler-build build --recipe retrovim.yaml --target-platform win-64 --output-dir retrovim-channel
|
|
6
7
|
|
|
7
8
|
# https://pixi.prefix.dev/dev/reference/cli/pixi/clean/cache
|
|
8
9
|
# pixi clean cache --build --yes
|
|
9
10
|
|
|
10
11
|
# https://pixi.prefix.dev/dev/reference/cli/pixi/global/install
|
|
11
|
-
# pixi g install
|
|
12
|
+
# pixi g install --path ./retrovim-channel/linux-64/*conda -c retronvim -c conda-forge
|
|
13
|
+
# pixi g install --path ./retrovim-channel/linux-aarch64/*conda -c retronvim -c conda-forge
|
|
14
|
+
# pixi g install --path ./retrovim-channel/osx-64/*conda -c retronvim -c conda-forge
|
|
15
|
+
# pixi g install --path ./retrovim-channel/osx-aarch64/*conda -c retronvim -c conda-forge
|
|
16
|
+
# pixi g install --path ./retrovim-channel/win-64/*conda -c retronvim -c conda-forge
|
|
12
17
|
|
|
13
18
|
# https://rattler-build.prefix.dev/latest/getting_started/#authentication
|
|
14
19
|
# rattler-build auth login anaconda.org --conda-token $ANACONDA_API_KEY
|
|
15
20
|
|
|
16
21
|
# https://rattler-build.prefix.dev/latest/getting_started/#publishing-the-package
|
|
17
|
-
# rattler-build publish --recipe retrovim.yaml --target-platform linux-64
|
|
18
|
-
# rattler-build publish --recipe retrovim.yaml --target-platform
|
|
19
|
-
# rattler-build publish --recipe retrovim.yaml --target-platform osx-
|
|
20
|
-
# rattler-build publish --recipe retrovim.yaml --target-platform
|
|
22
|
+
# rattler-build publish --recipe retrovim.yaml --target-platform linux-64 --to https://anaconda.org/retronvim
|
|
23
|
+
# rattler-build publish --recipe retrovim.yaml --target-platform linux-aarch64 --to https://anaconda.org/retronvim
|
|
24
|
+
# rattler-build publish --recipe retrovim.yaml --target-platform osx-64 --to https://anaconda.org/retronvim
|
|
25
|
+
# rattler-build publish --recipe retrovim.yaml --target-platform osx-arm64 --to https://anaconda.org/retronvim
|
|
26
|
+
# rattler-build publish --recipe retrovim.yaml --target-platform win-64 --to https://anaconda.org/retronvim
|
|
21
27
|
|
|
22
28
|
context:
|
|
23
|
-
version: 0.0.
|
|
29
|
+
version: 0.0.5
|
|
24
30
|
|
|
25
31
|
package:
|
|
26
32
|
name: retrovim
|
|
@@ -37,14 +43,6 @@ source:
|
|
|
37
43
|
build:
|
|
38
44
|
# number: 0 # build version
|
|
39
45
|
|
|
40
|
-
# This makes the package architecture-independent (noarch)
|
|
41
|
-
noarch: generic
|
|
42
|
-
|
|
43
|
-
dynamic_linking:
|
|
44
|
-
# fixes macos builds from linux: failed to find `install_name_tool`
|
|
45
|
-
# https://rattler-build.prefix.dev/latest/build_options/#dynamic-linking-configuration
|
|
46
|
-
binary_relocation: false
|
|
47
|
-
|
|
48
46
|
script:
|
|
49
47
|
interpreter: bash
|
|
50
48
|
content:
|
|
@@ -59,7 +57,7 @@ build:
|
|
|
59
57
|
cat >> $PREFIX/bin/git <<< '#!/bin/bash'
|
|
60
58
|
cat >> $PREFIX/bin/git <<< 'export CONDA_PREFIX=${CONDA_PREFIX:-$(dirname $(dirname $(realpath $0)))}'
|
|
61
59
|
cat >> $PREFIX/bin/git <<< 'cp --update $CONDA_PREFIX/__clobbers__/git/bin/git $CONDA_PREFIX/bin/git.2.53.0'
|
|
62
|
-
cat >> $PREFIX/bin/git <<< 'exec git.2.53.0 "$@"'
|
|
60
|
+
cat >> $PREFIX/bin/git <<< 'exec $CONDA_PREFIX/bin/git.2.53.0 "$@"'
|
|
63
61
|
chmod +x $PREFIX/bin/git
|
|
64
62
|
|
|
65
63
|
############################################################################################################################
|
|
@@ -74,12 +72,12 @@ build:
|
|
|
74
72
|
|
|
75
73
|
cat >> $PREFIX/bin/nvim <<< '#!/bin/bash'
|
|
76
74
|
cat >> $PREFIX/bin/nvim <<< 'export CONDA_PREFIX=${CONDA_PREFIX:-$(dirname $(dirname $(realpath $0)))}'
|
|
77
|
-
cat >> $PREFIX/bin/nvim <<< 'export SHELL=zsh'
|
|
78
75
|
cat >> $PREFIX/bin/nvim <<< 'export RETRONVIM_PREFIX=$CONDA_PREFIX/opt/retrovim'
|
|
76
|
+
cat >> $PREFIX/bin/nvim <<< 'export SHELL=zsh'
|
|
79
77
|
cat >> $PREFIX/bin/nvim <<< 'export VIMINIT="luafile $CONDA_PREFIX/opt/retrovim/nvim/init.lua"'
|
|
80
78
|
cat >> $PREFIX/bin/nvim <<< 'export ZDOTDIR="$CONDA_PREFIX/opt/retrovim/zsh"'
|
|
81
79
|
cat >> $PREFIX/bin/nvim <<< 'cp --update $CONDA_PREFIX/__clobbers__/nvim/bin/nvim $CONDA_PREFIX/bin/nvim.0.12'
|
|
82
|
-
cat >> $PREFIX/bin/nvim <<< 'exec nvim.0.12 "$@"'
|
|
80
|
+
cat >> $PREFIX/bin/nvim <<< 'exec $CONDA_PREFIX/bin/nvim.0.12 "$@"'
|
|
83
81
|
chmod +x $PREFIX/bin/nvim
|
|
84
82
|
|
|
85
83
|
############################################################################################################################
|
|
@@ -93,12 +91,12 @@ build:
|
|
|
93
91
|
############################################################################################################################
|
|
94
92
|
|
|
95
93
|
cat >> $PREFIX/bin/yazi <<< '#!/bin/bash'
|
|
96
|
-
cat >> $PREFIX/bin/yazi <<< 'export BAT_THEME="base16"'
|
|
97
94
|
cat >> $PREFIX/bin/yazi <<< 'export CONDA_PREFIX=${CONDA_PREFIX:-$(dirname $(dirname $(realpath $0)))}'
|
|
95
|
+
cat >> $PREFIX/bin/yazi <<< 'export BAT_THEME="base16"'
|
|
98
96
|
cat >> $PREFIX/bin/yazi <<< 'export FZF_DEFAULT_OPTS='\''--color "hl:-1:reverse,hl+:-1:reverse" --preview "bat --color=always {}" --preview-window=hidden --bind "?:toggle-preview" --multi'\'
|
|
99
97
|
cat >> $PREFIX/bin/yazi <<< 'export LESS="--ignore-case"'
|
|
100
|
-
cat >> $PREFIX/bin/yazi <<< 'export LESSKEYIN="$CONDA_PREFIX/opt/retrovim/yazi/lesskey"'
|
|
101
98
|
cat >> $PREFIX/bin/yazi <<< 'export LESSHISTFILE="-"'
|
|
99
|
+
cat >> $PREFIX/bin/yazi <<< 'export LESSKEYIN="$CONDA_PREFIX/opt/retrovim/yazi/lesskey"'
|
|
102
100
|
cat >> $PREFIX/bin/yazi <<< 'export YAZI_CONFIG_HOME="$CONDA_PREFIX/opt/retrovim/yazi"'
|
|
103
101
|
cat >> $PREFIX/bin/yazi <<< 'exec $CONDA_PREFIX/__clobbers__/yazi/bin/yazi "$@"'
|
|
104
102
|
chmod +x $PREFIX/bin/yazi
|
|
@@ -108,7 +106,7 @@ build:
|
|
|
108
106
|
cat >> $PREFIX/bin/zsh <<< '#!/bin/bash'
|
|
109
107
|
cat >> $PREFIX/bin/zsh <<< 'export CONDA_PREFIX=${CONDA_PREFIX:-$(dirname $(dirname $(realpath $0)))}'
|
|
110
108
|
cat >> $PREFIX/bin/zsh <<< 'export ZDOTDIR="$CONDA_PREFIX/opt/retrovim/zsh"'
|
|
111
|
-
cat >> $PREFIX/bin/zsh <<< 'exec zsh-5.9 "$@"'
|
|
109
|
+
cat >> $PREFIX/bin/zsh <<< 'exec $CONDA_PREFIX/bin/zsh-5.9 "$@"'
|
|
112
110
|
chmod +x $PREFIX/bin/zsh
|
|
113
111
|
|
|
114
112
|
############################################################################################################################
|
|
@@ -118,6 +116,20 @@ build:
|
|
|
118
116
|
|
|
119
117
|
############################################################################################################################
|
|
120
118
|
|
|
119
|
+
mkdir -p $PREFIX/etc/conda/activate.d
|
|
120
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set "VIMINIT=luafile %CONDA_PREFIX%/opt/retrovim/nvim/init.lua"'
|
|
121
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set BAT_THEME=base16'
|
|
122
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set FZF_DEFAULT_OPTS=--color "hl:-1:reverse,hl+:-1:reverse" --preview "bat --color=always {}" --preview-window=hidden --bind "?:toggle-preview" --multi'
|
|
123
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set LESS=--ignore-case'
|
|
124
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set LESSHISTFILE=-'
|
|
125
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set LESSKEYIN=%CONDA_PREFIX%/opt/retrovim/yazi/lesskey'
|
|
126
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set RETRONVIM_PREFIX=%CONDA_PREFIX%/opt/retrovim'
|
|
127
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set SHELL=zsh'
|
|
128
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set YAZI_CONFIG_HOME=%CONDA_PREFIX%/opt/retrovim/yazi'
|
|
129
|
+
cat >> $PREFIX/etc/conda/activate.d/retrovim.bat <<< 'set ZDOTDIR=%CONDA_PREFIX%/opt/retrovim/zsh'
|
|
130
|
+
|
|
131
|
+
############################################################################################################################
|
|
132
|
+
|
|
121
133
|
cat >> $PREFIX/bin/git.cmd <<< '@echo off'
|
|
122
134
|
cat >> $PREFIX/bin/git.cmd <<< 'git.exe %*'
|
|
123
135
|
|
|
@@ -129,12 +141,17 @@ build:
|
|
|
129
141
|
|
|
130
142
|
############################################################################################################################
|
|
131
143
|
|
|
132
|
-
cat >> $PREFIX/Library/bin/nvim.exe <<< ''
|
|
133
144
|
cat >> $PREFIX/Library/bin/nvim.cmd <<< '@echo off'
|
|
134
145
|
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set CONDA_PREFIX=%~f0\..\..\..'
|
|
135
|
-
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set SHELL=zsh.exe'
|
|
136
|
-
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set RETRONVIM_PREFIX=%CONDA_PREFIX%/opt/retrovim'
|
|
137
146
|
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set "VIMINIT=luafile %CONDA_PREFIX%/opt/retrovim/nvim/init.lua"'
|
|
147
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set BAT_THEME=base16'
|
|
148
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set FZF_DEFAULT_OPTS=--color "hl:-1:reverse,hl+:-1:reverse" --preview "bat --color=always {}" --preview-window=hidden --bind "?:toggle-preview" --multi'
|
|
149
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set LESS=--ignore-case'
|
|
150
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set LESSHISTFILE=-'
|
|
151
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set LESSKEYIN=%CONDA_PREFIX%/opt/retrovim/yazi/lesskey'
|
|
152
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set RETRONVIM_PREFIX=%CONDA_PREFIX%/opt/retrovim'
|
|
153
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set SHELL=zsh.exe'
|
|
154
|
+
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set YAZI_CONFIG_HOME=%CONDA_PREFIX%/opt/retrovim/yazi'
|
|
138
155
|
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'set ZDOTDIR=%CONDA_PREFIX%/opt/retrovim/zsh'
|
|
139
156
|
cat >> $PREFIX/Library/bin/nvim.cmd <<< 'nvim %*'
|
|
140
157
|
|
|
@@ -149,12 +166,16 @@ build:
|
|
|
149
166
|
|
|
150
167
|
cat >> $PREFIX/bin/yazi.cmd <<< '@echo off'
|
|
151
168
|
cat >> $PREFIX/bin/yazi.cmd <<< 'set CONDA_PREFIX=%~f0\..\..'
|
|
169
|
+
cat >> $PREFIX/bin/yazi.cmd <<< 'set "VIMINIT=luafile %CONDA_PREFIX%/opt/retrovim/nvim/init.lua"'
|
|
152
170
|
cat >> $PREFIX/bin/yazi.cmd <<< 'set BAT_THEME=base16'
|
|
153
171
|
cat >> $PREFIX/bin/yazi.cmd <<< 'set FZF_DEFAULT_OPTS=--color "hl:-1:reverse,hl+:-1:reverse" --preview "bat --color=always {}" --preview-window=hidden --bind "?:toggle-preview" --multi'
|
|
154
172
|
cat >> $PREFIX/bin/yazi.cmd <<< 'set LESS=--ignore-case'
|
|
155
|
-
cat >> $PREFIX/bin/yazi.cmd <<< 'set LESSKEYIN=%CONDA_PREFIX%/opt/retrovim/yazi/lesskey'
|
|
156
173
|
cat >> $PREFIX/bin/yazi.cmd <<< 'set LESSHISTFILE=-'
|
|
174
|
+
cat >> $PREFIX/bin/yazi.cmd <<< 'set LESSKEYIN=%CONDA_PREFIX%/opt/retrovim/yazi/lesskey'
|
|
175
|
+
cat >> $PREFIX/bin/yazi.cmd <<< 'set RETRONVIM_PREFIX=%CONDA_PREFIX%/opt/retrovim'
|
|
176
|
+
cat >> $PREFIX/bin/yazi.cmd <<< 'set SHELL=zsh.exe'
|
|
157
177
|
cat >> $PREFIX/bin/yazi.cmd <<< 'set YAZI_CONFIG_HOME=%CONDA_PREFIX%/opt/retrovim/yazi'
|
|
178
|
+
cat >> $PREFIX/bin/yazi.cmd <<< 'set ZDOTDIR=%CONDA_PREFIX%/opt/retrovim/zsh'
|
|
158
179
|
cat >> $PREFIX/bin/yazi.cmd <<< 'yazi.exe %*'
|
|
159
180
|
|
|
160
181
|
############################################################################################################################
|
|
@@ -176,7 +197,7 @@ build:
|
|
|
176
197
|
# https://github.com/conda-forge/alacritty-feedstock/blob/main/recipe/menu.json
|
|
177
198
|
|
|
178
199
|
- |
|
|
179
|
-
mkdir
|
|
200
|
+
mkdir -p $PREFIX/Menu
|
|
180
201
|
cp $RECIPE_DIR/terax.{png,ico,icns} $PREFIX/Menu
|
|
181
202
|
cat >> $PREFIX/Menu/menu.json <<'EOF'
|
|
182
203
|
{
|
|
@@ -215,32 +236,40 @@ requirements:
|
|
|
215
236
|
- 7zip=26.00
|
|
216
237
|
- bat=0.26.1
|
|
217
238
|
- eza=0.23.4
|
|
218
|
-
-
|
|
219
|
-
- firacode-nerdfont-installer=3.4.0
|
|
239
|
+
- font-fira-code-nerd-font=3.4.0
|
|
220
240
|
- fzf=0.70.0
|
|
221
241
|
- git
|
|
222
242
|
- kanata=1.11.0
|
|
223
243
|
- lazygit=0.61.0
|
|
224
|
-
- mise
|
|
225
244
|
- nvim=0.12.4
|
|
226
245
|
- ripgrep=15.1.0
|
|
227
246
|
- starship=1.24.2
|
|
228
|
-
- terax
|
|
229
247
|
- yazi=26.5.6
|
|
230
248
|
- zsh-patina=1.8.0
|
|
231
249
|
- zsh=5.9
|
|
232
250
|
|
|
233
251
|
- if: osx
|
|
234
252
|
then:
|
|
253
|
+
- terax
|
|
235
254
|
- zerobrew
|
|
236
255
|
|
|
237
|
-
- if: linux
|
|
256
|
+
- if: target_platform == "linux-64"
|
|
238
257
|
then:
|
|
239
258
|
- file=5.47 # not installed inside docker
|
|
240
259
|
- less=692 # not installed inside docker
|
|
260
|
+
- terax
|
|
241
261
|
- win32yank # WSL clipboaard
|
|
242
262
|
- zerobrew
|
|
243
263
|
|
|
264
|
+
- if: target_platform == "linux-aarch64"
|
|
265
|
+
then:
|
|
266
|
+
- file=5.47 # not installed inside docker
|
|
267
|
+
- less=692 # not installed inside docker
|
|
268
|
+
|
|
269
|
+
- if: win
|
|
270
|
+
then:
|
|
271
|
+
- terax
|
|
272
|
+
|
|
244
273
|
tests:
|
|
245
274
|
- package_contents:
|
|
246
275
|
bin:
|
package/.conda/sqls.yaml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# https://rattler-build.prefix.dev/latest/tutorials/repackaging
|
|
2
|
+
# rattler-build build --recipe sqls.yaml --target-platform win-64 --output-dir sqls-channel
|
|
3
|
+
|
|
4
|
+
# https://pixi.prefix.dev/dev/reference/cli/pixi/clean/cache
|
|
5
|
+
# pixi clean cache --build --yes
|
|
6
|
+
|
|
7
|
+
# https://pixi.prefix.dev/dev/reference/cli/pixi/global/install
|
|
8
|
+
# pixi g install --path ./sqls-channel/win-64/sqls-0.2.47-h9490d1a_0.conda
|
|
9
|
+
|
|
10
|
+
# https://rattler-build.prefix.dev/latest/getting_started/#authentication
|
|
11
|
+
# rattler-build auth login anaconda.org --conda-token $ANACONDA_API_KEY
|
|
12
|
+
|
|
13
|
+
# https://rattler-build.prefix.dev/latest/getting_started/#publishing-the-package
|
|
14
|
+
# rattler-build publish --recipe sqls.yaml --target-platform win-64 --to https://anaconda.org/retronvim
|
|
15
|
+
|
|
16
|
+
context:
|
|
17
|
+
version: 0.2.45
|
|
18
|
+
|
|
19
|
+
package:
|
|
20
|
+
name: sqls
|
|
21
|
+
version: ${{ version }}
|
|
22
|
+
|
|
23
|
+
source:
|
|
24
|
+
- if: win
|
|
25
|
+
then:
|
|
26
|
+
- url: https://github.com/sqls-server/sqls/releases/download/v${{ version }}/sqls-windows-${{ version }}.zip
|
|
27
|
+
|
|
28
|
+
build:
|
|
29
|
+
script:
|
|
30
|
+
interpreter: bash
|
|
31
|
+
content:
|
|
32
|
+
- mkdir -p $PREFIX/bin
|
|
33
|
+
- cp -r sqls.exe $PREFIX/bin
|
|
34
|
+
|
|
35
|
+
tests:
|
|
36
|
+
- package_contents:
|
|
37
|
+
bin:
|
|
38
|
+
- sqls.exe
|
|
39
|
+
|
|
40
|
+
about:
|
|
41
|
+
summary: SQL language server written in Go.
|
|
42
|
+
repository: https://github.com/sqls-server/sqls
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
# ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
2
|
-
# │ systemctl start docker && act -s VSCE_TOKEN -s GITHUB_TOKEN="$(gh auth token)" -j upload-release --artifact-server-path ./artifacts --action-offline-mode --action-cache-path "$HOME/.cache/act" │
|
|
3
|
-
# ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
4
|
-
|
|
5
|
-
# https://github.com/nektos/act/issues/2433
|
|
6
1
|
name: Upload_Release
|
|
7
2
|
|
|
8
3
|
on:
|
|
@@ -20,76 +15,92 @@ on:
|
|
|
20
15
|
env:
|
|
21
16
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # setting GH_TOKEN for the entire workflow
|
|
22
17
|
ANACONDA_API_KEY: ${{ secrets.ANACONDA_TOKEN }}
|
|
23
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
24
|
-
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
18
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # write access last 90 days, trusted-publishing should last forever https://www.npmjs.com/package/retrovim/access
|
|
19
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} # trusted-publishing should last forever https://pypi.org/manage/account/publishing
|
|
25
20
|
|
|
26
21
|
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#workflow-permissions
|
|
27
22
|
# GitHub requires `issues: write` permission for label management since labels are shared between issues and pull requests
|
|
23
|
+
# https://github.com/googleapis/release-please-action/issues/1070 <-> release-please failed Resource not accessible by integration
|
|
24
|
+
# https://github.com/cli/cli/issues/9514 <-> release-please failed Resource not accessible by integration
|
|
28
25
|
permissions:
|
|
29
26
|
contents: write
|
|
30
27
|
pull-requests: write
|
|
31
28
|
issues: write
|
|
29
|
+
id-token: write # Required for PyPI/npm Trusted Publishing (OIDC)
|
|
30
|
+
# workflows: write
|
|
32
31
|
|
|
33
32
|
jobs:
|
|
34
|
-
upload-release:
|
|
35
|
-
runs-on: ubuntu-latest
|
|
36
33
|
|
|
34
|
+
# https://www.youtube.com/watch?v=P0wAXh5UOnM
|
|
35
|
+
# ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
36
|
+
# to retrigger remove the github release, tag then --> │ git pull --rebase --> lazygit remove github-action commit and ammend your changes --> git push --force │
|
|
37
|
+
# ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
38
|
+
release-please:
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
outputs:
|
|
41
|
+
release_created: ${{ steps.release.outputs.release_created }}
|
|
42
|
+
tag_name: ${{ steps.release.outputs.tag_name }}
|
|
37
43
|
steps:
|
|
38
|
-
# ==========================================================
|
|
39
|
-
# 1. create release bot
|
|
40
|
-
# ==========================================================
|
|
41
|
-
# https://www.youtube.com/watch?v=P0wAXh5UOnM
|
|
42
|
-
# ╭───────────────────────────────────────────────────────────────────────────╮
|
|
43
|
-
# to retrigger remove the github release and tag then -> │ git pull --rebase && git commit --allow-empty --amend && git push --force │
|
|
44
|
-
# ╰───────────────────────────────────────────────────────────────────────────╯
|
|
45
44
|
- uses: googleapis/release-please-action@v4
|
|
46
45
|
id: release
|
|
47
46
|
with:
|
|
48
47
|
release-type: node
|
|
49
48
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
49
|
+
npm-publish:
|
|
50
|
+
needs: release-please
|
|
51
|
+
if: ${{ needs.release-please.outputs.release_created }}
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
environment: npm
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/checkout@v4
|
|
56
|
+
with:
|
|
57
|
+
submodules: true
|
|
58
|
+
|
|
59
|
+
- uses: actions/setup-node@v4
|
|
60
|
+
with:
|
|
61
|
+
registry-url: 'https://registry.npmjs.org'
|
|
62
|
+
|
|
63
|
+
- name: Publish to npm 🚀
|
|
64
|
+
run: npm publish
|
|
65
|
+
|
|
66
|
+
pypi-publish:
|
|
67
|
+
needs: release-please
|
|
68
|
+
if: ${{ needs.release-please.outputs.release_created }}
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
environment: pip
|
|
71
|
+
steps:
|
|
72
|
+
- uses: actions/checkout@v4
|
|
73
|
+
with:
|
|
74
|
+
submodules: true
|
|
75
|
+
|
|
76
|
+
- uses: astral-sh/setup-uv@v10.0.1
|
|
77
|
+
|
|
78
|
+
- name: Publish to pypi 🚀
|
|
79
|
+
run: uv build && uv publish
|
|
80
|
+
|
|
81
|
+
anaconda-publish:
|
|
82
|
+
needs: release-please
|
|
83
|
+
if: ${{ needs.release-please.outputs.release_created }}
|
|
84
|
+
runs-on: ubuntu-latest
|
|
85
|
+
environment: anaconda
|
|
86
|
+
steps:
|
|
87
|
+
- uses: actions/checkout@v4
|
|
88
|
+
with:
|
|
89
|
+
submodules: true
|
|
90
|
+
- uses: prefix-dev/rattler-build-action@v0.2.39
|
|
91
|
+
|
|
92
|
+
- name: Publish to anaconda.org 🚀
|
|
75
93
|
run: |
|
|
76
94
|
|
|
77
95
|
# https://rattler-build.prefix.dev/latest/getting_started/#authentication
|
|
78
96
|
# https://rattler-build.prefix.dev/latest/getting_started/#publishing-the-package
|
|
79
97
|
# https://rattler-build.prefix.dev/latest/getting_started/#publishing-to-anacondaorg
|
|
80
98
|
rattler-build auth login anaconda.org --conda-token $ANACONDA_API_KEY
|
|
81
|
-
rattler-build publish .conda/
|
|
82
|
-
rattler-build publish .conda/
|
|
83
|
-
rattler-build publish .conda/
|
|
84
|
-
rattler-build publish .conda/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
# ==========================================================
|
|
90
|
-
# 5. Upload artifacts to GitHub Release
|
|
91
|
-
# ==========================================================
|
|
92
|
-
- name: Github release 📦
|
|
93
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
94
|
-
run: |
|
|
95
|
-
gh release upload ${{ steps.release.outputs.tag_name }} output/noarch/*.conda
|
|
99
|
+
rattler-build publish .conda/retrovim.yaml --target-platform linux-64 --to https://anaconda.org/retronvim --build-number=+1
|
|
100
|
+
rattler-build publish .conda/retrovim.yaml --target-platform linux-aarch64 --to https://anaconda.org/retronvim --build-number=+1
|
|
101
|
+
rattler-build publish .conda/retrovim.yaml --target-platform osx-64 --to https://anaconda.org/retronvim --build-number=+1
|
|
102
|
+
rattler-build publish .conda/retrovim.yaml --target-platform osx-arm64 --to https://anaconda.org/retronvim --build-number=+1
|
|
103
|
+
rattler-build publish .conda/retrovim.yaml --target-platform win-64 --to https://anaconda.org/retronvim --build-number=+1
|
|
104
|
+
|
|
105
|
+
- name: Github conda release 📦
|
|
106
|
+
run: gh release upload ${{ steps.release.outputs.tag_name }} output/*/*.conda
|
|
@@ -5,24 +5,37 @@ const fs = require('fs');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const os = require('os');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
process.env.RETRONVIM_PREFIX = path.join(path.dirname(path.dirname(self)), 'lib', 'node_modules', 'retrovim')
|
|
8
|
+
process.env.RETRONVIM_PREFIX = path.dirname(path.dirname(fs.realpathSync(process.argv[1])))
|
|
10
9
|
|
|
11
10
|
const where = os.platform() === 'win32' ? 'where' : 'which';
|
|
11
|
+
const dotexe = os.platform() === 'win32' ? '.exe' : '';
|
|
12
12
|
|
|
13
|
-
const executable = execFileSync(where, ['kanata'], { encoding: 'utf8' }).trim().split(/\r?\n/)[0];
|
|
13
|
+
const executable = execFileSync(where, ['kanata' + dotexe], { encoding: 'utf8' }).trim().split(/\r?\n/)[0];
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
if (os.platform() === 'win32'){
|
|
16
|
+
const child = spawn(
|
|
17
|
+
'conhost',
|
|
18
|
+
[
|
|
19
|
+
'--headless',
|
|
20
|
+
executable,
|
|
21
|
+
'--cfg',
|
|
22
|
+
path.join(process.env.RETRONVIM_PREFIX, 'kanata', 'touchcursor.kbd')
|
|
23
|
+
],
|
|
24
|
+
{stdio: 'inherit', detached: true,}
|
|
25
|
+
);
|
|
26
|
+
child.unref();
|
|
27
|
+
} else{
|
|
16
28
|
|
|
17
|
-
const child = spawn(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
const child = spawn(
|
|
30
|
+
'sudo',
|
|
31
|
+
[
|
|
32
|
+
'--stdin',
|
|
33
|
+
'--preserve-env',
|
|
34
|
+
executable,
|
|
35
|
+
'--cfg',
|
|
36
|
+
path.join(process.env.RETRONVIM_PREFIX, 'kanata', 'touchcursor.kbd')
|
|
37
|
+
],
|
|
38
|
+
{stdio: 'inherit', detached: true,}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
27
41
|
|
|
28
|
-
child.unref();
|