mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Use dotter
This commit is contained in:
59
config/xplr/hack.lua
Normal file
59
config/xplr/hack.lua
Normal file
@@ -0,0 +1,59 @@
|
||||
---@diagnostic disable
|
||||
local xplr = xplr -- The globally exposed configuration to be overridden.
|
||||
---@diagnostic enable
|
||||
|
||||
-- -- Preview images using imv.
|
||||
-- xplr.config.modes.builtin.default.key_bindings.on_key.P = {
|
||||
-- help = "preview",
|
||||
-- messages = {
|
||||
-- {
|
||||
-- BashExecSilently0 = [===[
|
||||
-- FIFO_PATH="/tmp/xplr.fifo"
|
||||
--
|
||||
-- if [ -e "$FIFO_PATH" ]; then
|
||||
-- "$XPLR" -m StopFifo
|
||||
-- rm -f -- "$FIFO_PATH"
|
||||
-- else
|
||||
-- mkfifo "$FIFO_PATH"
|
||||
-- "$HOME/.local/bin/imv-open" "$FIFO_PATH" "$XPLR_FOCUS_PATH" &
|
||||
-- "$XPLR" -m 'StartFifo: %q' "$FIFO_PATH"
|
||||
-- fi
|
||||
-- ]===],
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
--
|
||||
-- -- Batch rename the selected or visible files and directories in `$PWD`.
|
||||
-- xplr.config.modes.builtin.default.key_bindings.on_key.R = {
|
||||
-- help = "batch rename",
|
||||
-- messages = {
|
||||
-- {
|
||||
-- BashExec = [===[
|
||||
-- SELECTION=$(cat "${XPLR_PIPE_SELECTION_OUT:?}")
|
||||
-- NODES=${SELECTION:-$(cat "${XPLR_PIPE_DIRECTORY_NODES_OUT:?}")}
|
||||
-- if [ "$NODES" ]; then
|
||||
-- echo -e "$NODES" | renamer
|
||||
-- "$XPLR" -m ExplorePwdAsync
|
||||
-- fi
|
||||
-- ]===],
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
--
|
||||
-- -- Serve `$PWD` using a static web server via LAN.
|
||||
-- xplr.config.modes.builtin.default.key_bindings.on_key.S = {
|
||||
-- help = "serve $PWD",
|
||||
-- messages = {
|
||||
-- {
|
||||
-- BashExec0 = [===[
|
||||
-- IP=$(ip addr | rg -w inet | cut -d/ -f1 | rg -Eo '[0-9]{1,3}\.[0-9]{ 1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sk --prompt 'Select IP > ')
|
||||
-- echo "IP: ${IP:?}"
|
||||
-- read -p "Port (default 5000): " PORT
|
||||
-- echo
|
||||
-- sfz --all --cors --no-ignore --bind ${IP:?} --port ${PORT:-5000} . &
|
||||
-- sleep 1 && read -p '[press enter to exit]'
|
||||
-- kill -9 %1
|
||||
-- ]===],
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
48
config/xplr/init.lua
Normal file
48
config/xplr/init.lua
Normal file
@@ -0,0 +1,48 @@
|
||||
---@diagnostic disable
|
||||
local xplr = xplr -- The globally exposed configuration to be overridden.
|
||||
---@diagnostic enable
|
||||
|
||||
-- This is the built-in configuration file that gets loaded and sets the
|
||||
-- default values when xplr loads, before loading any other custom
|
||||
-- configuration file.
|
||||
--
|
||||
-- You can use this file as a reference to create a your custom config file.
|
||||
--
|
||||
-- To create a custom configuration file, you need to define the script version
|
||||
-- for compatibility checks.
|
||||
--
|
||||
-- See https://xplr.dev/en/upgrade-guide
|
||||
--
|
||||
-- ```lua
|
||||
version = "0.21.3"
|
||||
|
||||
local home = os.getenv("HOME")
|
||||
local xpm_path = home .. "/.local/share/xplr/dtomvan/xpm.xplr"
|
||||
local xpm_url = "https://github.com/dtomvan/xpm.xplr"
|
||||
|
||||
package.path = package.path .. ";" .. xpm_path .. "/?.lua;" .. xpm_path .. "/?/init.lua"
|
||||
|
||||
os.execute(string.format("[ -e '%s' ] || git clone '%s' '%s'", xpm_path, xpm_url, xpm_path))
|
||||
|
||||
require("xpm").setup({
|
||||
plugins = {
|
||||
"dtomvan/xpm.xplr",
|
||||
"sayanarijit/fzf.xplr",
|
||||
"prncss-xyz/icons.xplr",
|
||||
"sayanarijit/xclip.xplr",
|
||||
"sayanarijit/trash-cli.xplr",
|
||||
"sayanarijit/scp.xplr",
|
||||
"sayanarijit/qrcp.xplr",
|
||||
"sayanarijit/preview-tabbed.xplr",
|
||||
"dtomvan/ouch.xplr",
|
||||
"sayanarijit/nvim-ctrl.xplr",
|
||||
"Junker/nuke.xplr",
|
||||
"sayanarijit/fzf.xplr",
|
||||
"sayanarijit/dragon.xplr",
|
||||
"sayanarijit/alacritty.xplr",
|
||||
"sayanarijit/tri-pane.xplr",
|
||||
"sayanarijit/map.xplr",
|
||||
},
|
||||
auto_install = true,
|
||||
auto_cleanup = true,
|
||||
})
|
||||
3079
config/xplr/init.lua.old
Normal file
3079
config/xplr/init.lua.old
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user