1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-18 11:11:34 +03:00
Commit Graph

982 Commits

Author SHA1 Message Date
Tae Won Ha
1e9fe40f9c
Make use of automatic conversion between CGFloat and Double 2021-12-23 19:40:14 +01:00
Tae Won Ha
30b5ee7e4c
Make delegate weak 2021-12-23 14:27:12 +01:00
Tae Won Ha
226bc73c7b
Reformat 2021-12-23 14:19:40 +01:00
Tae Won Ha
d442e6021b
Add NvimViewDelegate for menu item key equivalent handling 2021-12-23 14:16:37 +01:00
Tae Won Ha
9b35ebb3be
Reformat 2021-12-23 14:04:50 +01:00
Tae Won Ha
351a08da23
Update neovim to 0.6.0 2021-12-01 19:09:59 +01:00
Kerberos
f50882e59a Fix <Cmd + .> don't trigger keydown event. 2021-11-09 11:20:32 +08:00
Tae Won Ha
f503b9e47e
GH-405 Vertically center-align text when linespacing > 1 2021-11-06 14:06:07 +01:00
Tae Won Ha
15ebbd4ee2
Merge remote-tracking branch 'origin/pr/805' into 805
- Did not change AttributesRunDrawer since it breaks the vertical
  positioning with linespacing = 1.0.

 Conflicts:
	NvimView/Sources/NvimView/AttributesRunDrawer.swift
	NvimView/Sources/NvimView/FontUtils.swift
2021-11-06 13:34:33 +01:00
Tae Won Ha
0065e0dd44
Merge remote-tracking branch 'origin/pr/874' into develop 2021-11-06 08:48:08 +01:00
Tae Won Ha
5972bbf6d2
Generate sources (did not produce changes) 2021-11-05 19:15:26 +01:00
Tae Won Ha
a67ad89cd7
Update SPM deps 2021-11-04 22:06:28 +01:00
solawing
65ff615dba feat: draw insert marked text without accutally into vim
this commit fixes following issues:

1. use `-`, `=`, `arrow key` to select candidate. which shouldn't be
   handle by vim
2. use `left`, `right` to move in marked text by word. which shouldn't
   be handle by vim directly
3. though inserting marked text directly into UGrid cells, bypass vim
   key mapping system, only the finall insertText be inserted into vim.
   so vim map like jk to esc won't affect input method.
   and when input i in normal mode when input method, I can press <CR>
   to confirm it and only i will send to vim.

 this is also the behaviour of mac terminal.
2021-10-31 17:27:30 +08:00
solawing
bb8b920d0c refactor: sink _unmarkText 2021-10-31 16:09:28 +08:00
solawing
918fc44889 chore: avoid crash in xcode 13.1 2021-10-31 16:09:28 +08:00
Raphael Luba
61cd8848dc Fix #750: incorrect cursor color when over search highlight 2021-06-23 23:27:07 +02:00
Tae Won Ha
dd955fb4f1
Remove Xcode warnings 2021-06-18 08:57:57 +02:00
Tae Won Ha
52d2aac3e0
Adapt to RxSwift 6.2 2021-06-18 08:55:23 +02:00
Tae Won Ha
b059010f55
Adapt to RxSwift 6.2 2021-06-18 08:54:53 +02:00
Tae Won Ha
7093d96b0f
Adapt to RxSwift 6.2 2021-06-18 08:54:21 +02:00
Tae Won Ha
d558d2c4cc
Adapt to RxSwift 6.2 2021-06-18 08:53:40 +02:00
Tae Won Ha
a793be2f53
Adapt to RxSwift 6.2 2021-06-18 08:53:23 +02:00
Tae Won Ha
f4626b7255
Adapt to RxSwift 6.2 2021-06-18 08:52:29 +02:00
Tae Won Ha
507e2d6973
Adapt to RxSwift 6.2 2021-06-18 08:51:22 +02:00
Tae Won Ha
6254fa99e4
Update RxSwift to 6.2 2021-06-18 08:41:16 +02:00
Tae Won Ha
d8439d8e64
Update deps
- up to RxSwift
2021-06-18 08:06:38 +02:00
Tae Won Ha
0ae565be95
GH-832 Re-revert neovim launching code 2021-02-20 14:06:48 +01:00
Tae Won Ha
f06fd354da
Adapt NvimView demo app to custom tabs 2021-02-20 13:50:43 +01:00
Tae Won Ha
d1787e23da
Fix support apps 2020-12-24 22:22:49 +01:00
Tae Won Ha
e6c0e543e4
Update nimble 2020-12-24 21:43:56 +01:00
Tae Won Ha
06afc5131d
Reformat 2020-12-24 17:48:27 +01:00
Tae Won Ha
5761687559
Update neovim 2020-12-24 16:00:26 +01:00
Tae Won Ha
b719809402
WIP 2020-12-24 13:21:35 +01:00
Tae Won Ha
9754fdc7bf
Restructure a bit 2020-12-24 12:15:36 +01:00
Tae Won Ha
be2895bbe4
Update neovim 2020-12-24 10:36:24 +01:00
Tae Won Ha
2d2108e74b
Add self 2020-12-20 16:06:56 +01:00
Tae Won Ha
2812877cee
Ignore error when setting guifont at the very beginning 2020-12-20 16:05:12 +01:00
Tae Won Ha
18a9c93e68
Update neovim 2020-12-20 15:53:11 +01:00
Tae Won Ha
9ee067a0d3
Move shell code to Commons 2020-12-20 15:24:57 +01:00
René Köcher
62be8668a5 vimFontSpec(fromFont:) and RemoteOption.fromFont() don't need Optionals 2020-12-20 12:07:40 +01:00
René Köcher
872d61b713 Add font(fromVimFontSpec:) as reversal to vimFontSpec(forFont:) 2020-12-20 11:54:45 +01:00
René Köcher
18742458a6 Include suggestions by @qvacua & apply swiftformat 2020-12-20 11:50:56 +01:00
René Köcher
a1d3d26765 Report invalid fonts back to NvimServer 2020-12-19 22:06:20 +01:00
René Köcher
1ca66cadf3 Add support to report option changes to NvimServer
Currently this is only implemented for font changes, but can be
extended to any other option added in the future.
2020-12-19 21:31:30 +01:00
René Köcher
84eef4a830 Implement support for 'set guifont' via optionSet.
This adds a framework to handle options set from NvimServer
and hooks into the optionSet() RPC api endpoint in NVimView.
Currently it handles `guifont` and `guifontwide` in the Server->View
direction. Changes are also reflected in VimR's Preferences dialog.

