OS4 DepotLogo by Nickman 
(anonymous IP: 3.133.138.129,2258) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Utility » Text » Edit » litexl.lha

Lite XL

Description: A lightweight text editor written in Lua and SDL
Download: litexl.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 2Mb
Version: 2.1.4r1
Date: 24 May 2024
Author: Francesco Abbate, LiteXL team, George Sokianos
Submitter: George Sokianos
Homepage: https://git.walkero.gr/walkero/lite-xl
Requirements: SDL 2
Category: utility/text/edit
Replaces: utility/text/edit/litexl.lha
License: Other
Distribute: yes
Min OS Version: 4.1
FileID: 12953
 
Snapshots:
 
Comments: 8
Snapshots: 4
Videos: 0
Downloads: 151  (Current version)
850  (Accumulated)
Votes: 15 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
# Lite XL v2 for AmigaOS 4.1 FE & MorphOS 3

Lite XL is a lightweight text editor written in Lua and SDL2.

The port is not perfect and it might have issues here and there. It might
crash from time to time, if there is a path problem, but overall it works
pretty well. This is my daily editor for any kind of development.
If it crashes on your system, try to delete to `.config` folder.

## Installation
You can extract the Lite XL archive wherever you want and run the *lite*
editor.

## Configuration folder
This editor creates a `.config` folder where the configuration is saved, as
well as plugins, themes etc.. By default this version uses the installation
folder, but if you want to override it, you can create an ENV variable
named `HOME` and set there your prefferable path.

You can check if there is one already set by executing the following command
in a shell
```
GetEnv HOME
```
If there is one set, then you will see the path at the output.

Otherwise, you can set your home path be executing the following command.
Change the path to the one of your preference.
```
SetEnv SAVE HOME "Sys:home/"
```

## Addons
### Colors
Colors are lua files that set the color scheme of the editor. There are
light and dark themes for you to choose.

To install and use them you have to copy the ones you would like from
`addons/colors/light` or `addons/colors/dark` into the folder
`.config/lite-xl/colors/`. Don't add light or dark folders. Just copy the
.lua files in there.

Then you have to start Lite XL and open your configuration by clicking
at the cog icon at the toolbar (bottom left sixth icon). Go at the line
that looks like below
```
-- core.reload_module("colors.summer")
```
and change the `summer` with the name of your color theme. Also, remove
the two dashes `--` at the start of the line and save the file. If you
did everything right, the color schema should change instantly.

The themes can also be found at
https://github.com/lite-xl/lite-xl-colors

### Plugins
LiteXL is able to use plugins to extend its features. Those can be found
at https://github.com/lite-xl/lite-xl-plugins and other websites. Not all
of them will work fine on AmigaOS 4 or MorphOS, because of missing
dependencies or filesystem issues.

To make it easier for you, I gathered some of the plugins that are working
well, and I included them under `addons/plugins`. For you to install the
ones you would like to use, you have to copy the `.lua` files into the
folder `.config/lite-xl/plugins/` and restart the editor.

Please, choose wisely, because adding all the plugins might make the editor
slower on your system. I would recommend you add only those that you really
need.

The included plugins are the following:

**autoinsert**
Automatically inserts closing brackets and quotes. Also allows selected
text to be wrapped with brackets or quotes.

**autosaveonfocuslost**
Automatically saves files that were changed when the main window loses
focus by switching to another application

**autowrap**
Automatically hardwraps lines when typing

**bigclock**
Shows the current time and date in a view with large text

**bracketmatch**
Underlines matching pair for bracket under the caret

**codesets**
This plugin uses the codesets.library on AmigaOS 4 and the
charsets.library on MorphOS to translate ISO encoded files to unicode
and vice-versa. When this is enabled new menu items are added to
load/save the code with a different encoding. Also there is a new
section at the status bar that show the file encoding.
This plugin is **EXPERIMENTAL** and heavily inspired from the encoding
plugin at https://github.com/jgmdev/lite-xl-encoding

**colorpreview**
Underlays color values (eg. `#ff00ff` or `rgb(255, 0, 255)`) with their
resultant color.

**custom_caret**
Customize the caret in the editor setting it to *underline*, *block* or
*line* at the init.lua file in your config folder.
For example add:
`config.plugins.custom_caret.shape = "block"`

