a prefix for metadata in the manifest

[?]
Jan 3, 2023, 2:21 AM
CYEH4AXBCTDLTBMWC3THTJHT6KBRNSGQBFQPWTEYRRM3LI2XGKRQC

Dependencies

  • [2] 6K5PFF6X helper: trimming whitespace from strings
  • [3] 5OVKHVY6 nice way to make on.* handlers more discoverable
  • [4] QFURHRTP rename globals to have a single uppercase letter
  • [5] LRDM35CE app running again
  • [6] WNHI74P7 load manifest in correct order
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] PLKNHYZ4 extract a function

Change contents

  • edit in text.lua at line 933
    [2.172]
    [9.438]
    end
    function starts_with(s, prefix)
    if #s < #prefix then
    return false
    end
    for i=1,#prefix do
    if s:sub(i,i) ~= prefix:sub(i,i) then
    return false
    end
    end
    return true
  • replacement in live.lua at line 124
    [4.519][5.4379:4405](),[5.4379][5.4379:4405]()
    if k ~= 'parent' then
    [4.519]
    [5.4405]
    -- Most keys in the manifest are definitions. If we need to store any
    -- metadata we'll do it in keys starting with a specific prefix.
    if not starts_with(k, 'fw_') then
  • edit in live.lua at line 139
    [5.4616]
    [5.4616]
    PARENT = 'fw_parent'
  • replacement in live.lua at line 226
    [4.806][4.806:843]()
    Live.manifest.parent = Live.head
    [4.806]
    [4.843]
    Live.manifest[PARENT] = Live.head
  • replacement in live.lua at line 242
    [4.1291][4.1291:1328]()
    Live.manifest.parent = Live.head
    [4.1291]
    [4.1328]
    Live.manifest[PARENT] = Live.head
  • replacement in live.lua at line 251
    [5.7760][4.1610:1649]()
    Live.head = Live.manifest.parent
    [5.7760]
    [4.1649]
    Live.head = Live.manifest[PARENT]
  • replacement in 0001-manifest at line 1
    [3.593][3.594:614]()
    {"parent":0,"on":1}
    [3.593]
    {"fw_parent":0,"on":1}