takase1121
d20a9c3faf
use luaL_checkudata() instead of lua_touserdata
2021-07-08 17:43:44 +08:00
takase1121
d4673f065a
remove default read buffer size
...
This prevents newcomers from doing process:read(BUF_SIZE) and cause the
whole process to hang because process:read() accepts a stream parameter
2021-07-08 15:25:31 +08:00
takase1121
8995a2614f
remove unecessary assertion
2021-07-08 15:05:12 +08:00
takase1121
60d3f2cac1
add __tostring metamethod
2021-07-08 14:55:43 +08:00
takase1121
4815cff503
kill process if EPIPE is encountered
2021-07-08 14:43:05 +08:00
takase1121
e0099485ab
kill process when pipe is closed
2021-07-08 11:29:01 +08:00
takase1121
81157b5d4f
fix memory leak when reproc_start() fails
2021-07-08 11:28:36 +08:00
takase1121
453df84c82
fix bugs with args and env array
2021-07-08 11:21:11 +08:00
takase1121
b38add8de5
move arg checking code to the top
2021-07-08 11:20:08 +08:00
takase1121
9e5b6c72a7
replace Process() constructor with process.start()
...
fixes wrong metatable and removes redundancy writing
process.Process()
2021-07-08 11:15:02 +08:00
takase1121
b07d37b89a
Merge branch 'dev' of github.com:lite-xl/lite-xl into process-refactor
2021-07-07 14:46:49 +08:00
takase1121
420bc2d88a
Merge branch 'master' of github.com:lite-xl/lite-xl into dev
2021-07-07 14:46:22 +08:00
takase1121
b8b41b7fa8
Merge branch 'dev' of github.com:lite-xl/lite-xl into process-refactor
2021-07-07 14:44:51 +08:00
takase1121
0059b4a1cc
remove duplicated constants
2021-07-07 12:37:07 +08:00
takase1121
8e9034b965
Merge branch 'process-refactor' of github.com:lite-xl/lite-xl into process-refactor
2021-07-07 01:18:52 +08:00
takase1121
116109f069
move constants to the process table
...
reduce code clutter because they're already namespaced
2021-07-07 01:17:11 +08:00
takase1121
050f131261
fix number of parameters passed to self:move_towards
...
self:move_towards(self) causes self to be passed twice, ignoring rate
2021-07-06 17:28:38 +08:00
takase1121
1b0a2bc1aa
add compile_commands.json to gitignore
...
Apparently ccls needs it to work, and it's usually located in project
root. I symlinked it from the build folder and now I should put it in
gitignore
2021-07-06 17:22:55 +08:00
Takase
57fca752a2
Merge branch 'dev' into process-refactor
2021-07-06 17:16:07 +08:00
takase1121
ccbf676f50
major refactor to the process API
...
- process.new() is replaced by the Process class
- Process() accepts redirection options and environment variables
- Process:read() does not accept `tries`
- Process:read_stdout() and process:read_stderr() is introduced
- Process:read() now accepts stream as it's first parameter
- Process:running() actually detects if process is running
- Process.returncode() returns the exit code (or exit SIGNAL on POSIX when available)
- constants are moved to process.constants
- process_t.L is removed
2021-07-06 17:00:41 +08:00
Adam
1a87d0e4fd
Merge pull request #323 from lite-xl/liquidev-multicursor-reset-blink
...
Reset blink timer when a new cursor is created
2021-07-04 19:31:40 -04:00
lqdev
e5b2a7cbe8
reset blink timer when a new cursor is created
2021-07-01 14:50:28 +02:00
Adam
f29b6d1cc8
Merge pull request #309 from redtide/git-line-endings
...
Set default documents line endings behavior
2021-06-30 11:13:42 -04:00
Adam
9126b5e64d
Merge pull request #313 from jgmdev/add-system-rmdir
...
Added `system.rmdir(path)`, and `common.rm(path, recursive)`
2021-06-29 17:44:58 -04:00
jgmdev
4188269cef
Added system.rmdir(path)
...
It is reported that the built-in lua function os.remove(path) does
not removes empty directories on windows. To fix this a system.rmdir
function is introduced that calls a native win32 function.
Also common.rm(path, recursively) was added which wraps system.rmdir()
to easily delete an entire folder with all its contents.
2021-06-28 11:07:27 -04:00
Adam Harrison
c2c59e9c99
Fixed XDG issue.
2021-06-28 10:44:40 -04:00
Adam
4d4c49e36e
Merge pull request #312 from redtide/application-name
...
Use lite-xl as project and executable names
2021-06-27 17:12:23 -04:00
takase1121
79581b551b
change double quotes to single quotes to reduce escaping
2021-06-27 23:14:48 +08:00
redtide
df63775dca
Use lite-xl as project and exacutable names
2021-06-25 22:54:02 +02:00
Adam Harrison
cc568e65fc
Changed over ctrl+w keybinding over to cmd+w, as per #311 .
2021-06-24 18:00:50 -04:00
redtide
36ff3b1c76
Renamed dev-utils directory to scripts
2021-06-24 22:53:14 +02:00
redtide
3f58e554ba
Reorganization of data resources
2021-06-24 22:53:14 +02:00
Adam
83a604dfb7
Merge pull request #296 from lite-xl/font-copy-api
...
Add a C API copy method for font_desc objects
2021-06-24 12:47:16 -04:00
redtide
8c71b35888
Set default documents line endings behavior
2021-06-24 14:00:04 +02:00
takase1121
022f92bcd4
do not terminate process when read fails
2021-06-24 16:01:45 +08:00
takase1121
9fa43dbdcb
Merge branch 'master' of github.com:lite-xl/lite-xl into dev
2021-06-23 18:37:15 +08:00
takase1121
257cb47cd1
fix wrongly spaced variable name
2021-06-23 18:29:38 +08:00
takase1121
ab0bdd5017
add generic read function
...
process_read and process_read_errors no longer contain redundant code
2021-06-23 18:23:19 +08:00
takase1121
b5e9e2a7bc
refactor process.c
...
- include api.h instead of individual #includes
- moved metatable name to API_TYPE_PROCESS
- moved read buffer size to READ_BUF_SIZE
2021-06-23 18:21:36 +08:00
takase1121
bbfb6167f1
add .ccls-cache to .gitignore
...
For that one user that uses ccls :)
2021-06-23 18:18:13 +08:00
jgmdev
88704c6ecb
[api/process] added missing fields and minor fix to pid()
2021-06-22 15:01:30 -04:00
takase1121
daa0720c6d
remove deprecated code
2021-06-22 16:09:36 +08:00
takase1121
dad6d3d218
fix undefined variable
2021-06-22 09:18:40 +08:00
jgmdev
69cea72f90
Merge branch 'master' into dev
2021-06-21 19:47:50 -04:00
Francesco Abbate
98663461bb
Merge branch 'master-fix'
2021-06-21 23:41:53 +02:00
Ulhar
a2cf0019ff
update application icon files
2021-06-21 23:29:14 +02:00
Adam Harrison
f9edca712d
Added in lineguide to core.
2021-06-21 23:21:07 +02:00
Francesco Abbate
1cf0f2009c
Add a C API copy method for font_desc objects
...
Add a renderer.font's method "copy" to clone the font object
by specifying an optional new size. In the size is not given
the size of the original object is used.
Should fulfill the request from issue #288 .
2021-06-21 11:18:52 +02:00
Adam Harrison
8b2fb67b9b
Fixed regex replace.
2021-06-20 22:24:20 -04:00
Adam Harrison
46e939a3e6
Fixed a minor bug.
2021-06-20 21:34:42 -04:00