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

4571 Commits

Author SHA1 Message Date
Tae Won Ha
398508f8ed
Bump version to v0.47.5-20240630.155444 2024-06-30 15:54:44 +02:00
Tae Won Ha
8f2a5e38fc
Update release notes 2024-06-30 15:53:22 +02:00
Tae Won Ha
4a6adfdb6b
Merge pull request #1078 from shanesmith/fix-non-global-cd
Fix lcd/tcd
2024-06-30 15:52:14 +02:00
Shane Smith
0c0a215202 Fix lcd/tcd
The following code path effectively turned any `lcd` or `tcd` into a
`cd`.

- `lcd` (or `tcd`) from nvim
- handled by `DirChanged` autocmd from NvimView.swift
- fires `.dirchanged` event
- handled by autoCommandEvent() in NvimView+UiBridge.swift
- calls cwdChanged() in NvimView+UiBridge.swift
- fires event `.cwdChanged`
- handled by `subscribeToNvimViewEvents()` in MainWindow.swift
- calls `cwdChanged()` in MainWindow+Delegates.swift
- fires even `.cd`
- handled by `typedReduce()` in MainWindowReducer.swift
- sets `state.cwdToSet`
- state change handled by `subscribeToStateChange()` in MainWindow.swift
- sets `self.neoVimView.cwd`
- handled by `var cwd` setter in NvimView.swift
- calls `nvimSetCurrentDir()` which sets global nvim cwd

This chain had to be broken somewhere. The `state.cwdToSet` line in
MainWindowReducer.swift has a comment that it's set to "ensure updates
also send to tab bar". To fix we remove that line and instead set the
tab bar cwd earlier in the cahin in NvimView+UiBridge.swift.

I don't normally use the custom tab bar or file browser, but have tested
them with this change and they seem to still work well.

Fixes #1027
2024-06-29 21:24:44 -04:00
Tae Won Ha
88517d94c6
Update appcast 2024-06-26 19:04:00 +02:00
Tae Won Ha
83bbc8274a
Bump version to v0.47.4-20240626.190016 2024-06-26 19:00:16 +02:00
Tae Won Ha
5c3ffe5645
Bump version to v0.47.4-20240626.185552 2024-06-26 18:55:52 +02:00
Tae Won Ha
a06e8cd9fc
Bump version to v0.47.4-20240626.184903 2024-06-26 18:49:03 +02:00
Tae Won Ha
b6906506c8
Update release notes 2024-06-26 18:48:15 +02:00
Tae Won Ha
33d55d314e
Merge pull request #1075 from shanesmith/fix-lua-stack-grow
Fix error "E1502: Lua failed to grow stack to 4001"
2024-06-26 18:46:51 +02:00
Shane Smith
b52c45baff Fix error "E1502: Lua failed to grow stack to 4001"
The `neoVimBuffer` function was updated in #1015 to used a lua script
through `nvimExecLua`. The script returns the dictionary retrieved from
the `getbufinfo` vim functions. The issue is that this can grow very
large, especially the `variables` entry, and can cause the lua stack to
grow too big and error.

In the end the `neoVimBuffer` function only needs a small handful of the
entries from `getbufinfo`, and so the lua script has been updated to
return a dictionary with only those entries.

At the same time the `hasDirtyBuffers` function was found to also return
the `getbufinfo` dictionary and was similarly fixed. It was also noticed
that the argument passed into `getbuinfo` here was a vim style
dictionary and not valid lua. This made `hasDirtyBuffers` fail and
caused an issue in `MainWindow.windowShouldClose` where selecting `File
> Close Window` would close the window even when dirty buffers were
present. The proper lua dictionary syntax is now used and fixes this
issues.

Fixes #1044
2024-06-22 22:34:35 -04:00
Tae Won Ha
3b8fbe973b
Add clarification about sign for universal neovim builds 2024-06-22 20:48:42 +02:00
Tae Won Ha
8118e9c311
Update deps 2024-06-21 18:17:34 +02:00
Tae Won Ha
bfab09e3b7
Update release notes 2024-06-20 21:05:05 +02:00
Tae Won Ha
d56803fafb
swiftformat 2024-06-20 19:07:12 +02:00
Tae Won Ha
5193a32cdb
Update appcast 2024-06-16 09:05:41 +02:00
Tae Won Ha
39b4618932
Bump version to v0.47.3-20240616.090032 2024-06-16 09:00:33 +02:00
Tae Won Ha
483a9e32d4
Update release notes 2024-06-16 08:54:32 +02:00
Tae Won Ha
82b6f33e53
Merge pull request #1072 from s-daveb/master
Make VimR tab colors match 1:1 with colorscheme.
2024-06-16 08:49:13 +02:00
Tae Won Ha
3be3579861
Merge pull request #1073 from shanesmith/fix-trackpad-scrolling
Fix trackpad scrolling
2024-06-16 08:47:23 +02:00
Shane Smith
ee45367be5 Fix trackpad scrolling
Fixes #1043
2024-06-14 21:42:41 -04:00
S David
6396944b81 Make VimR tab colors match 1:1 with colorscheme.
Additionally: Pick up system accent color properly when no colors set.

