Skip to content

Commit

Permalink
Merge pull request #9 from saying121/dev
Browse files Browse the repository at this point in the history
Add aur docs.
  • Loading branch information
saying121 authored May 16, 2024
2 parents 9e36c50 + 7ed412e commit 418526a
Show file tree
Hide file tree
Showing 7 changed files with 157 additions and 198 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
--allow-branch HEAD \
--no-confirm \
--workspace -x \
--features ratatui
|| echo "No crates publish."
create-release:
Expand Down
35 changes: 17 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 23 additions & 5 deletions README-CN.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 终端写力扣

<!--toc:start-->

- [终端写力扣](#终端写力扣)
- [功能](#功能)
- [安装](#安装)
- [可以使用以下任意一种方法安装](#可以使用以下任意一种方法安装)
- [更新 lcode](#更新-lcode)
- [使用](#使用)
- [视频](#视频)
- [配置](#配置)
Expand All @@ -15,7 +15,7 @@
- [CONFIG](#config)
- [各个字段的说明](#各个字段的说明)
- [用户信息](#用户信息)
<!--toc:end-->
<!--toc:end-->

> [!WARNING]
>
Expand All @@ -35,6 +35,7 @@

依赖:

- `sqlite`
- `libsecret` (Linux Optional)
- `libdbus` (Linux 通知)
- [`mdcat`](https://github.com/swsnr/mdcat/) (渲染 markdown)
Expand All @@ -57,10 +58,19 @@
cargo binstall lcode
```

- Archlinux 可以使用 AUR 助手 安装

AUR 里面打包了 bash, zsh, fish 的补全脚本。

```bash
yay -S lcode-bin
# or
paru -S lcode-bin
```

-[release](https://github.com/saying121/lcode/releases) 下载

[cargo-binstall](https://github.com/cargo-bins/cargo-binstall) 就是从
[release](https://github.com/saying121/lcode/releases) 下载二进制文件。
[release](https://github.com/saying121/lcode/releases)

- 自己编译

Expand Down Expand Up @@ -130,7 +140,15 @@ echo 'eval $(lcode --generate bash)' >>~/.bashrc
- Windows: `C:\Users\Alice\AppData\Local\lcode`

布局:
![default](./pictures/screen_shot_.png)

```txt
1_two-sum/
├── 1.cpp*
├── 1.rs*
├── 1_detail_cn.md*
├── 1_detail_en.md*
└── 1_test_case.txt*
```

缓存位置

Expand Down
37 changes: 27 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

<!--toc:start-->
- [Brush leetcode under the terminal](#brush-leetcode-under-the-terminal)
- [Features](#features)
- [Install](#install)
- [🪶Features](#🪶features)
- [💄Install](#💄install)
- [You can use any of the following methods to install](#you-can-use-any-of-the-following-methods-to-install)
- [Update lcode](#update-lcode)
- [Usage](#usage)
- [Shell completion.](#shell-completion)
- [Videos](#videos)
- [Configuration](#️configuration)
- [🔧Usage](#🔧usage)
- [Shell completion](#shell-completion)
- [📼Videos](#📼videos)
- [⚙️Configuration](#️configuration)
- [Cookies (Important)](#cookies-important)
- [Keymap](#keymap)
- [LANGS](#langs)
- [CONFIG](#config)
- [Here are the explanations for each field](#here-are-the-explanations-for-each-field)
- [The User Infos](#-the-user-infos)
- [👣 The User Infos](#👣-the-user-infos)
- [Todo](#todo)
<!--toc:end-->

Expand All @@ -35,6 +35,7 @@

dependencies:

- `sqlite`
- `libsecret` (Linux Optional)
- `libdbus` (Linux notify)
- [`mdcat`](https://github.com/swsnr/mdcat/) (render markdown)
Expand All @@ -57,10 +58,18 @@ build-dependencies:
cargo binstall lcode
```

- Archlinux can use AUR helper install

AUR contains completion scripts packaged for bash, zsh, and fish.

```bash
yay -S lcode-bin
# or
paru -S lcode-bin
```

- Download from [release](https://github.com/saying121/lcode/releases)

In reality, [cargo-binstall](https://github.com/cargo-bins/cargo-binstall)
is used to download binaries from
[release](https://github.com/saying121/lcode/releases)

- Build by yourself
Expand Down Expand Up @@ -146,7 +155,15 @@ The code default located
- Windows: `C:\Users\user\AppData\Local\lcode`

code layout:
![default](./pictures/screen_shot_.png)

```txt
1_two-sum/
├── 1.cpp*
├── 1.rs*
├── 1_detail_cn.md*
├── 1_detail_en.md*
└── 1_test_case.txt*
```

The cache located

Expand Down
Loading

0 comments on commit 418526a

Please sign in to comment.