Skip to content

Latest commit

 

History

History
executable file
·
603 lines (410 loc) · 16.5 KB

setting_variables.md

File metadata and controls

executable file
·
603 lines (410 loc) · 16.5 KB

Setting variable

CommandClick's pre-reserved system setting variables to enable edit by gui
If set, in edit, display secondly.

Table of Contents

editExecute

Edit and Execute on click play button.
Particularly, ALWAYS is most used value in order to standalone app.

Value Description
NO only edit (default)
ALWAYS always edit -> execute

scriptFileName

Enable rename script file name

terminalSizeType

Decide web terminal view size;

Value Description
OFF no sizing (default)
LONG long size
SHORT short size

terminalOutputMode

Switch mode to output script result

Value Description
NORMAL Normal terminal output (default)
REFLASH Before terminal output, screen resflesh
REFLASH_AND_FIRST_ROW Before terminal output, screen resflesh and focus first row
DEBUG stdr + stderr
NO no output (bacground exec)

onAutoExec

Auto exec js script on startup

Value Description
OFF off (default)
ON on

onUpdateLastModify

Switch updating file last modified status when executing

Value Description
ON on (default)
OFF off

historySwitch

Switch app history with url history

Value Description
ON on
OFF off (default)

onAdBlock

Switch adBlock

Value Description
OFF off (default)
ON on
INHERIT inherit config setting

onUrlHistoryRegister

Switch url history update

Value Description
ON on (default)
OFF off

onUrlLaunchMacro

