Edit configurations (pre-1.5)

The power of the INI files help us customizing textworker easily! But the only way to do it is open the configuration file and edit it.

This is for versions older than 1.5.

Location of the configuration file

Please take a look at this page.

Open the file

Note: Don't usetexteditor_bck.ini as it is a backup of texteditor_configs.ini!

Since texteditor 1.3, I've added a button which can open the file easily - it's under the Config menu:

Basic configurations

On the first run, Texteditor automatically creates configuration file(s) - it will like this:

[global]
color = light
sub_color = default
font = default
font_size = 14

[popups]
width = 250
height = 250

[cmd]
defconsole = xterm
isenabled = yes
writelog = no

[filemgr]
autosave = yes
autosave-time = 30

All sections available this time are: global, popups, cmd and filemgr. There will be more in future releases.

Let's see what do they mean...

global section

Description: Define the entrie UI in texteditor what to do. Usually it's font color, background...

  • color = UI background. You only can use light or dark.

  • sub_color = font color. Available colors defined in constants: default (depends on the UI color), green, blue, red. You can't use green/blue/red if the color variable = light

  • (version 1.4+) autocolor_mode: You can turn it on or off (choose "yes" or "no") - this uses for automatically changes the application theme sync with the system. Disabled by the default.

  • font = font style. The default font style is Consolas.

  • font_size = font size: The default is 14.

popups

Note: Actually, this is decrapted before. (from 1.2)

Description: Define how popup windows (in Tkinter they're TopLevel) work.

  • width and height: width and height of the window (in pixel).

cmd

Description: Configs the Command Window widget.

  • defconsole: Default terminal EMULATOR (NOT shell please) - in Linux it's xterm, and Windows is cmd.

  • isenabled: Whetever enable this widget or not. Only accept yes or no.

  • writelog (not implemented yet): It should be in global section - write logs into a file and nothing more.

filemgr

Description: File manager class - now only autosave is implemented.

  • autosave: Enable autosaving or not - only affect to the current opening tab. Only accept yes or no.

  • autosave-time: Autosave time delay (in seconds): 30 - 60 (1 minute) - 900 (15 mins) - 1200 (20 mins) and 1800 (30 mins)

Change a configuration

Just change the default value to any accepted value, then restart the application.

Start from version 1.3, we have some new configurations - both of them are accessible on Config menu:

  • Toggle dark (or light mode): switch your theme to dark/light mode.

  • Wrap (by word): Enable wrap (or disable it) for the editor

To turn a configuration on, set it to "yes". To turn off just set to "no".

Reset configurations

There is a button in the config menu - yelp, just click OK on the new message and restart the application. Done!

Last updated