feat: pane default format sh
This commit is contained in:
parent
8f12a36d38
commit
17c3e24297
2 changed files with 15 additions and 0 deletions
|
@ -268,6 +268,7 @@ load_modules() {
|
||||||
local modules_custom_path=$PLUGIN_DIR/custom
|
local modules_custom_path=$PLUGIN_DIR/custom
|
||||||
local modules_status_path=$PLUGIN_DIR/status
|
local modules_status_path=$PLUGIN_DIR/status
|
||||||
local modules_window_path=$PLUGIN_DIR/window
|
local modules_window_path=$PLUGIN_DIR/window
|
||||||
|
local modules_pane_path=$PLUGIN_DIR/pane
|
||||||
|
|
||||||
local module_index=0;
|
local module_index=0;
|
||||||
local module_name
|
local module_name
|
||||||
|
@ -307,6 +308,9 @@ load_modules() {
|
||||||
local module_path=$modules_window_path/$module_name.sh
|
local module_path=$modules_window_path/$module_name.sh
|
||||||
source $module_path
|
source $module_path
|
||||||
|
|
||||||
|
local module_path=$modules_pane_path/$module_name.sh
|
||||||
|
source $module_path
|
||||||
|
|
||||||
if [ 0 -eq $? ]
|
if [ 0 -eq $? ]
|
||||||
then
|
then
|
||||||
loaded_modules="$loaded_modules$( show_$module_name $module_index )"
|
loaded_modules="$loaded_modules$( show_$module_name $module_index )"
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
show_pane_default_format() {
|
||||||
|
local number="#I"
|
||||||
|
local color="$thm_blue"
|
||||||
|
local background="$thm_gray"
|
||||||
|
local text="$(get_tmux_option "@catppuccin_pane_default_text" "#{b:pane_current_path}")" # use #W for application instead of directory
|
||||||
|
local fill="$(get_tmux_option "@catppuccin_pane_default_fill" "number")" # number, all, none
|
||||||
|
|
||||||
|
local default_pane_format=$( build_pane_format "$number" "$color" "$background" "$text" "$fill" )
|
||||||
|
|
||||||
|
echo "$default_pane_format"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue