Adam Harrison
b42708fe56
Cleaned up functions.
2021-06-18 17:33:55 -04:00
jgmdev
e070dbebc1
Fix undeclared NagView findindex() by moving it to common.
2021-06-13 21:28:29 -04:00
Francesco
98164f6d4f
Integrate mkdirp function in common module ( #265 )
...
Move the function mkdirp into common to be generally available.
Use the new common.mkdirp from create_user_directory() from
core/init.lua replacing previous parent directory creation code
within the function.
The previous mkdirp function did not work on Windows where
absolute paths starts with a drive letter. The code from
create_user_directory() did not have this problem but was wrong
in the way it was creating the nested directories.
The new implementation in common.mkdirp fix both problems.
2021-06-13 19:50:42 +02:00
Francesco Abbate
f17f5a4d6d
Fix problem with filenames missing normalization
2021-05-24 15:58:49 +02:00
Adam
c7b1a6f53e
Allowed for optional boolean to better match filenames. ( #180 )
2021-05-16 19:23:17 +02:00
tsukanov-as
f637dc4db8
Fix creating a new file ( #179 )
2021-05-06 16:53:46 +02:00
Francesco Abbate
d63afe02ed
Use string.find only in common.home_encode
...
Should be slightly more efficient.
2021-05-05 10:34:48 +02:00
Adam
dd604c1336
Nil check, to avoid issues for files that don't have filenames yet (new files, etc..) ( #169 )
2021-05-01 22:25:39 +02:00
Francesco Abbate
5766329313
Fix filename problem
...
Close #163
2021-05-01 19:27:29 +02:00
Francesco Abbate
5bf7abf23d
Ensure filename are store relative to project directory
2021-03-06 23:36:05 +01:00
Francesco Abbate
1ce1c114ba
Fix reload module problem on windows
2021-02-17 19:20:00 +01:00
Francesco Abbate
6369a7f760
Use tilde expansion when running save-as command
2021-02-16 22:54:00 +01:00
Francesco Abbate
fcf763fe9c
Fix problem when project directory has a trailing slash
2021-01-10 12:56:15 +01:00
Francesco Abbate
8d4ba0cb34
Fix behavior when selecting project directories
2021-01-03 15:35:35 +01:00
Francesco Abbate
0e263af3c6
Create common.serialize function
2020-12-30 13:32:25 +01:00
Francesco Abbate
ddd56ec615
Add command to remove a directory from the project
...
In addition directories can be removed with a mouse middle-click in the
tree view pane.
2020-12-28 15:51:16 +01:00
Francesco Abbate
9a12d47afd
Add HOME directory expansion also for open file command
2020-12-20 00:31:49 +01:00
Francesco Abbate
4401f33c19
Move HOME expand/encode into common module
2020-12-19 23:53:29 +01:00
Francesco Abbate
a3adfeb8f6
Begin reworks of project manager
2020-12-07 18:06:58 +01:00
rxi
95bdb07d49
Removed unused variables
2020-05-07 22:40:34 +01:00
rxi
ae42176953
Renamed `common.matches_pattern` => `common.match_pattern`
2020-05-07 14:18:46 +01:00
rxi
3057786ce2
Moved `matches_pattern` from `syntax` to `common`
2020-05-07 10:27:37 +01:00
rxi
05ca43e637
Changed rounding type on common.draw_text()
2020-05-03 16:48:35 +01:00
rxi
c658b6f1ca
Removed underscore from start of globals, added VERSION
...
eg. `_SCALE` => `SCALE`
prevents conflict with lua's own _NAME globals
2020-04-25 09:58:01 +01:00
rxi
59881f81a6
Fixed common.path_suggest() for system.list_dir() changes
2020-04-21 23:47:01 +01:00
rxi
d8c4bfa6ba
Initial commit
2019-12-28 11:17:56 +00:00