**EditorConfig**
EditorConfig (https://editorconfig.org/) implementation for Lite XL

**ephemeral_tabs**
Preview tabs. Opening a doc will replace the contents of the preview tab.
Marks tabs as non-preview on any change or tab double clicking.

**ghmarkdown**
Opens a preview of the current markdown file in a browser window.
On AmigaOS 4 it uses *urlopen* and on MorphOS it uses *openurl* to load
the generated html in the browser. It requires a GitHub application token
because it uses its Rest API. Add it at the init.lua file in your config
folder like below:
`config.plugins.ghmarkdown.github_token = "<token here>"`

**indentguide**
Adds indent guides

**language_guide**
Syntax for the AmigaGuide scripting language

**language_hws**
Syntax for the Hollywood language

**language_make**
Syntax for the Make build system language

**language_sh**
Syntax for shell scripting language

**lfautoinsert**
Automatically inserts indentation and closing bracket/text after newline

**markers**
Add markers to docs and jump between them quickly

**minimap**
Shows a minimap on the right-hand side of the docview. Please note that
this plugin will make the editor slower on file loading and scrolling.

**navigate**
Allows moving back and forward between document positions, reducing the
amount of scrolling

**nonicons**
File icons set for TreeView. Download TTF font to your config/fonts
folder from https://github.com/yamatsum/nonicons/tree/master/dist

**opacity**
Change the opaqueness/transparency of lite-xl using LAmiga+mousewheel
or a command.

**openfilelocation**
Opens the parent directory of the current file in the file manager

**rainbowparen**
Show nesting of parentheses with rainbow colours

**restoretabs**
Keep a list of recently closed tabs, and restore the tab in order on
cntrl+shift+t.

**select_colorscheme**
Select a color theme, like VScode, Sublime Text.
(plugin saves changes)

**selectionhighlight**
Highlights regions of code that match the current selection

**smallclock**
It adds a small clock at the bottom right corner.

**tetris**
Play Tetris inside Lite XL.

## Tips and tricks
### Transitions

If you want to disable the transitions and make the editor faster,
open your configuration file by clicking at the cog icon at the toolbar
(bottom left, 6th icon) and add the following line at the end of the file,
and then save it. You might need to restart your editor.

```
config.transitions = false
```

### Hide files from the file list

If you would like to hide files or whole folder from the left side bar list,
open your configuration by clicking at the cog icon at the toolbar
(bottom left sixth icon) and add the followline at the end of the file and
save it. This hides all the files that start with a dot, and all the `.info`
files. You might need to restart your editor.

```
config.ignore_files = {"^%.", "%.info$"}
```

You can add as many rules as you want in there, to hide files or
folders, as you like.

## I would like to thank

- IconDesigner for the proper glow icons that are included in the release
- Capehill for his tireless work on SDL port for AmigaOS 4.1 FE
- Michael Trebilcock for his port on liblua
- Bruno "BeWorld" Peloille for his great work on porting SDL to MorphOS
  and for his valuable help
- Lite XL original team for being helpful and providing info

Without all the above Lite XL would not be possible

## Support
If you enjoy what I am doing and would like to keep me up during the night,
please consider to buy me a coffee at:
https://ko-fi.com/walkero

## Known issues
You can find the known issues at
https://git.walkero.gr/walkero/lite-xl/issues

# Changelog

## [2.1.4r1] - 2024-05-23
### Added
- Added the ability to open files and folders by drag 'n drop them on the
  LiteXL icon when this is on the AmiDock (AmigaOS4) / Panel (MorphOS)

### Updated
- Updated the code to the upstream 2.1.4 release

### Fixed
- Fix opening files from the root of a device

## [2.1.3r1] - 2024-03-09
### Added
- Added AmiUpdate support
- Added the Tetris plugin

### Updated
- Updated the code to the upstream 2.1.3 release
- Compiled with SDL 2.30.0 that supports editing with ISO encodings, other
  than English. Now the editor should be able to support any language
  and in conjuction with the codesets plugin be able to make text
  encodings conversions
- Now the codesets plugin supports MorphOS 3.18 and above

### Changed
- Changed the way the "Open in system" option executes the WBRun command
  in AmigaOS 4, with a more secure way
- Did a lot of code cleanup in sync with the upstream, and parts of code
  that were left over
- Compiled with pcre2 10.42 (MorphOS version only)

### Fixed
- I did a lot of changes on path manipulation and usage, fixing scanning
  the root of a partition or an assign path
- Fixed an error with the codesets plugin, where an empty file could
  not be opened
- Improved the folder suggestions when opening projects or changing paths.
  Now even the root folders of a partition are presented
- Fixed ghmarkdown plugin, but now requires a GitHub token to be provided

# Disclaimer
YOU MAY USE IT AT YOUR OWN RISK!
I will not be held responsible for any data loss or problems you might get
by using this software.







Copyright © 2004-2024 by Björn Hagström All Rights Reserved