Url launch macro (When set, cmdclick web terminal don't output)

Value Description
RECENT Recent use url launch
FREAQUENCY Most use url launch
OFF No launch
{js file path} js script path

onTermBackendWhenStart

Switch display terminal backend when start

Value Description
OFF off (default)
ON on
Inherit Inherit config setting

onTermVisibleWhenKeyboard

Switch terminal visible when keyboard open

Value Description
OFF off (default)
ON on
Inherit Inherit config setting

onTermShortWhenLoad

Switch terminal sizging short when load url

Value Description
OFF off (default)
ON on
Inherit Inherit config setting

disableShowToolbarWhenHighlight

Switch disable to show toolbar when highlight text in webview

Value Description
OFF off (default)
ON on

defaultMonitorFile

Select default monitor file for screen

Value Description
term_[1-4] term type

execJsOrHtmlPath

Execute javascript or html file path

setReplaceVariables

This variable definite constant variable.
You also have multiple specifing this.

-> detail

  • ex
setReplaceVariables="{replaceVariablle1}={repalce string1}        

or

setReplaceVariables="file://{file path}"     

overrideItemClickExec

Override js executor to itemClick.js when click in ListIndex

setVariableTypes

This variable is controller in MVVM or MVC architecture
When edit, set variable type to cmd variables.

You also have multiple specifying this.
-> detail

hideSettingVariables

Specified setting variables you want to hidden when edit (hidden variable in default)

  • ex
hideSettingVariables="setVariableTypes,editExecute,..."
hideSettingVariables="ignoreHistoryPaths,..." 

or

hideSettingVariables="file://{file path} 

-> detail |

ignoreHistoryPaths

Ignore history path like grep -v

-> detail

  • ex
ignoreHistoryPaths="..."    

or

ignoreHistoryPaths="file://{file path} 

homeScriptUrlsPath

Put fannel always bottom in url history

homeFannelsPath

Specified fannel to put always bottom in app history

srcImageAnchorLongPressMenuFilePath

Specified fannel name in current app dir to set menu for src image anchor long press

srcAnchorLongPressMenuFilePath

Specified fannel name in current app dir to set menu for src image anchor long press

imageLongPressMenuFilePath

Specified fannel name in current app dir to set menu for src image anchor long press

listIndexConfig

List index setting config

-> list index config

  • ex
/// SETTING_SECTION_START
listIndexConfig="type=normal,..." 
/// SETTING_SECTION_END
  • file prefix ex
/// SETTING_SECTION_START
listIndexConfig="file://{list index config path} 
/// SETTING_SECTION_END

qrDialogConfig

Qr logo setting config

-> list logo config

  • ex
/// SETTING_SECTION_START
qrDialogConfig="mode=normal,..." 
/// SETTING_SECTION_END
  • file prefix ex
/// SETTING_SECTION_START
qrDialogConfig="file://{qr dialog config path} 
/// SETTING_SECTION_END

playButtonConfig

Set play or ok button config

-> toolbar button config

  • ex
/// SETTING_SECTION_START
playButtonConfig="icon=play,click=OK..." 
/// SETTING_SECTION_END
  • file prefix ex
/// SETTING_SECTION_START
playButtonConfig="file://{play button config path} 
/// SETTING_SECTION_END

editButtonConfig

Set edit button config

-> toolbar button config

  • ex
/// SETTING_SECTION_START
editButtonConfig="icon=edit,click=EDIT..." 
/// SETTING_SECTION_END
  • file prefix ex
/// SETTING_SECTION_START
editButtonConfig="file://{edit button config path} 
/// SETTING_SECTION_END

settingButtonConfig

Set setting button config

-> toolbar button config

  • ex
/// SETTING_SECTION_START
settingButtonConfig="icon=setting,click=MENU..." 
/// SETTING_SECTION_END
  • file prefix ex
/// SETTING_SECTION_START
settingButtonConfig="file://{setting button config path} 
/// SETTING_SECTION_END

extraButtonConfig

Set extra button config

-> toolbar button config

  • ex
/// SETTING_SECTION_START
extraButtonConfig="icon=setup,click=MENU..." 
/// SETTING_SECTION_END
  • file prefix ex
extraButtonConfig="file://{extra button config path} 
/// SETTING_SECTION_END

editBoxTitleConfig

Manage fannel title

-> edit box title config

fannelStateConfig

Manage fannel state

-> fannel state config

noScrollSaveUrls

Ignore scroll yPosition site domain saved

terminalFontZoom

Adjust terminal font size (percentage)

terminalFontColor

Adjust terminal font color

terminalColor

Adjust terminal background color

ubuntuSleepDelayMinInScreenOff

Ubuntu Sleep delay minutes in screen off, Config only value.

-> ubuntuSleepDelayMinInScreenOff

onRootfsSdCardSave

Ubuntu backup rootfs save switch for sd card

ubuntuAutoSetup

Enable auto setup when ubuntu start

  • If you onRootfsSdCardSave is ON, available only when an SD card is inserted
  • ref: Ubuntu Setup

passCmdVariableEdit

Switch pass edit for cmd variables

  • ON: pass cmd variable edit

urlHistoryOrButtonExec

Switch url history or button script exec

Value Description
INHERIT Inherit config setting
URL_HISTORY Switch url history
BUTTON_EXEC Switch url button script exec

beforeCommand (only termux, deprecated)

Before run shellscript, run command

afterCommand (only termux, deprecated)

After run shellscript, run command

terminalDo (only termux, deprecated)

Where to display script result

Value Description
ON In web terminal view
Termux In termux (only shell)
OFF backgrond exec (only shell)

settingImport

Import setting variable from js file

  • Set js file full paths by comma separated or multiple specify this variable
  • This is second priority

Example for editBoxTitleConfig

  • src con
/// SETTING_SECTION_START
settingImport=`${IMPORT_PATH}`
importDisableValList="hideSettingVariables"
terminalDo="OFF"
setVariableTypes=`file://${setVariableTypesForTable}`
qrDialogConfig=`file://${cmdYoutuberTableQrDialogConfigPath}`
listIndexConfig=`file://${cmdYoutuberTableListIndexConfigPath}`
settingButtonConfig=`file://${cmdYoutuberTableSettingBtnConfigPath}`
hideSettingVariables="manager,playBtns"
hideSettingVariables=`file://${configHidValPath}`
/// SETTING_SECTION_END

-${IMPORT_PATH} con

/// SETTING_SECTION_START
editExecute="ALWAYS"
onUpdateLastModify="ON"
onAdBlock="OFF"
playButtonConfig="visible=OFF,disable=ON,color=gray,icon=play"
editButtonConfig="visible=OFF,disable=ON,color=gray,icon=list"
settingButtonConfig=`file://${cmdYoutuberSettingButtonConfigPath}`
fannelStateConfig=`file://`
setReplaceVariables="file://"
hideSettingVariables="file://"
srcImageAnchorLongPressJsPath=`${cmdYoutuberLongPressAction}`
srcAnchorLongPressJsPath=`${cmdYoutuberLongPressAction}`
/// SETTING_SECTION_END

Result setting variable

  • src con side
importDisableValList
terminalDo
setVariableTypes
qrDialogConfig
listIndexConfig
settingButtonConfig
hideSettingVariables
hideSettingVariables
  • import path con side
editExecute
onUpdateLastModify
onAdBlock
playButtonConfig
editButtonConfig
settingButtonConfig <- second setting contents
fannelStateConfig
setReplaceVariables
hideSettingVariables  <- second setting contents
srcImageAnchorLongPressJsPath
srcAnchorLongPressJsPath
  • setReplaceVariables import is forced. This is override src con.
  • Override settingButtonConfig and hideSettingVariables (inner config con import is depend on setting import for config)

importDisableValList

settingImport cancel

  • Set setting variable name by comma separated or multiple specify this variable

onLaunchUrlHistoryByBackstack

Switch to launch url history when bottom fragment is long on http url -> monitor uri (file://monitor_path)

Value Description
OFF off (default)
ON on