IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.77k stars 346 forks source link

Bug Report: unexpected replacement of tabs with spaces #356

Open xoism opened 1 year ago

xoism commented 1 year ago

Any tab entered into Boop, either via typing or the result of a script, is converted into 4 spaces.

Expected behavior:

Steps to reproduce:

  1. Open boop
  2. press tab, a, s, d, f
  3. copy all text
  4. open terminal
  5. type echo " then paste then "
  6. compare output to echo "\tasdf"
/**
{
    "api": 1,
    "name": "Tab Test",
    "description": "Return tab + some text",
    "author": "xoism",
    "icon": "metamorphose",
    "tags": "test,tab"
}
**/

function main (state) {
    state.text = "\tasdf";
}
  1. copy output of above script
  2. perform same test in terminal as above

Boop version: 1.4.0 OS: macOS 12.6.1