rxi / console Goto Github PK
View Code? Open in Web Editor NEWA console plugin for the lite text editor
License: MIT License
A console plugin for the lite text editor
License: MIT License
First I'm sorry if I'm typing this in the wrong place, I'm new to github. Second, I'm using google translator, so don't look at the quality of the translation.
In the gif example, a lua script is used for love2d, in this script there is everything necessary for a good development in it, from compilation to outputs in the terminal. Would it be possible to provide this same script used in the gif for download on github? The example script is useful, but not for large projects. Thank you in advance for your attention.
Marcos:Dev()
function console.toggle() visible = not visible end
Thanks
I don't know if this is console problem, but unicode symbols aren't displayed at all (just blank space).
How would one go about getting the output of the build script ?
Right now, I have a file like this:
local core = require "core"
local command = require "core.command"
local keymap = require "core.keymap"
local console = require "plugins.console"
local cmd = ""
if PLATFORM == "Windows" then
cmd = "./build.bat"
else
cmd = "./build.sh"
end
command.add(nil, {
["project:build-project"] = function()
core.log "Building..."
console.run {
cmd,
file_pattern = "(.*):(%d+):(%d+): (.*)$",
on_complete = function() core.log "Build complete" end,
}
end
})
keymap.add { ["ctrl+b"] = "project:build-project" }
Basically, the default in the example. But say I have errors in the code that is built by the build.bat(or sh) and I would want to see the errors in the lite console. How would one do that ?
Changed the issue because the original issue was fixed
lite version:
1.05
OS/device including version:
Windows 10
Issue description:
Can't run console build-command.
Steps to reproduce:
I've noticed strange thing with command palette (ctrl+shift+p) looks like drag and drop doesn't load project module into editor, you can check this with command palette list:
here is my config:
local core = require "core"
local command = require "core.command"
local keymap = require "core.keymap"
local console = require "plugins.console"
command.add(nil, {
["project:build-project"] = function()
core.log "Building..."
console.run {
command = "godot",
file_pattern = "(.*):(%d+):(%d+): (.*)$",
on_complete = function() core.log "Build complete" end,
}
end
})
keymap.add { ["ctrl+b"] = "project:build-project" }
When having a batch script that uses the pushd and popd commands, the other commands in the script don't seem to be called(i.e. the file doesnt build given this file):
@echo off
if not exist build mkdir build
pushd build
rm app.exe
gcc ..\\src\\main.c -o app.exe
popd
the script works in normals cmd.exe
To reproduce:
workaround 1: also close console view and run command again
downside: console view opens now as split-view.
workaround 2:
Someone can give a pattern to get file, line col from this:
D:\Files\Desktop\lite-xl\compiler\PugReady.sma(202) : error 017: undefined symbol "cmd_target2"
Thanks
I'd really like to be able to resize the console (in my case to make it take less room), like the treeview is resizeable
Would be nice to have login shells in lite and execute whatever command you want, instead of executing a pre-defined script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.