(navigate) added new settings and fixed completions

This commit is contained in:
zegonix
2025-06-24 22:46:25 +02:00
parent efd033c50a
commit 174169d057
2 changed files with 23 additions and 17 deletions

View File

@@ -1,23 +1,29 @@
[general]
show_stack_on_push = false
show_stack_on_pop = false
show_books_on_bookmark = false
show_invalid_stack_entries = false
show_entries_on_bookmark = false
show_invalid_bookmarks = true
cleanup_bookmarks = false
[format]
stack_separator = " = "
bookmarks_separator = " = "
stack_hide_numbers = false
show_home_as_tilde = true
align_separators = true
show_home_as_tilde = true
stack_hide_numbers = false
stack_separator = ' = '
bookmarks_separator = ' = '
[styles]
warning_style = "yellow, italic"
error_style = "red, bold"
stack_number_style = "default"
stack_separator_style = "cyan"
stack_path_style = "italic"
stack_punct_style = "#805820"
bookmarks_name_style = "bold"
bookmarks_seperator_style = "cyan"
bookmarks_path_style = "italic"
bookmarks_punct_style = "bold, #805820"
warning_style = 'yellow, italic'
error_style = 'red, bold'
stack_number_style = 'default'
stack_separator_style = 'cyan'
stack_path_style = 'italic'
stack_punct_style = '#805820'
stack_invalid_style = '#CCCCCC, strikethrough'
bookmarks_name_style = 'bold'
bookmarks_seperator_style = 'cyan'
bookmarks_path_style = 'italic'
bookmarks_punct_style = 'bold, #805820'
bookmarks_invalid_style = '#CCCCCC, strikethrough'

View File

@@ -34,11 +34,11 @@ function navconfig {
function _book {
CURRENT_WORD=${COMP_WORDS[COMP_CWORD]}
if [[ COMP_CWORD -eq 1 ]]; then
BOOKMARKS="add remove $(__call_navigate bookmark names)"
BOOKMARKS="add remove $(__call_navigate bookmark completions)"
COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD))
elif [[ COMP_CWORD -eq 2 ]]; then
if [[ "${COMP_WORDS[1]}" = "remove" ]]; then
BOOKMARKS="$(__call_navigate bookmark names)"
BOOKMARKS="$(__call_navigate bookmark completions)"
COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD))
fi
elif [[ COMP_CWORD -eq 3 ]]; then