Compare commits

..

3 Commits

4 changed files with 62 additions and 13 deletions

View File

@@ -0,0 +1,2 @@
git:
overrideGpg: true

View File

@@ -1,3 +1,38 @@
-- Keymaps are automatically loaded on the VeryLazy event -- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here -- Add any additional keymaps here
vim.keymap.set("n", "<leader>gO", function()
local git_root = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
if vim.v.shell_error ~= 0 or not git_root then
vim.notify("Not in a git repository", vim.log.levels.WARN)
return
end
local output = vim.fn.systemlist("git status --porcelain")
local files = {}
for _, line in ipairs(output) do
if line ~= "" then
local status = line:sub(1, 2)
-- skip deleted files
if not status:match("D") then
local filepath = line:sub(4)
-- handle renames: "old -> new"
local arrow_pos = filepath:find(" -> ")
if arrow_pos then
filepath = filepath:sub(arrow_pos + 4)
end
if filepath ~= "" then
table.insert(files, git_root .. "/" .. filepath)
end
end
end
end
if #files == 0 then
vim.notify("No modified files found", vim.log.levels.INFO)
return
end
for _, file in ipairs(files) do
vim.cmd.edit(vim.fn.fnameescape(file))
end
vim.notify("Opened " .. #files .. " modified file(s)", vim.log.levels.INFO)
end, { desc = "Open all git modified files" })

View File

@@ -8,7 +8,7 @@ return {
go = { "goimports", "gofumpt" }, go = { "goimports", "gofumpt" },
xml = { "lemminx" }, xml = { "lemminx" },
ruby = { "standardrb" }, ruby = { "standardrb" },
json = { "biome", "json-lsp" }, json = { "biome" },
css = { "biome" }, css = { "biome" },
javascript = { "biome" }, javascript = { "biome" },
sql = { "pg_format" }, sql = { "pg_format" },

View File

@@ -8,27 +8,39 @@ alias fd='fdfind'
alias sudo-shell='sudo -E zsh' alias sudo-shell='sudo -E zsh'
# [Development] # [Development] =======================================================================
# conditional wezterm # conditional wezterm
if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then
alias wezterm='/mnt/c/Users/DaveanandMannie/scoop/apps/wezterm/current/wezterm.exe' alias wezterm='/mnt/c/Users/DaveanandMannie/scoop/apps/wezterm/current/wezterm.exe'
else else
alias wezterm='wezterm' # Or point to native binary if needed alias wezterm='wezterm' # Or point to native binary if needed
fi fi
alias lg='lazygit'
# [Odoo]
alias erp-dev='cd ~/workspace/pg/erp/'
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../test.conf -i accounting_td_edi,anb_img_zip_importation,auto_raw_procure,client_sku_mapping,contact_anonymization,invoice_line_grouper,pgk_dashboard,pgk_purchase,purchase_order_cost_approval,pricing_breakdown,stock_picking_batch_simple,roq_integration && dropdb --if-exists testdb'
# [portal]
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
alias portal-dev='cd ~/workspace/pg/portal/'
# [portal] pgdb() {
alias company-store='cd ~/workspace/pg/company_stores/' local dir="$HOME/workspace/docker/databases/"
if [[ ! -d "$dir" ]]; then
echo "\033[31mNot on work computer\033[0m"
else
cd "$dir"
fi
}
alias lg='lazygit' alias lg='lazygit'
alias ..nvim="../ && nvim" alias ..nvim="../ && nvim"
# [Claude Code] # [Odoo] =======================================================================
alias erp-dev='cd ~/workspace/pg/erp/'
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../test.conf -i accounting_td_edi,anb_img_zip_importation,auto_raw_procure,client_sku_mapping,contact_anonymization,invoice_line_grouper,pgk_dashboard,pgk_purchase,purchase_order_cost_approval,pricing_breakdown,stock_picking_batch_simple,roq_integration && dropdb --if-exists testdb'
# [portal] =======================================================================
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
alias portal-dev='cd ~/workspace/pg/portal/'
# [solidus] =======================================================================
alias company-store='cd ~/workspace/pg/company_stores/'
alias company-stores='cd ~/workspace/pg/company_stores/'
# [Claude Code] =======================================================================
alias claude-clean='rm -f ~/.claude.json.backup*' alias claude-clean='rm -f ~/.claude.json.backup*'