Not yet handled:
- sending the currently configured font as `guifont` to NvimServer
- sending an error to NvimSever if the font specification is invalid
- differenciation between `guifont` and `guifontwide`
2020-12-19 18:12:54 +01:00
Tae Won Ha
2ba1aaf526
Reformat 2020-12-12 21:48:43 +01:00
Tae Won Ha
5464229135
Reformat 2020-12-11 22:47:53 +01:00
Tae Won Ha
0b17d715dc
Set target for all queues 2020-12-11 22:43:59 +01:00
Tae Won Ha
55fd685c43
Reformat 2020-12-11 07:50:04 +01:00
Tae Won Ha
24922e78de
Reformat 2020-12-11 07:48:39 +01:00
Tae Won Ha
211e200ff4
Reformat 2020-12-10 22:01:51 +01:00
Tae Won Ha
91fe709e41
Reformat 2020-12-10 22:00:05 +01:00
Tae Won Ha
84c3362238
Reformat 2020-12-10 21:59:53 +01:00
Tae Won Ha
3166fe0b6c
Reformat 2020-12-10 21:59:34 +01:00
Tae Won Ha
0c49176474
Reformat 2020-12-10 21:58:38 +01:00
Tae Won Ha
a9e7d66d81
Reformat 2020-12-10 21:57:34 +01:00
Tae Won Ha
88d538fbc3
Reformat 2020-12-10 21:56:46 +01:00
Tae Won Ha
bebda22334
Reformat 2020-12-10 21:55:38 +01:00
Tae Won Ha
cd798dd2fb
Reformat 2020-12-10 21:54:59 +01:00
Tae Won Ha
b31a0e40e1
Reformat 2020-12-10 21:51:19 +01:00
Tae Won Ha
9d68cbddf1
Reformat 2020-12-10 21:50:54 +01:00
Tae Won Ha
da43da7ff0
Reformat 2020-12-10 21:50:40 +01:00
Tae Won Ha
78d95ce6b5
Reformat 2020-12-10 21:49:29 +01:00
Tae Won Ha
53ed730ec1
Reformat 2020-12-10 21:47:55 +01:00
Tae Won Ha
87436c1057
Reformat 2020-12-10 21:47:25 +01:00
Tae Won Ha
a601e22d83
Remove unnec' code 2020-12-10 18:16:27 +01:00
Tae Won Ha
44127691f2
Show warning 2020-12-10 07:29:30 +01:00
Tae Won Ha
baaf920089
Forward warning to main window 2020-12-09 22:14:51 +01:00
Tae Won Ha
6c7ff8a300
Get the error msg for tabclose 2020-12-09 22:05:01 +01:00
Tae Won Ha
e2a4fa713c
Add rudimentary closing 2020-12-09 08:26:11 +01:00
Tae Won Ha
128e573fd1
Fix selection background color 2020-12-07 21:24:24 +01:00
Tae Won Ha
f63f6cdb7e
Handle move tab to last index 2020-12-07 20:37:35 +01:00
Tae Won Ha
965637a3e2
Adapt example app 2020-12-06 21:23:23 +01:00
Tae Won Ha
17c13dc8bf
Handle reorder correctly 2020-12-06 20:45:07 +01:00
Tae Won Ha
f6a31ddc18
Implement drag reorder 2020-12-06 20:28:33 +01:00
Tae Won Ha
97eb7c8e49
Implement select 2020-12-06 19:50:05 +01:00
Tae Won Ha
e167fb7ddd
Reformat 2020-12-06 19:23:12 +01:00
Tae Won Ha
728974601a
Add stub select handler 2020-12-06 19:22:16 +01:00
Tae Won Ha
f0c9ff4a93
Handle tab resizing when title changes 2020-12-06 18:09:48 +01:00
Tae Won Ha
c550da8845
Display tabs 2020-12-06 16:50:49 +01:00
Tae Won Ha
0572cec9eb
WIP: Add tab representative 2020-12-06 16:08:12 +01:00
Tae Won Ha
438019bde1
Add dummy tabbar to main window 2020-12-06 13:27:42 +01:00
Tae Won Ha
7afcec5b98
Reformat 2020-12-06 13:03:30 +01:00
Tae Won Ha
b464ecf145
Forward tabbar param to NvimServer 2020-12-06 12:48:30 +01:00
Tae Won Ha
1f765f3b84
Add stub tabline handler 2020-12-06 10:29:31 +01:00
Tae Won Ha
ae606bb17c
wip 2020-12-06 09:19:34 +01:00
Tae Won Ha
c6ad5d0550
Use types locally 2020-12-06 08:42:46 +01:00
Tae Won Ha
13ebda767e
GH-812 Allow all fonts, but warn when variable width font is selected 2020-11-18 21:25:58 +01:00
Tae Won Ha
03b65167e0
Fix cursor coloring 2020-11-16 22:40:19 +01:00
Tae Won Ha
ac6bfb35cc
Reformat 2020-09-18 23:14:20 +02:00
Tae Won Ha
61d092e516
Reformat 2020-09-18 22:51:51 +02:00
Tae Won Ha
d9faae80c5
Reformat 2020-09-18 22:31:59 +02:00
Tae Won Ha
0e89b99e6f
Reformat using swiftformat 2020-09-18 16:01:55 +02:00
Tae Won Ha
ef0c29b9ef
Remove warnings 2020-09-18 12:59:26 +02:00
Tae Won Ha
9080ad8b5c
Make QOS of queue customizable in FifoCache 2020-09-18 11:02:25 +02:00
Tae Won Ha
3eb6fa1486
Make QOS of queues customizable 2020-09-18 10:57:35 +02:00
Tae Won Ha
6ab66b9045
Use weak self in subscriptions and catch all errors 2020-09-15 07:38:15 +02:00
Tae Won Ha
13ed1e28a8
Refactor build scripts 2020-08-21 08:59:40 +02:00
Tae Won Ha
aac853f2a8
Re-add some demos 2020-08-19 21:51:40 +02:00
Tae Won Ha
4f8c0391dd
Move EnvTest to Commons 2020-08-19 00:57:33 +02:00
Tae Won Ha
103db00027
Move NvimViewOld to Support 2020-08-19 00:46:56 +02:00
Tae Won Ha
879a19870b
Move some utils to Commons 2020-08-19 00:26:37 +02:00
Tae Won Ha
094893dfb4
Re-add NvimView tests, yet failing 2020-08-19 00:09:13 +02:00
Tae Won Ha
ca77228249
Extract Commons 2020-08-18 23:07:22 +02:00
Tae Won Ha
13676b377c
Extract RxPack as SPM 2020-08-18 19:37:39 +02:00
Tae Won Ha
333b8cbbe3
Use NvimServerTypes 2020-08-18 18:14:43 +02:00
Tae Won Ha
26c287f845
Copy NvimView.vim to plugin 2020-08-18 17:43:52 +02:00
Tae Won Ha
0088afb323
Ignore runtime and NvimServer binary 2020-08-18 17:34:36 +02:00
Tae Won Ha
fe8a9c92fa
Remove runtime and NvimServer binary 2020-08-18 17:34:22 +02:00
Tae Won Ha
8628473d67
Set VIMRUNTIME in NvimView (not in NvimServer) 2020-08-18 17:09:02 +02:00
Tae Won Ha
da4c7d0eb6
wip 2020-08-18 07:39:03 +02:00
Tae Won Ha
ce77012bbf
Make VimR compile 2020-08-17 23:38:06 +02:00
Tae Won Ha
842b69f91c
Make NvimView build 2020-08-17 23:28:24 +02:00
Tae Won Ha
29dc110962
Rename NvimView to NvimViewOld 2020-08-17 23:14:15 +02:00
Tae Won Ha
65c05472c3
Temporarily remove submodule 2020-08-17 23:13:02 +02:00
Tae Won Ha
de9ace6aae
Update neovim 2020-08-16 19:46:08 +02:00
Tae Won Ha
6293586f42
Use pre-built NvimServer 2020-08-16 13:58:32 +02:00
Tae Won Ha
884c73d5ab
Add download nvimserver script 2020-08-16 13:21:26 +02:00
Tae Won Ha
52859f1727
Add BlueSocket via SPM 2020-08-15 14:25:46 +02:00
Tae Won Ha
d0ccd572dd Bump version: snapshot/357 2020-08-12 20:48:28 +02:00
Tae Won Ha
c7a333f831
Do not set ${LANG} explicitly to en_US.UTF-8
- paste works without it since we're using the paste API call
2020-08-12 18:55:18 +02:00
Tae Won Ha
c9ba804ca4
Use paste API 2020-08-12 18:50:11 +02:00
Tae Won Ha
ccda659cb1
Use Any instead of AnyObject 2020-08-12 18:39:39 +02:00
Tae Won Ha
6747ce49a8
Update neovim 2020-08-12 18:30:00 +02:00
Tae Won Ha
ab1d5e7814
Update neovim 2020-08-07 07:50:48 +02:00
Tae Won Ha
2a5db9eb03
Include BlueSocket as source files
- It's only needed for msgpack-rpc
2020-08-06 18:20:23 +02:00
Tae Won Ha
df09a23749
Update neovim 2020-07-21 07:31:48 +02:00
Tae Won Ha
03255a6f2b
Add an env var test app 2020-07-12 13:15:21 +02:00
Tae Won Ha
9f7c891080 Bump version: snapshot/356 2020-07-09 18:35:13 +02:00
Johann Rudloff
9287a73768 Implement feedback from code review 2020-07-09 08:49:42 +02:00
Johann Rudloff
febf85f23d Add defaults for cursor shapes 2020-07-09 08:26:23 +02:00
Johann Rudloff
1deb2a424e Use effective foreground/background from defaultAttrs to correctly take into account reverted background (mostly under cursor) 2020-07-09 08:26:23 +02:00
Johann Rudloff
bcb894acc9 Replace cursor attributes with defaults from current cell to enable correct handling of guibg=NONE and guig=NONE 2020-07-09 08:26:23 +02:00
Johann Rudloff
4be4923fee Change cursor rendering to use configured shape and attribute colors. 2020-07-09 08:26:23 +02:00
Johann Rudloff
9bc6799e45 Make CursorShape Equatable, generate ModeInfo.description lazily. 2020-07-09 08:26:23 +02:00
Johann Rudloff
0c6aa55219 Store received ModeInfo list in NvimView 2020-07-09 08:26:23 +02:00
Johann Rudloff
d8c6ad2b5a Send mode_info_set messages from nvim to UiBridge 2020-07-09 08:26:23 +02:00
Tae Won Ha
e75170150e
Update neovim 2020-07-08 21:50:38 +02:00
Tae Won Ha
60c3e41ba6 Bump version: snapshot/355 2020-07-05 10:55:32 +02:00
Tae Won Ha
f8955ab573
Update neovim 2020-07-04 17:03:42 +02:00
Tae Won Ha
437ec2914a
Merge remote-tracking branch 'origin/develop' into update-neovim 2020-06-30 22:36:11 +02:00
Tae Won Ha
3c427ae7af Bump version: v0.33.1-354 2020-06-30 22:34:50 +02:00
Tae Won Ha
a5a5a7462a
Merge remote-tracking branch 'origin/develop' into update-neovim 2020-06-28 11:09:36 +02:00
Tae Won Ha
b954cb490e Bump version: snapshot/353 2020-06-28 11:08:37 +02:00
Tae Won Ha
210976cafd
Always compute flat indices
- simplify code
- fix initial emoji popup misplacement
2020-06-28 10:53:01 +02:00
Tae Won Ha
160b50b753
Update neovim 2020-06-23 22:35:33 +02:00
bren
bafbd50f8c better calculation of baselineOffset 2020-06-23 21:18:59 +01:00
bren
961300785f refactor cellSize into separate cellHeight and cellWidth methods
so they can be called individually
2020-06-23 21:18:59 +01:00
bren
b3877b0e92 vertically center-align text in linespacing, fixes #415 2020-06-23 21:18:59 +01:00
Tae Won Ha
12bca1634b
Merge remote-tracking branch 'origin/develop' into update-neovim 2020-06-23 20:23:34 +02:00