Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces replaced by TAB in file editor #788

Closed
3 tasks done
matsekberg opened this issue Aug 27, 2024 · 5 comments
Closed
3 tasks done

Spaces replaced by TAB in file editor #788

matsekberg opened this issue Aug 27, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@matsekberg
Copy link

matsekberg commented Aug 27, 2024

Perform all steps below and tick them with [x]

  • Check the related part of the Documentation
  • Update openHASP to the latest version
  • Reproduce the issue and describe all steps

Describe the bug

When I edit a file on an OpenHasp device using the file editor and enter multiple spaces, they are replaced by TAB character(s)

To Reproduce

Just edit a file, enter multiple spaces and the use the arrow keys to back go left. The cursor will jump rather than take one space-step at a time.

Expected behavior

No TABs stored

Screenshots or video

First I erase the spaces, then enter new spaces and lastly walks left with arrow keys. And the cursor jumps.

Namnlost.mov
@matsekberg matsekberg added the bug Something isn't working label Aug 27, 2024
@matsekberg
Copy link
Author

matsekberg commented Aug 27, 2024

Just noticed that I can type Oprion-Space on a Mac keyboard to enter hard spaces and they are marked with red background and dots.

BUT, how do I send hard spaces over MQTT?

image

@fvanroie
Copy link
Collaborator

fvanroie commented Aug 27, 2024

In the editor field, press F1.
Then select Show Settings Menu ctrl-,
image

Uncheck "Soft Tabs" and see if this fixes the tab problem.
You can also enable "Show Invisibles" to see what's going on.

Option-space on MacOS prduces a non-breaking-space character \u00A0 (ascii 180 or 0xA0).

@matsekberg
Copy link
Author

Editor field?

@fvanroie
Copy link
Collaborator

The field where you type your jsonl code.

@matsekberg
Copy link
Author

Ok found it and problem solved. Is it possible to make soft tabs disabled by default?

fvanroie pushed a commit that referenced this issue Aug 29, 2024
LarsMichelsen pushed a commit to LarsMichelsen/openHASP that referenced this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants