Git Product home page Git Product logo

console's People

Contributors

rxi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

console's Issues

Login Shells?

Would be nice to have login shells in lite and execute whatever command you want, instead of executing a pre-defined script.

Sample build script availability

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()

Getting the output of executed script ?

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 ?

Pattern

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

opening files from console fails after files have been closed

To reproduce:

  • launch lite (no open documents)
  • ctrl+shift+p
  • Console: Run
  • ls
  • click on file-names in console view -> opens DocViews
  • close the views except console
  • click on file-name in console view -> error: tried to set active view to nil

workaround 1: also close console view and run command again
downside: console view opens now as split-view.

workaround 2:

  • ctrl+shift+p
  • instead of running a command, click on file-name in console-view -> opens DocViews

Strange behiavour

lite version:
1.05
OS/device including version:
Windows 10
Issue description:
Can't run console build-command.
Steps to reproduce:

  1. copy lite archive
  2. extract to C:/lite
  3. Navigate to the data/plugins folder and run the following command: git clone https://github.com/rxi/console
  4. navigate to project root folder and drag and drop into lite.exe or lite windows itself
  5. in lite press "ctrl+p" -> core: open project module
  6. copy+paste template below
  7. press "ctrl+s" to save file
  8. close editor and open again
  9. press "ctrl+b" to run build command
  10. fail

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:

  1. (if editor is preffered for current extension) open any file in root folder of project: project: build-project appears in list
  2. drag and drop into lite.exe: -> not
  3. drag and drop into window -> not

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" }

Using pushd and popd in batch script yields weird behaviour

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

Resizable console

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

Unicode support.

I don't know if this is console problem, but unicode symbols aren't displayed at all (just blank space).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.