mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
Move menu strings outside of table
This commit is contained in:
1 parent
0b74605b4b
commit
4bedbfbf19
1 file changed
+12
-4
@@ -94,10 +94,6 @@ list_mods(){
|
|||||||
|
|
||||||
columnize(){
|
columnize(){
|
||||||
column -t -s$'\t' -o$" $separator "
|
column -t -s$'\t' -o$" $separator "
|
||||||
printf "f$separator Launch favorite\n"
|
|
||||||
printf "l$separator List installed mods\n"
|
|
||||||
printf "r$separator Refresh\n"
|
|
||||||
printf "q$separator Quit\n"
|
|
||||||
}
|
}
|
||||||
test_fav(){
|
test_fav(){
|
||||||
if [[ -n $fav ]]; then
|
if [[ -n $fav ]]; then
|
||||||
@@ -235,6 +231,18 @@ init_table(){
|
|||||||
get_sorted_id(){
|
get_sorted_id(){
|
||||||
sorted_id=$(echo -e "${tabled[$sel]}" | awk -F'\t' '{print $5}')
|
sorted_id=$(echo -e "${tabled[$sel]}" | awk -F'\t' '{print $5}')
|
||||||
}
|
}
|
||||||
|
menu(){
|
||||||
|
printf "\n"
|
||||||
|
printf "f$separator Launch favorite\n"
|
||||||
|
printf "l$separator List installed mods\n"
|
||||||
|
printf "r$separator Refresh\n"
|
||||||
|
printf "q$separator Quit\n"
|
||||||
|
printf "\n"
|
||||||
|
}
|
||||||
|
exit_msg(){
|
||||||
|
printf "DZTUI $version\n"
|
||||||
|
exit
|
||||||
|
}
|
||||||
main(){
|
main(){
|
||||||
checks
|
checks
|
||||||
init_table
|
init_table
|
||||||
|
|||||||
Reference in new issue
Block a user