Commit Graph

309 Commits

Author SHA1 Message Date
Felix Angell
be01667137 added a wip command palette; removed weird complex gui system 2018-04-29 00:09:09 +01:00
Felix Angell
fe3c3c44a9 cleanups; render re-order; wall of text test; simple selection rendering
selections can be created with the shift and arrow keys. note that this
does not actually do anything other than render a little box showing the
selection we've made.

also the box rendering isn't entirely accurate (mostly when you use the
up/left arrow key) as it doesnt handle negative values well yet.
2018-04-22 20:11:01 +01:00
Felix Angell
b263501c7c gitignore binary 2018-04-22 19:17:58 +01:00
Felix Angell
898092f5ce phi-editor > phi; fix toml config 2018-04-22 18:56:47 +01:00
Felix Angell
57a53bae05 name change + disclaimers 2018-04-22 18:43:01 +01:00
Felix Angell
c5e6adb967 Merge branch 'master' of github.com:felixangell/phi-editor 2018-04-22 18:38:19 +01:00
Felix Angell
f1c4edfec4 toml stuff 2018-04-22 18:38:01 +01:00
Felix Angell
5c09f60f1e
Merge pull request #50 from matsuu/patch-1 2018-04-22 11:03:18 +01:00
MATSUU Takuto
3c16a6727e
pkg-config is required on macOS 2018-04-22 10:35:31 +09:00
Felix Angell
b654a4918d go fmt 2018-04-21 19:50:31 +01:00
Felix Angell
a669134873 remove use of currentTimeMillis for the go time.Time stuff 2018-04-21 19:37:53 +01:00
Felix Angell
73bbc2a150 force a render to get font metrics; fixes #43 2018-04-21 19:22:55 +01:00
Felix Angell
112eb553b8 golang highlight := operator 2018-04-21 19:14:04 +01:00
Felix Angell
984f8e9362 added more symbols to c and go highlighters 2018-04-21 19:11:41 +01:00
Felix Angell
fb72830c6b signficant speedup in highlighter by compiling the regex once
i thought my little lazy regex compiling caching thing worked but
apparently not and the editor was still recompiling the regular
expressions every frame... they are now compiled when the editor is
loaded instead. this is ideal since the editor will crash on a bad
config rather than encountering a highlight and crashing then.

and obviously its a lot faster too! its hard to gauge the speed increase
since im running this editor in a VM, but the fps went from 30 to 60
frames per second after doing this so that seems good to me!
2018-04-21 19:05:20 +01:00
Felix Angell
159346ab91 cleanups to lex syntax highlighter thing 2018-04-21 18:58:21 +01:00
Felix Angell
33cf82bb0c started to split things into a sep. lexer 2018-04-21 18:45:10 +01:00
Felix Angell
172a7bd777 little hack to fix some syntax highlighter inconsistencies 2018-04-21 18:09:05 +01:00
Felix Angell
5bd152e44c multi-line pasting mostly works 2018-04-21 17:57:00 +01:00
Felix Angell
44199a632f added ctrl+V clipboard paste; fixed delete_line semantics 2018-04-21 17:42:18 +01:00
Felix Angell
05f1e4fcd3 moved the font loading into the config file
the font is now checked if it exists or not and this is thrown as an
error to the user if it does not
2018-04-21 17:25:28 +01:00
Felix Angell
264ec81fd6 dont seg fault when there is no highlighting info 2018-04-17 21:38:52 +01:00
Felix Angell
1e6fc83b89 docs and contributing files 2018-04-17 21:09:06 +01:00
Felix Angell
3a0938191f markdown syntax highlighting (headers)
only added semi support for headers
2018-04-17 21:04:18 +01:00
Felix Angell
03ae13931b go syntax highlighter keywords/types from spec 2018-04-17 20:52:33 +01:00
Felix Angell
e3ca29a5e1
Merge pull request #42 from Chyroc/add/cross-compile 2018-04-17 15:33:37 +01:00
Felix Angell
c2f1796bc2 delete line behaviour is fixed 2018-04-17 14:34:24 +01:00
Chyroc
c0710b2f5a Merge branch 'master' into add/cross-compile 2018-04-17 21:31:05 +08:00
Felix Angell
a8b2cf1f4c updated the readme 2018-04-17 14:23:51 +01:00
Felix Angell
c085e4e66e languages are now written to and loaded from "PHI_CONFIG_DIR/syntax/language_name.toml" 2018-04-17 14:20:22 +01:00
Chyroc
9936b67f06 fix not any of darwin, linux or windows 2018-04-17 21:16:24 +08:00
Chyroc
b76248a81c add cross compile 2018-04-17 21:06:29 +08:00
Felix Angell
8ece431fc4 update default configs 2018-04-17 13:50:08 +01:00
Felix Angell
09cf2a8f30
Merge pull request #41 from Chyroc/remove/DS_Store
remove DS_Store
2018-04-17 11:59:56 +01:00
Chyroc
5877276ddf remove gui/untitled 2018-04-17 18:54:28 +08:00
Chyroc
f249def7e2 remove DS_Store 2018-04-17 18:38:18 +08:00
Felix Angell
eb7c5b225b reimplemented flashing cursor; but disabled till it doesnt blink when cursor is moved. 2018-04-17 03:35:06 +01:00
Felix Angell
f44a2a0239 screenshot update 2018-04-17 03:09:01 +01:00
Felix Angell
d05a74cca1 c language: directives, string literals, single line comments 2018-04-17 03:06:26 +01:00
Felix Angell
63b109cb1c regexp highlighting now mostly works! 2018-04-17 02:53:12 +01:00
Felix Angell
abcb12f1c6
Merge pull request #35 from mattn/some-fix
Some fix for Windows
2018-04-17 02:35:44 +01:00
Yasuhiro Matsumoto
db1e92033a
start possibly be large than b.contents 2018-04-17 10:00:05 +09:00
Yasuhiro Matsumoto
c93373804d
use USERPROFILE instead of HOME for Windows 2018-04-17 09:59:46 +09:00
Yasuhiro Matsumoto
88b798517d
pass empty string into ioutil.TempDir
TempDir uses the default directory for temporary files if dir is empty
2018-04-17 09:59:31 +09:00
Yasuhiro Matsumoto
374ea255ec
use path/filepath instead of path 2018-04-17 09:57:44 +09:00
Yasuhiro Matsumoto
a4f032f4e4
fix config directory in README.md 2018-04-17 09:54:12 +09:00
Felix Angell
05e965b080 cleanups to delete line, slight improvements to syntax highlighting
note that the delete line is stil a little off behaviour-wise. the syntax highlighting is getting there and when its stable can be refactored to be a bit more flexible/polished
2018-04-16 23:25:19 +01:00
Felix Angell
cececb945b start of command palette stuff; cleaned up _some_ of the gui component semantics...
still kind of messy though, need to hack away at it on my main pc before i continue
anything properly.
2018-04-16 20:10:23 +01:00
Felix Angell
8b3ec8dda9 you can now toggle line numbers from displaying, fixes #28 2018-04-16 19:17:45 +01:00
Felix Angell
b9ed186212 added line numbers 2018-04-16 19:11:31 +01:00