Commit Graph

449 Commits

Author SHA1 Message Date
daa
08d8408adc Fix crush on startup (#17, #13)
Solution: on_resize/ui_attach events must always update model, so model manipulation commands will always works right
2017-10-11 18:55:29 +03:00
daa84
0f4234a622 Limit tab title len (fix #16) 2017-09-26 16:59:28 +03:00
daa84
dd62733e66 Fix gnome panel issues (#12)
Display icon for application
Allow application to be pinned
2017-09-22 18:05:12 +03:00
daa84
ea71ec2b3f Fix #12
Set default icon, update desktop file settings, show icon in about
dialog
2017-09-21 18:10:48 +03:00
daa
0ff5c29de2 Fix #11 2017-09-15 16:20:59 +03:00
daa84
faeac76607 Speed optimization 2017-09-14 18:34:08 +03:00
daa84
211ef0de58 Thread check improvement 2017-09-14 16:29:03 +03:00
daa84
3d8dcba9e6 Merge branch 'master' into render 2017-09-14 16:19:16 +03:00
daa84
3ddf1b2ec7 Fix resizing 2017-09-14 16:17:50 +03:00
daa
857f78fe51 Still problems with resize 2017-09-14 15:08:45 +03:00
daa84
90fad0fe9c Resize nvim on font change, not window 2017-09-13 18:34:18 +03:00
daa84
94747615af Move out resize/init code from draw handler 2017-09-13 17:40:43 +03:00
daa84
dc8d6d5a70 Support double_width chars 2017-09-13 12:39:02 +03:00
daa
31a0fea819 Small code update 2017-09-12 23:27:45 +03:00
daa84
531c900d66 Draw optimization 2017-09-12 18:28:01 +03:00
daa
39db875b6f Fix underline rendering 2017-09-12 15:09:17 +03:00
daa84
61fdb83427 Fix rendering, draw curved underline 2017-09-12 12:56:40 +03:00
daa
8b15361a84 Small optimization 2017-09-11 22:00:26 +03:00
Fabian Knorr
ae646507d4 Simplified header bar environment variable handling
Removed unnecessary comment
2017-09-11 20:52:28 +02:00
daa84
945cea6acf Clippy code cleanup 2017-09-11 18:31:15 +03:00
daa84
f7710ca912 Drawing optimization 2017-09-11 18:00:51 +03:00
Fabian Knorr
3f2386885b Optionally disable header bars with NVIM_GTK_NO_HEADERBAR=1 2017-09-10 20:56:35 +02:00
daa
ab6052705a Underline 2017-09-09 23:02:06 +03:00
daa
47ccbdcec5 Fix repaint issue 2017-09-09 22:44:28 +03:00
daa84
837fcb7b45 Fix redraw clip rect calculation 2017-09-08 18:26:16 +03:00
daa
a00d1ff65c Fix cursor repaint. 2017-09-07 22:53:32 +03:00
daa84
fab0002a56 Cursor rendering 2017-09-07 18:51:12 +03:00
daa84
e4bbce3be4 Rendering fix 2017-09-07 18:01:04 +03:00
daa84
7f05e11e84 Add new repaint logic 2017-09-07 17:48:10 +03:00
daa84
6963c7ab95 Starting update queue area code rewriting 2017-09-06 18:31:13 +03:00
daa84
ecae1d09c6 Draw background as items 2017-09-06 17:18:30 +03:00
daa84
2f1f4e02c3 Same attribute for same properties 2017-09-06 12:05:12 +03:00
daa
26493977be add fixmes 2017-09-05 20:31:52 +03:00
daa84
05dee3251f Get sizes from FontMetrics 2017-09-05 18:23:46 +03:00
daa84
bc31984362 Fix text coloring 2017-09-05 17:03:20 +03:00
daa84
c4ecd43ea0 Fix rendering 2017-09-04 18:32:12 +03:00
daa84
3bb326c8aa Fix repaint 2017-09-04 12:47:23 +03:00
daa84
f8a10b2c27 Fix crash 2017-09-04 12:20:03 +03:00
daa84
a591bda6ee Small fixes 2017-09-01 16:49:10 +03:00
daa84
e8b23f18f5 Fix render issues 2017-09-01 13:14:16 +03:00
daa84
40f5492ba8 reimplement merge 2017-08-31 18:37:55 +03:00
daa84
6e0909ea95 Small fixes 2017-08-28 18:05:58 +03:00
daa
e8161919a7 Render fixes 2017-08-27 22:29:43 +03:00
daa
8aeac2b819 Render fixes 2017-08-26 23:17:09 +03:00
daa
5cf2a6ca3b Test + fix 2017-08-26 19:53:37 +03:00
daa84
d6f6b04ca3 pango_itemize/pango_shape 2017-08-25 18:32:30 +03:00
daa84
17063d5216 Itemizer 2017-08-24 17:41:20 +03:00
daa84
aad5dc2112 Progress... 2017-08-23 12:45:56 +03:00
daa84
9120c02d83 Cleanup 2017-08-22 12:31:14 +03:00
daa84
b6e16cc969 Show text 2017-08-22 12:27:59 +03:00
daa84
c8da929681 Merge branch 'master' into render 2017-08-22 12:04:51 +03:00
daa84
3759a9121c Fix ImContext positioning 2017-08-22 11:59:06 +03:00
daa84
20327e4311 Merge branch 'imcontext' 2017-08-21 18:14:32 +03:00
daa84
197fa9534e Update versions 2017-08-21 18:10:52 +03:00
daa
6964d2e756 Progress.. 2017-08-20 21:09:57 +03:00
daa
a1fe06843e Fix underline color 2017-08-19 20:58:12 +03:00
daa84
063bd86fd7 pango_itemize/pango_shape implementation 2017-08-18 18:35:33 +03:00
daa84
b2ae40982f Cleanup 2017-08-17 17:06:09 +03:00
daa84
367a7815f8 Update to new lib versions, small cleanup 2017-08-16 12:41:22 +03:00
daa
ab98faa157 Merge branch 'master' into imcontext 2017-07-25 20:51:18 +03:00
daa84
80d89157e9 Fix clippy issues 2017-07-25 17:55:31 +03:00
daa
808b40d8a8 Merge branch 'master' into imcontext 2017-07-22 23:32:13 +03:00
daa
2106b69c15 Try to keep window size on font change 2017-07-22 16:27:17 +03:00
daa
d0ca58d7be Show loading message 2017-07-22 13:32:56 +03:00
daa84
4d3e9689be Code refactor 2017-07-13 18:12:20 +03:00
daa84
ba20088bc6 Fix compilation, show errors 2017-07-12 18:32:10 +03:00
daa84
7a46e1cac5 Starting point 2017-07-11 18:14:46 +03:00
daa84
0987518b58 Merge branch 'master' into imcontext 2017-07-11 12:33:55 +03:00
daa
bfee0c2ddf Merge branch 'mode-info-set' 2017-07-09 23:51:39 +03:00
daa
59a735c521 Fix quit by :q 2017-07-09 14:05:55 +03:00
daa
609d593db5 Draw gui cursor shape 2017-07-09 12:40:31 +03:00
daa
90dc2d4a53 Basic functions 2017-07-09 01:29:52 +03:00
daa
5a6f7d7581 Extract mode struct 2017-07-08 23:45:55 +03:00
daa
27b498a36d Neovim message process cleanup 2017-07-08 14:02:56 +03:00
daa
f8ddd0e732 Fix error message 2017-07-06 19:45:30 +03:00
daa84
a22594ac80 Starting point for mode_info_set processing 2017-07-06 17:50:55 +03:00
daa84
62a996f7db Add general nvim start error message (fix #8) 2017-07-06 12:41:35 +03:00
daa84
c2bdaac4ba Use open signal for files 2017-06-08 17:17:08 +03:00
daa
5260d78418 Initialize nvim after gui size is nown
ALos some code cleanup
2017-06-04 13:14:09 +03:00
daa84
be6c872280 Implement imcontext (also must fix #6 on linux) 2017-06-03 12:27:18 +03:00
daa84
d9b7b1a1cc Move menubar to app_menu, fix #7 2017-05-31 17:14:58 +03:00
daa
dcd8f48072 Tab switch event 2017-05-28 12:29:50 +03:00
daa
30f9ea98a1 Finish tabline implementation 2017-05-27 23:51:22 +03:00
daa
42538027bf Basic implementation of tabline 2017-05-27 19:50:25 +03:00
daa
68963ab628 Move option set from args to ginit.vim 2017-05-27 11:56:47 +03:00
daa84
f32ddbd69c Bg/Fg colors, fix popup in case of string wrap 2017-05-25 17:50:56 +03:00
daa84
5f7019dd0d Adapt size to contents 2017-05-24 17:51:16 +03:00
daa84
04c60cd61f Merge branch 'master' into popup-to-popover 2017-05-24 16:55:14 +03:00
daa
64c5fb1147 Add neovim-qt compatible layer (#5)
Add shim to rtp, add gtk gui flag
2017-05-24 14:01:51 +03:00
daa84
905b95343d Code reorganisation 2017-05-23 18:17:45 +03:00
daa84
14a154f628 Popup menu refactor 2017-05-22 18:38:36 +03:00
daa
6b1840549d Small code cleanup 2017-05-21 16:52:49 +03:00
daa
e9ef55cc96 Merge branch 'master' into popup-to-popover 2017-05-21 16:42:18 +03:00
daa
243df1cb72 Migrate to new libs versions 2017-05-21 15:47:29 +03:00
daa84
6f8ed8c1fe Use popover instead of popup 2017-05-17 18:25:50 +03:00
daa
c3a22dccf9 Resize window on font change 2017-05-16 22:37:13 +03:00
daa84
1f929023f4 Fix: resize some time does not work 2017-05-16 12:01:32 +03:00
daa84
9cf24e0950 set termguicolors 2017-05-15 17:44:37 +03:00
daa
48a16528a8 Change application id for debug mode 2017-05-14 00:30:34 +03:00
daa
31731c6f5b Fix display of wrong path 2017-05-13 21:59:56 +03:00
daa
9eccd4599d Project/oldfiles manager 2017-05-13 17:31:19 +03:00
daa84
1b1af1f8d8 Add log of nvim path in case of error 2017-04-27 18:49:09 +03:00
daa84
389f47738e Fix two times repaint 2017-04-26 12:35:09 +03:00
daa
83b5798f6f Small code cleanup 2017-04-23 13:42:05 +03:00
daa
37c8b48015 Fix italic repaint problem 2017-04-23 12:54:46 +03:00
daa
da82d2dd88 Fix test 2017-04-23 11:48:00 +03:00
daa
910baed09e Small code cleanup 2017-04-22 22:25:05 +03:00
daa
0f919ec390 Number of fixes 2017-04-22 22:18:59 +03:00
daa
552021d2be Make repaint by regions 2017-04-22 18:00:06 +03:00
daa
ee0af91043 Fix calculation error 2017-04-22 17:22:01 +03:00
daa
682660107a Multiple send 2017-04-22 14:31:06 +03:00
daa
0f19874048 Merge branch 'master' into draw_rect 2017-04-22 13:15:02 +03:00
daa
751c4eb6fa Fix repaint of underscore 2017-04-22 12:33:36 +03:00
daa
9413af5a4e Fix repaint underscore problem 2017-04-22 12:08:03 +03:00
daa
c7fd289816 Fix test 2017-04-21 22:15:32 +03:00
daa84
73e1980256 New joint rect algorithm 2017-04-21 18:26:06 +03:00
daa84
d0aa5f1cf7 Fix test 2017-04-21 13:02:47 +03:00
daa84
1c4e43a26c Implement external popup menu
As solution have some restrictions - it disabled by default
2017-04-19 11:40:53 +03:00
daa
b2ee054d6d Fix compilation warinings 2017-04-15 20:12:40 +03:00
daa
2443c7d705 Fix mouse scroll bug 2017-04-15 20:07:09 +03:00
daa84
ade1f9a5de Refactoring for remove global variables. 2017-04-12 13:12:05 +03:00
daa84
057fad0e87 Implement busy_start/stop cursor hiding 2017-04-03 18:16:04 +03:00
daa84
1a2e2a4d9b Fix #3 2017-04-03 15:54:36 +03:00
daa
e6c3b01cc9 Add key logging facility 2017-04-03 14:17:06 +03:00
daa
48e2287773 Solution try for #3 2017-04-02 22:09:03 +03:00
daa
b5b3d115e3 Make save dialog work 2017-04-01 21:25:33 +03:00
daa
0cd782991c Update dialog behaviour 2017-04-01 20:32:14 +03:00
daa
41ac04f5c2 Moved to new version of neovim-lib, that fixes some issues 2017-04-01 17:48:11 +03:00
daa
e717c92f33 First try to find changed values 2017-04-01 13:00:14 +03:00
daa
4b3d93e9a1 Make ctrl+6 work as ctrl+^ 2017-04-01 00:12:00 +03:00
daa
25b52c34ff Add menu 2017-03-31 23:19:50 +03:00
daa
6b4c1a9a39 Fix linux build 2017-03-31 22:04:10 +03:00
daa84
5f523b8896 Make shell global variable due to borrow check conflict 2017-03-31 13:22:05 +03:00
daa84
0bd7356cd6 Disable cursor when window not in focus 2017-03-31 12:49:14 +03:00
daa84
a04a035b84 Render optimization + fix resize bug 2017-03-30 18:25:54 +03:00
daa
be2626fb8d Use ui_check instead of real mutex 2017-03-26 14:34:38 +03:00
daa
e020a5825b Make cursor reset animation state on input 2017-03-26 00:38:22 +03:00
daa
e9839b641d Repaint speed optimization 2017-03-25 11:31:52 +03:00
daa
cd55351042 Optimization of cursor animation 2017-03-24 23:34:03 +03:00
daa
0c5d57346b Make only changed area repaintable 2017-03-24 22:23:22 +03:00
daa84
865054e36e Implement base cursor animation, still need a lot of improvements 2017-03-23 18:04:24 +03:00
daa84
75eac4bc7d Merge branch 'master' into cursor-anim 2017-03-23 16:54:02 +03:00
daa84
f337b63f1e Thoughts 2017-03-22 18:37:34 +03:00
daa84
7eb721bfcc Commit cursor changes 2017-03-22 18:37:18 +03:00
daa84
c458f90740 Exctract cursor code 2017-03-22 13:05:10 +03:00
daa
4e00df7b0b Merge branch 'invalidate-area' 2017-03-21 22:27:42 +03:00
daa84
e676af8f91 Finish area readrawing optimization 2017-03-21 13:10:55 +03:00
daa84
778cbd0af2 Clip Iterator 2017-03-20 18:18:08 +03:00
daa
975d0e5f83 Update application name 2017-03-19 16:51:27 +03:00
daa
c2a6ec88c7 fn from_area 2017-03-18 14:19:36 +03:00
daa
f7c088eca7 Cleanup 2017-03-18 13:21:42 +03:00
daa
ff4aa6c848 Fix scroll 2017-03-18 13:21:20 +03:00
daa
700c8cd522 Fix borrow error, rustfmt 2017-03-18 12:49:30 +03:00
daa
89e6600325 Invalidate rect passed to draw 2017-03-18 12:45:05 +03:00
daa
51dcd7f4e8 Repaint event on given area 2017-03-18 01:18:41 +03:00
daa
a92b42f784 Calculate changed area for given event 2017-03-17 23:38:12 +03:00
daa84
ba4e8bc3aa Implement mouse scroll, enable mouse by default 2017-03-16 18:12:56 +03:00
daa
f1e98a4899 Fix linux compilation 2017-03-16 15:03:00 +03:00
daa84
b1507a0334 Finish migration to shell.rs 2017-03-16 13:18:13 +03:00
daa84
61a429d2f1 Start extracting vim shell ui processing to shell file 2017-03-15 18:33:47 +03:00
daa
e719535d2a Fix two time run 2017-03-14 23:12:31 +03:00
daa
10afc750e8 Move back to insert mode after paste 2017-03-14 22:51:26 +03:00
daa
147483288b Fix rustfmt problem 2017-03-14 22:35:54 +03:00
daa
b910c9ba6a Rustfmt 2017-03-14 22:31:56 +03:00
daa
b7aff3e7ac Fix open file bug 2017-03-14 22:31:07 +03:00
daa84
fde94bd64a Fixes #1 Temproray fix that allows open single file
To make good fix wait for gtk-rs bindings udpate for optons/open support
inside GtkApplication
2017-03-14 12:37:06 +03:00
daa84
b68d2470c3 Fix compilation warnings 2017-03-14 10:48:04 +03:00
daa
7915541a7d Fix linux compilation error 2017-03-14 00:02:31 +03:00
daa84
d7b2c313f8 Fix application starting for windows 2017-03-13 18:03:32 +03:00
daa
baf86716d1 Use monospace font from gnome settings by default 2017-03-12 22:50:03 +03:00
daa
18fe7b9bbc Fix non ascii input 2017-03-12 18:11:43 +03:00
daa
b4deb823aa Support for double width chars 2017-03-12 12:20:18 +03:00
daa
df3b54b8a4 Changes due to api update of neovim-lib 2017-03-11 23:06:45 +03:00
daa84
c72eb65ebf Small rendering optimization 2017-03-10 16:50:37 +03:00
daa84
fbdf897d48 small speed improvements, undercurl render improvement 2017-03-10 12:32:58 +03:00
daa
df0f6a8478 Merge branch 'master' of https://github.com/daa84/neovim-gtk 2017-03-09 23:46:07 +03:00
daa
b7da77ca24 Small cleanup 2017-03-09 23:45:45 +03:00
daa84
37cd154f89 fix scroll bug 2017-03-09 16:51:34 +03:00
daa84
75e28ceedb Small cleanup 2017-03-09 16:18:13 +03:00
daa
35d2dd1868 Fix underline/curl rendering 2017-03-09 15:07:19 +03:00
daa84
0b7810ce5b Base code for underline/undercurl implementation
not usable for now, one reason is not finished gtk-rs bindings
2017-03-09 13:19:44 +03:00
daa84
2fe5b0a249 Use constants for icon size 2017-03-09 11:44:22 +03:00
daa
c3d30177b1 paste command improvement 2017-03-08 22:22:58 +03:00
daa
5316b37919 Improve paste action 2017-03-07 19:24:45 +03:00
daa84
efd9826324 Add --nvim-bin-path command line option 2017-03-07 18:20:48 +03:00
daa84
bde70d7797 Update UI. Fix quotes input. 2017-03-07 17:12:22 +03:00
daa
df496e2d27 small speed optimization 2017-03-07 14:36:29 +03:00
daa
714b6059f1 Make save button work 2017-03-07 13:52:01 +03:00
daa
f961bf045e Add ginit.vim support 2017-03-07 13:44:28 +03:00
daa
7f2e5835e4 Support font setup. Small improvements 2017-03-07 00:05:48 +03:00
daa84
fb8c55a4f0 Small rendering speed optimisation 2017-03-06 17:13:32 +03:00
daa84
15bb4e5e2d Use GtkApplication 2017-03-06 16:58:10 +03:00
daa84
3171a5d397 Fix windows resize 2017-03-06 13:03:13 +03:00
daa
2a9b71b0fb Move rendering to pangocairo 2017-03-06 01:28:07 +03:00
daa
265f525cb6 Move to new gtk-rs version 2017-03-05 20:52:46 +03:00
daa84
a948d6dbc7 default font update 2017-02-28 17:08:07 +03:00
daa84
f2ccb2c6ee Remove fix for old nvim 2017-02-28 11:53:56 +03:00
daa84
fa31e8b0b0 Make toolbar smaller 2017-02-27 18:09:27 +03:00
daa
b49d93dc96 cargo-fmt, version update 2017-02-26 22:33:44 +03:00
daa
f41d3dd55a Migrate to new neovim-lib version.
update dependencies versions, fix some new problems due to version
update
2017-02-26 22:31:13 +03:00
daa84
c7813afe19 Update version dependency, fix compilations 2016-06-23 17:32:30 +03:00
daa84
4e0d3e2e5a Quit from neovim - quits application 2016-05-05 17:27:45 +03:00
daa84
1a0adf0a82 Fix quit exception 2016-05-05 16:48:21 +03:00
daa84
b1d5e3a36d Implement mouse drag support 2016-05-05 11:44:21 +03:00
daa84
78caf6f340 Mouse calculation fix 2016-05-05 11:22:18 +03:00
daa
c8e78fd697 Enable mouse event 2016-05-05 10:23:04 +03:00
daa84
54449aed83 Some starting point on mouse implementation 2016-05-04 17:59:51 +03:00
daa84
2a566d1d51 Quit nvim 2016-05-04 11:52:57 +03:00
daa
60539e0ccf Edit mode cursor 2016-05-04 09:23:39 +03:00
daa
a11581748c Add cursor 2016-05-03 20:25:52 +03:00
daa
59b00b392a Don't process keys that was passed to nvim instance 2016-05-03 13:36:59 +03:00
daa
d071cabce6 Code style update 2016-05-03 13:34:36 +03:00
daa
f2911beee3 Fix resize to smaller size. 2016-05-03 13:30:36 +03:00
daa84
3b5e26f95c Resize underline nvim instance 2016-04-06 17:53:16 +03:00
daa84
118faaca25 Update key bindings, improve render of background highlight 2016-04-06 13:16:41 +03:00
daa84
209c71aa4b fix initial size 2016-04-06 11:31:00 +03:00
daa84
27669e035b Merge branch 'master' of ssh://daaparts.info/home/git/neovim-gtk 2016-04-06 11:20:45 +03:00
daa
71e0db64e7 make background and foreground colors to work 2016-04-06 01:04:40 +03:00
daa84
6c80fd3e8c fix keypress 2016-04-04 13:14:57 +03:00
daa
a19c28473e Resize from nvim settings 2016-04-04 01:34:44 +03:00
daa
b3c2744e2d Implement scroll 2016-04-03 18:13:18 +03:00
daa
0c64c43278 Fix colors, some update of buttons bindings, eol_clear implementation,
quit button
2016-04-03 16:04:52 +03:00
daa
3c45aff96e Input key map 2016-04-03 13:06:35 +03:00
daa
dc1539d0d3 Add key map converter table 2016-04-02 23:00:18 +03:00
daa
52ec77137d Use fixed width for any font character 2016-04-02 00:14:22 +03:00
daa84
a2813a84c7 add bold/italic settings 2016-04-01 12:34:55 +03:00
daa84
8a763c928e background / foreground highlight 2016-03-31 19:19:08 +03:00
daa84
8d2c22e571 Repaint + some basic input 2016-03-31 16:52:22 +03:00
daa
62eeeec201 Fix event processing 2016-03-31 15:08:32 +03:00
daa84
2d04cbbdc0 Make ui as thread local variable 2016-03-31 13:09:34 +03:00
daa84
183f600e1b resize implemented 2016-03-29 12:43:01 +03:00
daa84
ffed15e697 add clear method 2016-03-29 12:22:16 +03:00
daa84
d52311cafa implement put event 2016-03-28 18:05:10 +03:00
daa84
0b4504e6d7 Fix idle add problem 2016-03-28 17:14:10 +03:00
daa84
fae82271d1 First event 2016-03-28 17:03:21 +03:00
daa84
f553fd5f42 Build ui object as central point of all event processing 2016-03-28 13:09:31 +03:00
daa84
193b4d573c Implement mutex for ui thread idle function 2016-03-25 17:36:51 +03:00
daa84
e15727ff74 Start safe event call implementation 2016-03-25 12:51:28 +03:00
daa84
8e57752e97 Event loop 2016-03-24 12:21:27 +03:00
daa84
edaa867103 some small step to implement events listener 2016-03-23 18:22:28 +03:00
daa
b5265c41f6 Merge branch 'master' of ssh://daaparts.info/home/git/neovim-gtk 2016-03-23 14:59:40 +03:00
daa
3fc2c3322d Add events callback 2016-03-23 14:59:18 +03:00
daa84
c83fc54270 Merge branch 'master' of ssh://daaparts.info/home/git/neovim-gtk 2016-03-23 12:18:40 +03:00
daa
dc1bf55a46 Fix embed mode 2016-03-19 14:32:59 +03:00
daa
1043d9ac8e Nvim connection with events handler 2016-03-19 13:27:39 +03:00
daa
bd9dde064e Add screen model 2016-03-19 11:47:23 +03:00
daa84
9f8638baa6 Add toolbar button with images 2016-03-17 16:58:21 +03:00
daa84
64d4746545 ui refactoring/update 2016-03-16 18:25:25 +03:00
daa84
9d44052099 Initial gtk ui 2016-03-16 17:39:53 +03:00