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 │
|
// │- Zed editor keys -│
|
||||||
// │- author: Daniel Heras Quesada │
|
// │- author: Daniel Heras Quesada -│
|
||||||
// ╰───────────────────────────────╯
|
// ╰────────────────────────────────╯
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"context": "Workspace",
|
"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",
|
"context": "ProjectPanel",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"ctrl-n": "workspace::ToggleLeftDock",
|
"ctrl-n": "workspace::ToggleLeftDock",
|
||||||
|
"ctrl-a": "outline_panel::ToggleFocus",
|
||||||
|
"ctrl-g": "git_panel::ToggleFocus",
|
||||||
"f12": "project_panel::Rename",
|
"f12": "project_panel::Rename",
|
||||||
"shift-enter": "project_panel::OpenWithSystem",
|
"shift-enter": "project_panel::OpenWithSystem",
|
||||||
"/": "project_panel::NewSearchInDirectory"
|
"/": "project_panel::NewSearchInDirectory"
|
||||||
@@ -64,7 +74,9 @@
|
|||||||
{
|
{
|
||||||
"context": "GitPanel",
|
"context": "GitPanel",
|
||||||
"bindings": {
|
"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 │
|
// │- Zed editor settings -│
|
||||||
// │- author: Daniel Heras Quesada │
|
// │- author: Daniel Heras Quesada -│
|
||||||
// ╰───────────────────────────────╯
|
// ╰────────────────────────────────╯
|
||||||
{
|
{
|
||||||
// ╭─────────╮
|
// ╭─────────╮
|
||||||
// │ General │
|
// │ General │
|
||||||
// ╰─────────╯
|
// ╰─────────╯
|
||||||
"auto_update": true,
|
"auto_update": true,
|
||||||
"base_keymap": "VSCode",
|
"base_keymap": "VSCode",
|
||||||
"restore_on_startup": "last_workspace",
|
"restore_on_startup": "last_session",
|
||||||
// ╭─────────╮
|
// ╭─────────╮
|
||||||
// │ Styling │
|
// │ Styling │
|
||||||
// ╰─────────╯
|
// ╰─────────╯
|
||||||
@@ -99,7 +99,6 @@
|
|||||||
"dock": "right",
|
"dock": "right",
|
||||||
"default_width": 640,
|
"default_width": 640,
|
||||||
"default_height": 320,
|
"default_height": 320,
|
||||||
"provider": "openai",
|
|
||||||
"version": "2",
|
"version": "2",
|
||||||
"default_model": {
|
"default_model": {
|
||||||
"provider": "openai",
|
"provider": "openai",
|
||||||
@@ -135,7 +134,10 @@
|
|||||||
"show_branch_name": true
|
"show_branch_name": true
|
||||||
},
|
},
|
||||||
"minimap": {
|
"minimap": {
|
||||||
"show": "never"
|
"show": "never",
|
||||||
|
"thumb": "always",
|
||||||
|
"thumb_border": "left_open",
|
||||||
|
"current_line_highlight": "all"
|
||||||
},
|
},
|
||||||
"modal_max_width": "medium",
|
"modal_max_width": "medium",
|
||||||
"outline_panel": {
|
"outline_panel": {
|
||||||
|
|||||||
25
tasks.json
25
tasks.json
@@ -1,7 +1,7 @@
|
|||||||
// ╭───────────────────────────────╮
|
// ╭────────────────────────────────╮
|
||||||
// │- Zed editor tasks │
|
// │- Zed editor tasks -│
|
||||||
// │- author: Daniel Heras Quesada │
|
// │- author: Daniel Heras Quesada -│
|
||||||
// ╰───────────────────────────────╯
|
// ╰────────────────────────────────╯
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"label": "🚀 Build migrate",
|
"label": "🚀 Build migrate",
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"shell": "system"
|
"shell": "system"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": ":octocat: Commit Stradi",
|
"label": "👚 Commit Stradi",
|
||||||
"command": "bash ~/.config/zed/tasks/commit-stradi.sh",
|
"command": "bash ~/.config/zed/tasks/commit-stradi.sh",
|
||||||
"use_new_terminal": false,
|
"use_new_terminal": false,
|
||||||
"allow_concurrent_runs": false,
|
"allow_concurrent_runs": false,
|
||||||
@@ -22,15 +22,13 @@
|
|||||||
"shell": "system"
|
"shell": "system"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Lazygit",
|
"label": "😴 Lazygit",
|
||||||
"command": "lazygit",
|
"command": "lazygit",
|
||||||
"args": [],
|
|
||||||
"env": {},
|
|
||||||
"use_new_terminal": false,
|
"use_new_terminal": false,
|
||||||
"allow_concurrent_runs": false
|
"allow_concurrent_runs": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Blueprints",
|
"label": "🐾 Blueprints",
|
||||||
"command": "~/Packages/code-templates/code_templates",
|
"command": "~/Packages/code-templates/code_templates",
|
||||||
"use_new_terminal": true,
|
"use_new_terminal": true,
|
||||||
"allow_concurrent_runs": false,
|
"allow_concurrent_runs": false,
|
||||||
@@ -38,4 +36,13 @@
|
|||||||
"hide": "never",
|
"hide": "never",
|
||||||
"shell": "system"
|
"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