mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-04 06:36:35 -08:00
Compare commits
2 Commits
cdedc4ced2
...
40fa19cedc
| Author | SHA1 | Date | |
|---|---|---|---|
|
40fa19cedc
|
|||
|
332c7f6832
|
@@ -14,8 +14,8 @@ alias aniwrapper='aniwrapper -D 144'
|
|||||||
|
|
||||||
## Colorls
|
## Colorls
|
||||||
alias ls='eza -M --group-directories-first --icons --color=always --group --git'
|
alias ls='eza -M --group-directories-first --icons --color=always --group --git'
|
||||||
alias ll='ls -l'
|
alias ll='ls -lh'
|
||||||
alias la='ls -la'
|
alias la='ls -lah'
|
||||||
|
|
||||||
alias vimf='vim $(fzf --height=45% --layout=reverse --preview="bat --style=numbers --color=always --line-range :500 {}")'
|
alias vimf='vim $(fzf --height=45% --layout=reverse --preview="bat --style=numbers --color=always --line-range :500 {}")'
|
||||||
|
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ return {
|
|||||||
},
|
},
|
||||||
-- }}}
|
-- }}}
|
||||||
},
|
},
|
||||||
strategies = {
|
interactions = {
|
||||||
chat = {
|
chat = {
|
||||||
adapter = "copilot",
|
adapter = "copilot",
|
||||||
-- adapter = "openrouter",
|
-- adapter = "openrouter",
|
||||||
@@ -182,11 +182,21 @@ return {
|
|||||||
end,
|
end,
|
||||||
completion_provider = "cmp",
|
completion_provider = "cmp",
|
||||||
},
|
},
|
||||||
|
fold_reasoning = true,
|
||||||
|
show_reasoning = true,
|
||||||
},
|
},
|
||||||
inline = {
|
inline = {
|
||||||
adapter = "copilot",
|
adapter = "copilot",
|
||||||
-- adapter = "openrouter",
|
-- adapter = "openrouter",
|
||||||
},
|
},
|
||||||
|
cmd = {
|
||||||
|
adapter = "copilot",
|
||||||
|
},
|
||||||
|
background = {
|
||||||
|
adapter = {
|
||||||
|
name = "copilot",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
display = {
|
display = {
|
||||||
action_palette = {
|
action_palette = {
|
||||||
@@ -232,7 +242,6 @@ return {
|
|||||||
-- Options for inline diff provider
|
-- Options for inline diff provider
|
||||||
inline = {
|
inline = {
|
||||||
layout = "buffer", -- float|buffer - Where to display the diff
|
layout = "buffer", -- float|buffer - Where to display the diff
|
||||||
|
|
||||||
diff_signs = {
|
diff_signs = {
|
||||||
signs = {
|
signs = {
|
||||||
text = "▌", -- Sign text for normal changes
|
text = "▌", -- Sign text for normal changes
|
||||||
@@ -307,6 +316,31 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
rules = {
|
||||||
|
default = {
|
||||||
|
description = "Collection of common files for all projects",
|
||||||
|
files = {
|
||||||
|
".clinerules",
|
||||||
|
".cursorrules",
|
||||||
|
".goosehints",
|
||||||
|
".rules",
|
||||||
|
".windsurfrules",
|
||||||
|
".github/copilot-instructions.md",
|
||||||
|
"AGENT.md",
|
||||||
|
"AGENTS.md",
|
||||||
|
{ path = "CLAUDE.md", parser = "claude" },
|
||||||
|
{ path = "CLAUDE.local.md", parser = "claude" },
|
||||||
|
{ path = "~/.claude/CLAUDE.md", parser = "claude" },
|
||||||
|
},
|
||||||
|
is_preset = true,
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
chat = {
|
||||||
|
enabled = true,
|
||||||
|
default_rules = "default", -- The rule groups to load
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
require("utils.codecompanion.fidget-spinner"):init()
|
require("utils.codecompanion.fidget-spinner"):init()
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ end
|
|||||||
function M:create_progress_handle(request)
|
function M:create_progress_handle(request)
|
||||||
local title = " Requesting assistance"
|
local title = " Requesting assistance"
|
||||||
.. " ("
|
.. " ("
|
||||||
.. request.data.strategy
|
.. request.data.interaction
|
||||||
.. ") from "
|
.. ") from "
|
||||||
.. request.data.adapter.formatted_name
|
.. request.data.adapter.formatted_name
|
||||||
.. " using "
|
.. " using "
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ end
|
|||||||
|
|
||||||
function M:create_progress_handle(request)
|
function M:create_progress_handle(request)
|
||||||
return progress.handle.create({
|
return progress.handle.create({
|
||||||
title = " Requesting assistance (" .. request.data.strategy .. ")",
|
title = " Requesting assistance (" .. request.data.adapter.model .. ")",
|
||||||
message = "In progress...",
|
message = "In progress...",
|
||||||
lsp_client = {
|
lsp_client = {
|
||||||
name = M:llm_role_title(request.data.adapter),
|
name = M:llm_role_title(request.data.adapter.name),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"Pihole2 - https://pihole2.suda.codes/admin",
|
"Pihole2 - https://pihole2.suda.codes/admin",
|
||||||
"Proxmox - https://thebox.unicorn-ilish.ts.net",
|
"Proxmox - https://thebox.unicorn-ilish.ts.net",
|
||||||
"qBittorrent - https://qbittorrent.suda.codes",
|
"qBittorrent - https://qbittorrent.suda.codes",
|
||||||
"qui - https://qui.suda.codes",
|
"qui - http://pve-main:7476",
|
||||||
"Plausible - https://plausible.sudacode.com",
|
"Plausible - https://plausible.sudacode.com",
|
||||||
"Paperless - https://paperless.suda.codes",
|
"Paperless - https://paperless.suda.codes",
|
||||||
"Prometheus - http://prometheus:9090",
|
"Prometheus - http://prometheus:9090",
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ set -Eeuo pipefail
|
|||||||
# notify-send "GAZOU" "Text: $DISPLAY_RES"
|
# notify-send "GAZOU" "Text: $DISPLAY_RES"
|
||||||
# echo "$RES" | wl-copy
|
# echo "$RES" | wl-copy
|
||||||
|
|
||||||
slurp | grim -g - /tmp/ocr.png || exit 1
|
# grim -g "$(slurp)" /tmp/ocr.png || exit 1
|
||||||
transformers_ocr recognize --image-path /tmp/ocr.png || exit 1
|
# slurp | grim -g - /tmp/ocr/ocr.png || exit 1
|
||||||
notify-send "tramsformers_ocr" "Text: $DISPLAY_RES"
|
owocr -r clipboard -w clipboard -of text -n || exit 1
|
||||||
|
slurp | grim -g - | wl-copy
|
||||||
|
notify-send "ocr.sh" "Text: $DISPLAY_RES"
|
||||||
|
|||||||
Reference in New Issue
Block a user