Skip to content

Latest commit

 

History

History
executable file
·
491 lines (354 loc) · 12.7 KB

listIndexConfig.md

File metadata and controls

executable file
·
491 lines (354 loc) · 12.7 KB

listIndexConfig.js

Config for list index mode in edit's setVariableTypes
This config is for list.

Table

How to specify

  1. Set setVariableTypes like bellow
{variableName}:LI=
  1. Specify by setting variables(listIndexConfig) in fannel
/// SETTING_SECTION_START
listIndexConfig="file://${list index config path1}"
/// SETTING_SECTION_END
  • ${list index config path1} con
type=
    tsvEdit,

list=
    listDir=`${cmdTtsPlayerTableTsvPath}`
    |compPath=`${cmdTtsPlayerTableInitTsvConPath}`
    |prefix=`${TTS_PREFIX}`
    |suffix=`${TSV_SUFFIX}`
    ,

name=
    removeExtend=,

click=
    enableUpdate=ON
    |acVar=runToConfigState
        ?importPath=
            `${cmdTtsPlayerChangeStateAction}`
        ?replace=
            STATE=`${MANAGER}`
            &ON_LIST_DIR_UPDATER=ON
            &ON_PLAY_INFO_SAVE=ON,

longClick=
    |func=MENU
        ?args=
            menuPath=
                `${cmdTtsPlayerTableLongPressListIndexMenuPath}`,

searchBox=
    visible=OFF,

List index config format

{config key1}=
    ...,
{config key2}=
    ...,
{config key2}=
    ...,
.
.
.  
  • Each config key is concat by ,

List index config key

type

List type

Format for type

value

Value table for type

value Description
normal Handle file list (default)
tsvEdit Handle two colmun tsv lines
  • tsvEdit treat key value tsv (two column tsv without header)

layout

Decide layout

Format for layout

key-value

type key for layout

Set layout type like bellow.

value Description
linear Display as linear layout (default)
grid Display as grid layout

col key for layout

Col num for grid layout

name

Display list name

Format for name

key-value

  • ex
name=
    {key1}={value1}  
    |{key2}={value2}  
    |{key3}=...
    |...    
  • key is concat by |

Key-value table for name

Key name value Description
onHide ON
OFF (default)
Hide file name
length num string Limit display file name
removeExtend None Remove extend when set this key
compPrefix string Comp prefix list
compSuffix string Comp suffix
shellPath path string Make file name by shell

Ex for name

name=
	|length=50
	|onHide=
	|removeExtend=
	|length=50
	|shellPath=${SHELL_PATH},
${SHELL_PATH} contents
echo "${EDIT_TARGET_CONTENTS}" \
	| ${b} awk '{print "put name"$0}'
  • ${EDIT_TARGET_CONTENTS} -> Auto replace with intermediate file name contents
  • ${b} -> busybox symlink path

desc

Description setting in cardview

Format for desc

key-value

  • ex
desc=
    {key1}={value1}  
    |{key2}={value2}  
    |{key3}=...
    |...    

Key-value table for desc

Key name Description
length hide file name
shellPath make file name by shell: ${EDIT_TARGET_CONTENTS} is intermediate desc con
  • Concat by |

Ex for desc

desc=
	length=10
	|shellPath="${SHELL_PATH}"
${SHELL_PATH} contents
echo "${EDIT_TARGET_CONTENTS}" \
	| ${b} awk '{print $0}'
  • ${EDIT_TARGET_CONTENTS} -> Auto replace with edit target contents
  • ${b} -> busybox symlink path

list

List setting

Format for list

key-value

  • ex
desc=
    {key1}={value1}  
    |{key2}={value2}  
    |{key3}=...
    |...    

Key-value table for list

Key name value Description
listDir path string List dir path or tsv path
prefix string OR prefix list by separated &
suffix string OR suffix list by separated &
filterShellPath path string Shell path for making filter string:
${ITEM_NAME} mean bellow
type is
normal -> file name
tsvEdit -> first column (title)
editByDrag ${key}=${value} Disable to drag and sort edit by bellow
editByDragDisable=ON -> disable
other -> enable
sortType lastUpdate
sort
reverse
lastUpdate -> order by last update
sort -> normal sort
reverse -> reverse sort
compPath path string Complete list by comp path contents
onReverseLayout ON
other (default)
Enable reverse layout
onOnlyExistPath ON
other (default)
Enable if body is exist path
when type = tsvEdit
  • Enable to specify by file:// prefix
  • Concat by |

Ex for list

[type is normal] case
type=normal,
list=
    listDir=`${LIST_DIR_PATH}`
    |editByDrag=
    	editByDragDisable=ON
    |compPath=`${COMP_PATH}`
    ,
COMP_PATH contents
file name1
file name1
file name1 
  • Specify one column tsv file in type is normal
[type is tsvEdit and file prefix specify] case
type=tsvEdit,
list=
    listDir=`file://${SETTING_PATH}`
    |prefix=`file://${SETTING_PATH}`
    |suffix=`file://${SETTING_PATH}`
    |onOnlyExistPath=ON
    |compPath=`${COMP_PATH}`
    ,
SETTING_PATH contents
listDir	${TSV_PATH}
prefix	prefix1&prefix2
suffix	suffix1&suffix2
  • Specify tsv file in file:// prefix
COMP_PATH contents
comp title1	comp body1
comp title2	comp body2
comp title3	comp body3 
  • Specify two column tsv file in type is tsvEdit
[layout is grid and file prefix specify] case
type=tsvEdit,
layout=grid,
list=
    listDir=`file://${SETTING_PATH}`
    |prefix=`file://${SETTING_PATH}`
    |suffix=`file://${SETTING_PATH}`
    |compPath=`${COMP_PATH}`
    ,
SETTING_PATH contents
listDir	${GRID_DIR_PATH}
prefix	prefix1&prefix2
suffix	suffix1&suffix2
  • Specify tsv file in file:// prefix
COMP_PATH contents
comp title1	comp body1
comp title2	comp body2
comp title3	comp body3 
  • Specify two column tsv file in type is tsvEdit

searchBox

Search box setting

Format for searchBox

key-value

  • ex
searchBox=
    {key1}={value1}  
    |{key2}={value2}  
    |{key3}=...
    |...    

Key-value table

Key name value Description
hint string Search box hint
visible OFF
other (default)
Search box visiblity
  • Concat by |

Ex for searchBox

searchBox=
    hint="hint string"  
    |visible=ON    

click

Click action

Format for click

key-value

  • ex
click=
    {key1}={value1}  
    |{key2}={value2}  
    |{key3}=...
    |...    

Key-value table for click

Key name value Description
onScriptSave ON / other Save fannel contents on click
monitorSize ON / other Sizing monitor on click
func js action macro js action process macro
  • Concat by |

func key table for click

Key name value Description
args js action args js action process macro
js action key js action con user implemented js action con
  • Concat by ?

Ex for click

  click=
    onScriptSave
    |func=QR_SCAN

Js action macro

-> Js action macro for toolbar

longClick

Long click action
Similer to click

alter

Alter by condition detail

settingimport

Import enable to this config, -> detail