I love FocusMode. Great feature
Under certain circumstances, however, it can be distracting, like say, when I select paragraphs, or when I move text around.
Could I get a toggle command?
Focus Mode plugin
-
- Posts: 2245
- Joined: 25.08.2021 18:15
-
- Posts: 22
- Joined: 13.07.2024 21:19
Focus Mode Plugin Startup State Should Be INI Field
I do not want Focus Mode to be toggled on when I start CudaText. I will only use it if I want it. I had to change __init.py__ because there was no option for the plugin INI stanza.
This choice should be an INI setting:
PS Watch capitalization issues with the INI read, either "false" or "False" or even "FALSE" should be valid.
Code: Select all
class Command:
def __init__(self):
self.load_opt()
self.active = False # hard-wired value, changed to False
Code: Select all
[focus_mode]
file_extensions=txt,fountain
dim_value=150
active=false
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Focus Mode Plugin Startup State Should Be INI Field
ok, I will add the option 'active'. INI format means it must be 0 or 1. not 'false'!
will update plugin in 1-2 hours.
EDIT: updated.
will update plugin in 1-2 hours.
EDIT: updated.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Focus Mode: how to toggle
merged topic to old topic from 2023 year.
-
- Posts: 22
- Joined: 13.07.2024 21:19
Re: Focus Mode Plugin Startup State Should Be INI Field
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Focus Mode plugin
yes, but as i remember Win3x times, OS had ini files with values 0 / 1. CudaText plugins usually use 0 / 1.