NvimView+Resize.swift:
  - Now transmitting Tabline, TablineFill  colors to the VimR
    UI, as well as TablineSel
  - Replace the built-in get() + nvim_get_hl() method because they don't
   have handle 'link' highlights properly (they return -1 for color code)
  - defined a new GetHiColor vimscript method that behaves like get()
       but also reads `link` type highlight groups by following the
       link.

NvimView+Types.swift:
  - visualForegroundColor is picked up from user accent color in System
    Settings using NSColor.Name("controlAccentColor")
  - Updated to include all additional colors

NvimView+UiBridge.swift:
 - Updated MessagePackUtils value code to accomodate new color code fields

Tabs/Tab.swift:
 - Get Selected tab color from TablineSel

Tabs/TabBar.swift:
 - Set tab bar color to TablineFill

Tabs/Theme.swift:
- Add new fields for TablineFill and TablineSel color corresponding to
  tab bar background and selected tab colors
- Minor rearranging of field order

VimR/Theme.swift:
- Add new fields for the tab bar, tab, and selected tab colors
2024-06-10 18:42:09 -04:00
Tae Won Ha
ef0b105056
Delete non-live-resizing code 2024-05-31 23:03:40 +09:00
Tae Won Ha
8d953fa0a0
Xcode shenanigans 2024-05-31 22:35:30 +09:00
Tae Won Ha
e22bd2d755
Xcode shenanigans 2024-05-31 22:33:32 +09:00
Tae Won Ha
fd63e8dace
Update appcast 2024-05-31 22:25:28 +09:00
Tae Won Ha
5aa941e6cb
Bump version to v0.47.2-20240531.221846 2024-05-31 22:18:46 +09:00
Tae Won Ha
ab3efd4a44
Update appcast 2024-05-31 22:16:51 +09:00
Tae Won Ha
79862b02e5
Bump version to snapshot/20240531.221229 2024-05-31 22:12:30 +09:00
Tae Won Ha
dc99ead2ef
Adapt API generation script 2024-05-31 22:11:23 +09:00
Tae Won Ha
aabd13c6ef
swiftformat 2024-05-31 17:12:54 +09:00
Tae Won Ha
36a18ed474
Always use live resizing 2024-05-31 17:11:37 +09:00
Tae Won Ha
071369cdc3
Make live resizing default behavior 2024-05-31 16:49:53 +09:00
Tae Won Ha
fd842a2500
Fix and adapt API generation
- Do not remove the `nvim_` prefix
2024-05-31 13:06:01 +09:00
Tae Won Ha
80fb7e3ba9
Update deps 2024-05-30 12:59:42 +09:00
Tae Won Ha
f3bc562276
Archive artifacts even if the job is not successful 2024-05-30 11:06:54 +09:00
Tae Won Ha
bdcde67821
Update readme and develop 2024-05-30 11:04:26 +09:00
Tae Won Ha
601f2b151b
Update DEVELOP.md 2024-05-29 15:22:48 +09:00
Tae Won Ha
3731fd8119
Record-only merge branch 'update-neovim' 2024-05-28 17:40:41 +09:00
Tae Won Ha
bbfaad2f57
Update DEVELOP.md 2024-05-28 17:31:47 +09:00
Tae Won Ha
b9b524679a
Update appcast 2024-05-28 17:19:48 +09:00
Tae Won Ha
6290e6fe00
Bump version to v0.47.1-20240528.171603 2024-05-28 17:16:03 +09:00
Tae Won Ha
a4be54cc49
Generate API 2024-05-28 17:13:50 +09:00
Tae Won Ha
565ac195aa
Update appcast 2024-05-28 17:03:39 +09:00
Tae Won Ha
a8eb56dd4a
Bump version to v0.47.0-20240528.165939 2024-05-28 16:59:40 +09:00
Tae Won Ha
e9877482b8
Update appcast 2024-05-28 16:54:50 +09:00
Tae Won Ha
dc55179145
Bump version to snapshot/20240528.165029 2024-05-28 16:50:29 +09:00
Tae Won Ha
56c9a4a8f4
Use fresh venv 2024-05-28 16:50:02 +09:00
Tae Won Ha
dfe6b3d30c
Bump version to snapshot/20240528.145401 2024-05-28 14:54:02 +09:00
Tae Won Ha
9f72723543
Bump version to snapshot/20240528.135938 2024-05-28 13:59:38 +09:00