feat: minor improvements
This commit is contained in:
9
README.md
Normal file
9
README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
## Deps
|
||||
|
||||
### Preview docs
|
||||
|
||||
- `fswatch`:
|
||||
- `$ yay -S fswatch`
|
||||
- `$ brew install fswatch`
|
||||
- `surf`: lightweight browser
|
||||
- `# port install surf`
|
||||
22
keymap.json
22
keymap.json
@@ -1,7 +1,7 @@
|
||||
// ╭───────────────────────────────╮
|
||||
// │- Zed editor keys │
|
||||
// │- author: Daniel Heras Quesada │
|
||||
// ╰───────────────────────────────╯
|
||||
// ╭────────────────────────────────╮
|
||||
// │- Zed editor keys -│
|
||||
// │- author: Daniel Heras Quesada -│
|
||||
// ╰────────────────────────────────╯
|
||||
[
|
||||
{
|
||||
"context": "Workspace",
|
||||
@@ -52,10 +52,20 @@
|
||||
// ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "OutlinePanel",
|
||||
"bindings": {
|
||||
"ctrl-a": "workspace::ToggleLeftDock",
|
||||
"ctrl-n": "project_panel::ToggleFocus",
|
||||
"ctrl-g": "git_panel::ToggleFocus"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "ProjectPanel",
|
||||
"bindings": {
|
||||
"ctrl-n": "workspace::ToggleLeftDock",
|
||||
"ctrl-a": "outline_panel::ToggleFocus",
|
||||
"ctrl-g": "git_panel::ToggleFocus",
|
||||
"f12": "project_panel::Rename",
|
||||
"shift-enter": "project_panel::OpenWithSystem",
|
||||
"/": "project_panel::NewSearchInDirectory"
|
||||
@@ -64,7 +74,9 @@
|
||||
{
|
||||
"context": "GitPanel",
|
||||
"bindings": {
|
||||
"ctrl-g": "workspace::ToggleLeftDock"
|
||||
"ctrl-g": "workspace::ToggleLeftDock",
|
||||
"ctrl-a": "outline_panel::ToggleFocus",
|
||||
"ctrl-n": "project_panel::ToggleFocus"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// ╭───────────────────────────────╮
|
||||
// │- Zed editor settings │
|
||||
// │- author: Daniel Heras Quesada │
|
||||
// ╰───────────────────────────────╯
|
||||
// ╭────────────────────────────────╮
|
||||
// │- Zed editor settings -│
|
||||
// │- author: Daniel Heras Quesada -│
|
||||
// ╰────────────────────────────────╯
|
||||
{
|
||||
// ╭─────────╮
|
||||
// │ General │
|
||||
// ╰─────────╯
|
||||
"auto_update": true,
|
||||
"base_keymap": "VSCode",
|
||||
"restore_on_startup": "last_workspace",
|
||||
"restore_on_startup": "last_session",
|
||||
// ╭─────────╮
|
||||
// │ Styling │
|
||||
// ╰─────────╯
|
||||
@@ -99,7 +99,6 @@
|
||||
"dock": "right",
|
||||
"default_width": 640,
|
||||
"default_height": 320,
|
||||
"provider": "openai",
|
||||
"version": "2",
|
||||
"default_model": {
|
||||
"provider": "openai",
|
||||
@@ -135,7 +134,10 @@
|
||||
"show_branch_name": true
|
||||
},
|
||||
"minimap": {
|
||||
"show": "never"
|
||||
"show": "never",
|
||||
"thumb": "always",
|
||||
"thumb_border": "left_open",
|
||||
"current_line_highlight": "all"
|
||||
},
|
||||
"modal_max_width": "medium",
|
||||
"outline_panel": {
|
||||
|
||||
25
tasks.json
25
tasks.json
@@ -1,7 +1,7 @@
|
||||
// ╭───────────────────────────────╮
|
||||
// │- Zed editor tasks │
|
||||
// │- author: Daniel Heras Quesada │
|
||||
// ╰───────────────────────────────╯
|
||||
// ╭────────────────────────────────╮
|
||||
// │- Zed editor tasks -│
|
||||
// │- author: Daniel Heras Quesada -│
|
||||
// ╰────────────────────────────────╯
|
||||
[
|
||||
{
|
||||
"label": "🚀 Build migrate",
|
||||
@@ -13,7 +13,7 @@
|
||||
"shell": "system"
|
||||
},
|
||||
{
|
||||
"label": ":octocat: Commit Stradi",
|
||||
"label": "👚 Commit Stradi",
|
||||
"command": "bash ~/.config/zed/tasks/commit-stradi.sh",
|
||||
"use_new_terminal": false,
|
||||
"allow_concurrent_runs": false,
|
||||
@@ -22,15 +22,13 @@
|
||||
"shell": "system"
|
||||
},
|
||||
{
|
||||
"label": "Lazygit",
|
||||
"label": "😴 Lazygit",
|
||||
"command": "lazygit",
|
||||
"args": [],
|
||||
"env": {},
|
||||
"use_new_terminal": false,
|
||||
"allow_concurrent_runs": false
|
||||
},
|
||||
{
|
||||
"label": "Blueprints",
|
||||
"label": "🐾 Blueprints",
|
||||
"command": "~/Packages/code-templates/code_templates",
|
||||
"use_new_terminal": true,
|
||||
"allow_concurrent_runs": false,
|
||||
@@ -38,4 +36,13 @@
|
||||
"hide": "never",
|
||||
"shell": "system"
|
||||
}
|
||||
// {
|
||||
// "label": "📝 Preview document",
|
||||
// "command": "bash ~/.config/zed/tasks/preview-doc.sh '$ZED_FILE'",
|
||||
// "use_new_terminal": true,
|
||||
// "allow_concurrent_runs": false,
|
||||
// "reveal": "always",
|
||||
// "hide": "never",
|
||||
// "shell": "system"
|
||||
// }
|
||||
]
|
||||
|
||||
5
tasks/preview-doc.sh
Normal file → Executable file
5
tasks/preview-doc.sh
Normal file → Executable file
@@ -1 +1,4 @@
|
||||
docs="$(ls -R . | grep "\.md")"
|
||||
[[ $# -ne 1 ]] && exit 1;
|
||||
FILE_NAME="md_preview_intex.html"
|
||||
fswatch -0 "$1" | pandoc -f markdown $1 > $FILE_NAME && surf $FILE_NAME
|
||||
rm $FILE_NAME
|
||||
|
||||
Reference in New Issue
Block a user