Skip to content

MLeidel/TKedit

Repository files navigation

TKedit: Light Code Editor 2026

Made with Python, and Ttkbootstrap

tkinter Text is not the swiftest widget in the class but still packs a byte.

Features

  • Syntax Highlighting (https://github.com/MLeidel/TKsyntex)
  • Block tabs
  • Language recognition by extention
  • Toggle comment lines
  • Bookmarking
  • Auto-indentation
  • Drag n Drop
  • Recent file list
  • Snippets
  • Open last file on startup
  • Toggle word wrap
  • Enclose selected ( " ' ` * _ )
  • Find and Replace
  • Open System Terminal
  • Open System File Manager
  • Context menu
  • Backup file
  • Markdown to HTML
  • Themes
  • For Linux, Windows, Mac

Configure

File: tkedit.ini

    [Main]
    font=Cascadia Code
    fontsize=10
    lastfile=yes
    backup=no
    tabsz=4
    nospaces=yes
    terminal=xfce4-terminal
    filemgr=thunar
    appath=home/USER/apps/python/projects/TKedit/tkedit.pyc
    autoindent=yes
    md2html=yes
    debounce=100
    theme=cyborg
    style=material

Config files:

    lastfile
    recent_files.json
    tked1.png
    tkedit.ini
    winfo

For Windows, these files remain in the app directory (C:\TKedit)
For Linux and Mac these files are kept in ~/home/USER/.config/tkedit

some configuration values may differ for Windows.

        terminal=wt
        appath=C:\\TKedit
        and possibly others

see win_tkedit.ini and Mac_tkedit.ini for examples

Styles

Style Name Description
DARK
material Based on Material Design
dracula Purple/pink tones popular vampire-themed
zenburn Low-contrast easy on the eyes
monokai Classic dark theme from Sublime Text
default Dark or Light
paraiso-dark Paraiso Dark editor-style
solarized-dark Popular low-contrast dark theme
native Pygments own dark theme
gruvbox-dark Retro groove warm colors
LIGHT
default Dark or Light
borland classic light/bright editor look
bw black/white / high readability
tango lighter Tango palette
pastie often used as a light-ish palette

Themes

Dark
    darkly cyborg superhero solar 

Light    
    sandstone yeti pulse cosmo flatly litera minty
    lumen journal simplex cerculean

favorites: cyborg / material and zenburn

Keyboard Shortcuts

Special Keys Description
------------------- ------------------
Control-n New File
Control-Shift-N Open File in New Window
Control-o Open File
Control-p Open Previous File
Control-Shift-O Open Recent File List
Control-s Save File
Control-Shift-S Save-As File
Control-q Close App
Control-f Find Text
F3 Find Next Text
Control-h Find - Replace Dialog
Control-u Uppercase
Control-l Lowercase
Control-w Toggle Word wrap
Control-Shift-T Open Terminal
Control-Shift-F Open File Manager
Alt-z Snippets Manager
Shift-Control-Z Snippets Manager for Mac
Control-Slash Line Comment

and other common editing keyboard commands...
(Watch out for caps-lock when using keyboard commands :)
For Mac's replace "Control" with "Command" above.

Bookmarks

Keyboard Description
--------------- ----------------
Control-Left-Click Toggle Bookmark
Control-b Goto Next Bookmark
Shift-Control-b Clear Bookmarks

Python Modules

  • Tksyntex
    • source is included
  • tklinenums
  • ttkbootstrap
  • markdown

Notes

  • Open Previous File opens the previous file you had open in the current session
    whether you saved it or not.
    Saved files will appear in the "Recent File List"

  • For markdown docs each Save generates the HTML file with the same base name.

  • May need to adjest the "debounce" setting depending on your system.

  • Surround selected with " ' ` _ *

  • nospace = yes - will not remove trailing spaces for .md files.

  • For Windows all of the config files remain in the app directory.

  • Leave Tksyntex in your app directory or move it to a python modules directory

      PYTHONPATH=your-python-modules-directory
    

alttext

Theme: darkly zenburn


About

Code Editor

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors