Skip to content

About

TxtAIEditor - A Premium WinUI 3 Desktop Text Editor with an Integrated AI Agent

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

1,543 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TxtAIEditor

TxtAIEditor Logo

TxtAIEditor

A Premium WinUI 3 Desktop Text Editor Shell with an Integrated AI Agent Core

Target Framework UI Framework SDK Version License


🌟 Overview

TxtAIEditor is a high-performance, elegant, and modern desktop text editor shell built for Windows. It marries the robust, native desktop capabilities of WinUI 3 (.NET 10.0) with the intelligence of an integrated AI agent.

Designed for developers, writers, and power users, TxtAIEditor provides a fluid, distraction-free environment. It features standard workspace tools like a live Markdown/HTML/LaTeX previewer, a built-in terminal, comprehensive Git integration, multi-provider AI assistance and AI agent, and a virtualized editor core capable of opening and editing files from small snippets to 200MB+ texts seamlessly.

TxtAIEditor Screenshot


✨ Key Features

πŸ“ Virtualized Editor Core

  • Large File Support: Instantly open and edit large files (200MB+ texts) with zero lag, keeping the editor highly responsive.
  • Virtual Scrolling: Renders only visible viewport lines plus an overscan buffer, keeping DOM elements minimal and rendering fast.
  • Syntax Highlighting: Premium, high-performance syntax coloring for Markdown (headers, lists, blockquotes, bold/italic, code blocks, links), C#, JavaScript, Python, HTML, CSS, LaTeX, and many more.
  • Auto-Completion & Snippets: Intelligent auto-completion suggesting variables, keywords, and customizable snippets (such as Markdown tables, LaTeX matrices, HTML5 shells, C# notifier properties) that insert seamlessly via Enter or Tab.
  • Rich Markdown Toolbar: Quick-apply styling (bold, italic, underline, list, color, tables) to selected text.

πŸ’Ύ Auto-Save

  • Smart Background Auto-Save: Automatically saves modified files within the active Git repository folder every 5 seconds.
  • Workspace-Aware: By default, only triggers when a Git repository folder is opened in the editor.
  • Optional Non-Git Folders: The Editor settings include an opt-in checkbox to allow Autosave in folders that are not Git repositories.

πŸ” Encrypted Notes

  • Secure Note Compatibility: Opens and saves SECURE_NOTE_V1 encrypted note files compatible with the Simple Memo encryption format.
  • Password Prompt on Open: Encrypted files ask for a password before the decrypted text is loaded into the editor.
  • Encrypted Save Preservation: Saving an encrypted tab writes the file back in encrypted form instead of leaking plain text to disk.
  • Tab Lock Indicator: Encrypted tabs show a lock icon at the front of the tab.
  • Password Management: Right-click the tab or lock icon to encrypt a plain tab, change the password, or remove encryption. Password changes and removal require matching double-entry confirmation.

πŸ–₯️ Native Premium Windows UI

  • Mica Backdrop & Themes: Themes (Light, Dark, Pastel Dark) with a high-fidelity Mica backdrop.
  • Multi-Pane Splitters: Easily adjust sidebars, preview sections, and terminal panes via interactive C# split-controls.
  • Always on Top & Sticky Notes: Pin your editor window or transform to sticky notes directly from the toolbar.
  • Optional System Tray Mode: Enable Keep in system tray when closing in Settings > Editing to hide the window instead of ending the process. Use the tray icon's right-click menu to reopen the window or fully close TxtAIEditor.

πŸ‘οΈ Real-Time Preview

  • Live Renderer: View Markdown, HTML, Aozora or LaTeX (powered by KaTeX) in a split view or an external browser.
  • Inline Live Preview: Renders Markdown elements (headers, lists, tables, code blocks, images) directly within the editor area. Non-active lines transition into their styled preview form, and automatically revert to raw source text when focused or edited for a seamless WYSIWYG-like experience.
  • Print & Save as PDF: Print the rendered Markdown/HTML/LaTeX preview directly from the preview panel, or save it as a PDF via the system print dialog (e.g., Microsoft Print to PDF). Use the toolbar Print button or Ctrl + P.

πŸ–ΌοΈ Integrated Media & Document Viewer

  • Unified Viewer Workflow: Open and inspect images, office documents, audio, and video files directly from the Explorer or editor tabs alongside your project files.
  • Image Viewer: View popular image formats (.png, .jpg, .jpeg, .gif, .bmp, .ico, .webp, .tiff, .avif) seamlessly within the editor space.
  • Image Conversion: Right-click an image tab to convert it to PNG or JPG with adjustable quality, aspect-ratio-preserving resize, and interpolation. Animated GIF/WebP frames can be composited and exported individually; converted files use the _convert suffix.
  • Document Viewer: Preview PDFs (.pdf) and common Office documents (.docx, .pptx, .xlsx, .hwpx, .doc, .xls, .ppt) in a clean, read-only viewer.
  • Audio & Video Player: Listen to audio (.mp3, .wav, .m4a, .aac, .flac, .wma, .ogg, .oga, .opus) and watch videos (.mp4, .m4v, .mov, .wmv, .avi, .mkv, .webm, .mpeg, .mpg) with native, integrated media playback controls.

πŸ” Hex Editor

  • Binary Inspection: View and edit raw binary content in a side-by-side layout (Offset, Hex bytes, and ASCII representation).
  • Easy Access & UI Integration: Right-click any open tab and select "Hex View". Cursor offset and selections are shown in hex format on the status bar.

πŸ“¦ Archive File Support

  • Browsing & Open: Open any .zip, .rar, or .7z archive in the Explorer panel to explore its contents as a virtual directory and open files directly in editor tabs.
  • Archive Extraction: Right-click an archive in the Explorer to extract it to a folder.

πŸ“Š Interactive CSV/JSON Table Mode

  • Grid Editor Shell: Automatically renders .csv and .json files into a premium, highly responsive interactive spreadsheet-like grid/table instead of raw text (decodes and displays JSON objects/arrays in a structured table layout).
  • Nested Object Inspection (JSON): In JSON table mode, double-click any cell containing a nested object or array to inspect its contents in detail.
  • Column & Row Multi-Select: Click row numbers or column headers to select entire rows/columns, with support for range dragging and multi-selection using Ctrl and Shift keys.
  • Formula Bar & Name Box: Built-in toolbar at the top showing the current active cell coordinates (e.g., A1, D12) along with an editable formula bar for writing and viewing values.
  • Dynamic Column Resizing: Drag the border of any column header to resize column widths in real-time.
  • Native Spreadsheet Navigation: Use standard hotkeys to navigate the grid:
    • Tab / Shift + Tab to move focus horizontally.
    • Arrow Keys (Up, Down) to navigate vertically.
    • Enter to commit input and move focus down (auto-appends a new blank row at the end of the file), and Shift + Enter to move focus up.

πŸ““ Jupyter Notebook Integration

  • WebView2-based Viewer: Open and edit .ipynb files with a rich interactive viewer and toggle between rendered and raw JSON source view.
  • Built-in Python Kernel: Execute code cells with automatic virtual environment detection (.venv/venv) and per-tab kernel session management.
  • Interactive Matplotlib Plots: Explore 2D plots with pan/zoom controls and 3D plots with rotational view adjustments β€” directly in the notebook.
  • Variable Explorer: Examine active Python variables in a dedicated panel with name, type, size, and value columns, plus filtering and refresh.

πŸ€– AI Assistant

  • Multi-Provider: Connect with Gemini, OpenAI, OpenRouter, OpenCode Go/Zen, Ollama/Ollama Cloud, Cerebras or local LM Studio endpoints.
  • Secure Storage: API keys are securely saved via native Windows Credential Manager.
  • AI Translation: Fast translation of selected text to/from Korean, English, Japanese, Simplified Chinese, Traditional Chinese, French, Spanish, German, etc. (When translating with file context, it automatically performs chunk processing).
  • Context Actions: Quick AI actions (Explain, Summarize, Refine) on selected text. (When summarizing with file context, it automatically performs chunk processing to handle large documents).
  • AI Custom Commands: Ask questions or give instructions to the AI.
    • Direct Input: Type a short prompt in the input box and press Send.
    • Instruction Presets: Save instructions as custom prompt presets for quick access.

πŸ€– AI Agent

  • Complex Workspace Tasks: Executes multi-step workspace tasks using tools (file I/O, terminal execution, web search/fetch, and document text extraction).
  • Multisession Management: Runs and manages parallel, fully isolated agent environments (workspace paths, settings, history, and background execution).
  • Model Context Protocol (MCP) Support: Dynamically connects HTTP or stdio MCP servers to expose custom tools to the agent, with built-in support for:
    • Browser Use & Computer Use Plugin: Control the Windows default browser and interact with PC-level application windows using screen capture, clicks, and keyboard inputs.
    • ComfyUI Workflow Plugin: Generate images directly from API JSON/parameters.
  • Custom Personas & Skills: Supports custom personas/system instructions, and extensible local/custom skills (with auto-generation via skill-creator).
  • Recommended Extensions: For full feature support, installing PowerShell 7 (pwsh), ripgrep (rg), ripgrep-all (rga), and pdftotext is recommended.

🌐 Remote Server Workspace (SSH, SFTP, FTPS, WebDAV, WSL)

  • Multi-Protocol Support: Connect seamlessly to remote environments over SSH, SFTP, FTPS, WebDAV, or local Windows Subsystem for Linux (WSL) distributions.
  • Remote File Explorer: Browse remote directory trees, inspect file details (sizes, modified dates), and navigate remote file systems directly.
  • Automatic WSL Discovery: Automatically detects installed WSL Linux distributions on your Windows machine for zero-configuration access.
  • Seamless Remote Editing: Open and edit remote files directly in the editor canvas. Changes saved in the editor are automatically uploaded and synchronized back to the remote server.
  • Secure Credential Storage: Safely stores connection profiles and credentials using native Windows Credential Manager integration.

πŸ’» Terminal

  • Shell Profiles: Launch PowerShell, Command Prompt, Git Bash, or WSL sessions directly beneath your editor canvas.
  • Path Syncing: Automatically matches the terminal's working directory with the active workspace.
  • VS Code-style Interaction: Right-click to paste, right-click a selection to copy, and Ctrl+click terminal paths to open them.

🌿 Git Panel

  • Status Tracker: View staged/unstaged changes, stage/unstage files, execute commits, and push to remotes.
  • History Viewer: Visual repository branch and commit history logs.

⭐ Favorites

  • File & Folder Bookmarks: Pin any file or folder to your Favorites panel for instant one-click access β€” no more digging through deep directory trees.
  • Right-Click to Add: Simply right-click any file or folder in the Explorer panel and select "Add to Favorites" from the context menu.

πŸ“‘ Table of Contents (TOC) & Document Outline

  • Smart Outline Generator: Automatically parses and generates a structural document outline based on the active file:
    • Markdown: Maps H1 through H6 headings (# to ######) to hierarchical tree levels.
    • Aozora Bunko: Supports Japanese Aozora text files, parsing block/inline/wrapped headings while cleaning ruby markup (γ€Š...》, |) and tags for a distraction-free overview.
    • Code Outline: Builds structural trees of classes, methods, structs, or functions for major languages including C#, Python, JavaScript/TypeScript, and Go (with a general signature fallback for others).
  • Interactive Jump: Double-clicking any outline item instantly scrolls the viewport to focus the target line.

🌐 Multilingual Support

  • Native support for English, Korean, Japanese, Simplified Chinese, and Traditional Chinese. The user interface automatically adapts to your system language or preferred settings for a fully localized desktop experience.

⌨️ Keyboard Shortcuts & Special Features

TxtAIEditor is designed for speed and productivity, packing standard IDE shortcuts and premium interactive elements.

πŸ”Œ Keyboard Shortcuts

Shortcut Description
Ctrl + N New Tab
Ctrl + S Save File
Ctrl + Shift + S Save As
Ctrl + O Open File
Ctrl + F Find / Search
Ctrl + W Close Tab
Ctrl + P Print
Ctrl + 1 Toggle Left Panel
Ctrl + 2 Toggle Right Panel
Ctrl + 3 Expand Right Panel
Ctrl + ` Toggle Terminal
Ctrl + Z Undo
Ctrl + Y Redo
Ctrl + C Copy
Ctrl + V Paste
Ctrl + X Cut
Ctrl + Mouse Wheel Zoom In / Out in the document viewer
Ctrl + Enter Send AI Prompt
Alt + Z Toggle Word Wrap
F3 Toggle Explorer Tree Mode
F4 Toggle Live Preview
F9 Toggle Always on Top
F10 Toggle Theme (Light / Dark / Pastel Dark)
F11 Toggle Maximize Window
F12 Toggle Sticky Note Mode

πŸ–±οΈ Column Selection (Multi-Cursor Selection)

  • Column Drag Selection:
    • Hold Alt + Mouse Drag (or Shift + Alt + Mouse Drag) to select text in a vertical block or column.
    • This places cursors on multiple consecutive lines, enabling you to edit, write, or delete text across multiple rows simultaneously.

πŸ› οΈ Interactive Tool Buttons

  • Custom Text Color Selector:
    • Right-Click on the TextColor button to summon the native Color Picker dialog, allowing you to select and configure custom text colors precisely.
  • AI Translation Target Language Selector:
    • Right-Click on the translate button to open a context menu enabling you to switch target translation languages (Korean, English, Japanese, Simplified Chinese, Traditional Chinese, French, Spanish, German) instantly.
  • Add to Favorites:
    • Right-Click any file or folder in the Explorer panel and choose "Add to Favorites" to instantly pin it to your Favorites sidebar for quick access.

πŸš€ Getting Started

πŸ“₯ Download

You can download the latest installer (built using Inno Setup) from the Releases Page.

Manual build Prerequisites

To build and run TxtAIEditor locally, make sure you have:

  • Windows 10 / 11
  • Visual Studio 2022 (v17.10 or later recommended)
  • .NET 10.0 SDK
  • Windows App SDK component installed inside Visual Studio.
  • WebView2 Runtime (installed by default on modern Windows).

How to Run

  1. Clone the Repository:
    git clone https://github.com/kirinonakar/TxtAIEditor.git
    cd TxtAIEditor
  2. Open the Solution: Open the TxtAIEditor.slnx (or TxtAIEditor.csproj) inside Visual Studio.
  3. Restore & Build: Visual Studio will automatically restore NuGet packages (such as Microsoft.WindowsAppSDK).
  4. Run: Set the startup project to TxtAIEditor and press F5 to build and run in unpackaged mode.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2026 kirinonakar. All rights reserved.

Third-Party Licenses

This software includes Mermaid, xterm.js, and KaTeX.

Mermaid
License: MIT License
Copyright (c) 2014 - 2022 Knut Sveidqvist

xterm.js
License: MIT License
Copyright (c) 2017-2019, The xterm.js authors
Copyright (c) 2014-2016, SourceLair Private Company
Copyright (c) 2012-2013, Christopher Jeffrey

KaTeX
License: MIT License
Copyright (c) 2013-2020 Khan Academy and other contributors

The MIT license text below applies to the third-party components listed above.

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

TxtAIEditor - A Premium WinUI 3 Desktop Text Editor with an Integrated AI Agent

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages