chore: renamed open_project_manager to manager and added aux files to hints

This commit is contained in:
DarthMooMancer
2025-05-12 09:09:08 -04:00
parent 8d913ce979
commit 3a50bf9375
3 changed files with 3 additions and 5 deletions
-3
View File
@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Start from the current directory
DIR="$(pwd)" DIR="$(pwd)"
# Walk up until we find a marker or reach root
while [[ ! -f "$DIR/CMakeLists.txt" && \ while [[ ! -f "$DIR/CMakeLists.txt" && \
! -f "$DIR/package.json" && \ ! -f "$DIR/package.json" && \
! -f "$DIR/venv" && \ ! -f "$DIR/venv" && \
@@ -11,7 +9,6 @@ while [[ ! -f "$DIR/CMakeLists.txt" && \
DIR="$(dirname "$DIR")" DIR="$(dirname "$DIR")"
done done
# Check if root was reached without finding anything
if [[ "$DIR" == "/" ]]; then if [[ "$DIR" == "/" ]]; then
echo "❌ Project root not found." echo "❌ Project root not found."
exit 1 exit 1
+1 -1
View File
@@ -9,7 +9,7 @@ function M.setup(opts)
config.user_config[lang] = vim.tbl_deep_extend("force", config.defaults[lang] or {}, user_opts) config.user_config[lang] = vim.tbl_deep_extend("force", config.defaults[lang] or {}, user_opts)
end end
vim.api.nvim_create_user_command("PolydevOpen", ui.open_project_manager, {}) vim.api.nvim_create_user_command("PolydevOpen", ui.manager, {})
local keys = vim.tbl_deep_extend("force", {}, config.get("globals").keybinds, opts or {}) local keys = vim.tbl_deep_extend("force", {}, config.get("globals").keybinds, opts or {})
for key, _ in pairs(keys) do for key, _ in pairs(keys) do
+2 -1
View File
@@ -62,7 +62,7 @@ function M.load_language_module(lang, opts)
return true return true
end end
function M.open_project_manager() function M.manager()
local templates = require("Polydev.templates") local templates = require("Polydev.templates")
local Popup = require("nui.popup") local Popup = require("nui.popup")
local Layout = require("nui.layout") local Layout = require("nui.layout")
@@ -216,6 +216,7 @@ function M.open_project_manager()
" / : Search", " / : Search",
" a : New folder", " a : New folder",
" % : New file", " % : New file",
" x : New auxilary file",
" d : New project", " d : New project",
" R : Rename", " R : Rename",
" D : Delete", " D : Delete",