Lite-XL is Blazing Fast Diamond
In my mind, Lite XL is my favorite editor now, Notepad++ no more, Sublime Text permanently removed, VSCode is the new IDE VSCode feels like heavyweight now. This is what Sublime Text used to be, only open-source and even more streamlined.
Speed aside, I’m amazed how design is so well tought. Not to mention the keyboard shortcuts that are almost identical as on VSCode or ST4.
Jebote kakvo ludilo?
Ovo je lua interpreter ne compiler. Pa kada sam hteo da me ne pita na izlazu, samo sam zamenio kod u init.lua
, na jednom mestu (L904) je if force then
i promenio sam na if true then
L904,
Meet Lite XL: A Lightweight, Open-Source Text Editor for Linux Users Tačna analiza: Lite XL: A lightweight text editor written in C and Lua | Hacker News
lite-xl/lite-xl-plugin-manager: A lite-xl plugin manager.
U međuvremenu, da instaliraš neki plugin, navigate to the plugins folder at ~/.config/lite-xl/plugins
i njega iskopiraj plugin “.lua” fajl ili kloniraj ceo Git repo ako je veći plugin.
Na primer, moj izbor manjih pluginova:
# looping an array of strings in powershell
#
$url = "https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/"
$plugins = @("ephemeral_tabs", "indent_convert", "ghmarkdown", "bracketmatch", "language_php", "linenumbers", "markers", "openselected", "restoretabs", "selectionhighlight", "sort", "tab_switcher", "titleize", "togglesnakecamel", "ipc" )
foreach ($p in $plugins) { wget.exe "$url$p.lua" -P "${env:userprofile}/.config/lite-xl/plugins"; }
Plugin ipc.lua je neophodan jer bez njega, svaki put kada otvoriš each file, on se otvara in a new instance.
Neko negde pomenu i scoop install Textadept kao takođe minimalistički pisan u Lua i C, ali nakon probe, već prilikom otvaranja je “inertniji” a da ne pominjem da su shortcut-ovi potpuno drugačiji od onoga što sam navikao.
Pokušavam da implementiram “root:switch-to-previous-tab” u Lite editoru
keymap.add_direct { [“ctrl+tab”] = “root:switch-to-next-tab”, }
[“root:switch-to-previous-tab”] = function(node) local idx = node:get_view_idx(core.active_view) idx = idx - 1 if idx < 1 then idx = #node.views end node:set_active_view(node.views[idx]) end,
core.set_active_view(core.last_active_view)
[“treeview:toggle-focus”] = function() if not core.active_view:is(TreeView) then if core.active_view:is(CommandView) then previous_view = core.last_active_view else previous_view = core.active_view end
Lite vs Lite-XL
Lite je definitivno još brži i meni se kao takav još više sviđa. Međutim, odmah isplivavaju neke razlike, na primer: priliko izlaza ne snimi “Untitled” fajlove nigde, nema osnovne neke ikonice. Iako ne volim kada “preuzeti” projekat postane popularniji od orginala, ipak mislim da je ime adekvatno i da ima dosta podešavanja u pravom smeru u Lite-XL verziji.
lite-xl/lite-xl-plugin-manager: A lite-xl plugin manager. https://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/latest https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-windows.exe
lite-xl/lite-xl-plugins: Plugins for the Lite XL editor juliardi/lite-xl-treeview-menu-extender: Extend Lite XL’s treeview menu vincens2005/lite-formatters: Code formatters for https://github.com/rxi/lite and https://github.com/franko/lite-xl
lpm lite-xl add
scoop install https://gist.githubusercontent.com/cvladan/416c1945c9e446a6fc64ba766d6ee4ef/raw/lite-xl-plugin-manager.json
- napiši jednom tekst o espanso, odnosno koje shortcutove ti držiš
lpm lite-xl add 2.1.1 $(scoop prefix lite-xl-addons)
“${env:userprofile}/.config/lite-xl/plugins”
lpm lite-xl add 2.1.1 “${env:userprofile}/scoop/apps/lite-xl-addons/current”
Problem:
-
otvori novi fajl kao admin i pokreni sa F4, on ne može da edituje to! to je bilo samo što je ukljuena opcija “Trim Empty End Lines”. Ne kapiram zašto, ali rešeno.
-
Lite-XL hot-exit i tu beše neki problem? ili onon ručno podešavanje. ili napravi plugin?
-
kada zatvoriš poslednji fajl, ne zatvori se editro sa njim. to može lako da se isprogramira
why was the lite-xl fork of lite created · lite-xl/lite-xl · Discussion #74 rxi/lite: A lightweight text editor written in Lua Meet the Lite XL Text Editor – SUDOBITS Blog
One-Megabyte Lite-XL Instead of Heavyweight Visual Studio Code | by Shalitha Suranga | Level Up Coding Bored of VS Code? Try Lite-XL. Your tired computer will ask you to try… | by Shalitha Suranga | Better Programming
lite-xl/console: A console plugin for the lite text editor takase1121/lite-xl-finder: fuzzy finder for lite-xl
Why not Lua?
A Look at the Design of Lua | Hacker News Stay away from Lua and use Python, Go, Node, Rust or even C in new projects. Thi… | Hacker News Why we chose Rust over Lua for our project? | by Oviyum | Medium
Press F10 to line-wrap aka word-wrap. It is not turned on by default.
I didn’t want to try Lite-XL on macOS because it is installed using “sudo port install lite-xl”, which then prompts for the installation of a bunch of packages.