Update zrep functions to use function
keyword for consistency.
- Updated `zrep_load_theme` to use `function` keyword. - Updated `zrep_search_url_encode` to use `function` keyword. - Updated `zrep_search` to use `function` keyword.
This commit is contained in:
parent
2ccef547a8
commit
933b27b167
6
zpi
6
zpi
@ -84,7 +84,7 @@ typeset -A base_colors=(
|
||||
# Define the global associative array to hold the current theme
|
||||
declare -A current_theme
|
||||
|
||||
zrep_load_theme() {
|
||||
function zrep_load_theme() {
|
||||
local theme_name="$1"
|
||||
local theme_file="${config[main_zrep_install_dir]}/themes/${theme_name}"
|
||||
|
||||
@ -137,7 +137,7 @@ function zrep_msg() {
|
||||
|
||||
#################################################################################################
|
||||
# Function to URL-encode strings in Zsh
|
||||
zrep_search_url_encode() {
|
||||
function zrep_search_url_encode() {
|
||||
local string="${1}"
|
||||
local strlen=${#string}
|
||||
local encoded=""
|
||||
@ -156,7 +156,7 @@ zrep_search_url_encode() {
|
||||
}
|
||||
|
||||
# Function to perform a search query and process JSON response
|
||||
zrep_search() {
|
||||
function zrep_search() {
|
||||
local searchTerm="${@}"
|
||||
|
||||
local encodedSearch=$(zrep_search_url_encode "${searchTerm}")
|
||||
|
Loading…
Reference in New Issue
Block a user