Compare commits
No commits in common. "e6a42ce657a85bb025f516cf042fbb6438b722db" and "abc4879688e88d4d9aea81de85eedc22e3520bbf" have entirely different histories.
e6a42ce657
...
abc4879688
4 changed files with 3 additions and 17 deletions
|
|
@ -37,7 +37,6 @@ Bugs fixed in this fork that remain open upstream.
|
||||||
| [#710](https://github.com/stevearc/oil.nvim/issues/710) | buftype empty on BufEnter | [#10](https://github.com/barrettruth/canola.nvim/pull/10) ([`01b860e`](https://github.com/barrettruth/canola.nvim/commit/01b860e)) |
|
| [#710](https://github.com/stevearc/oil.nvim/issues/710) | buftype empty on BufEnter | [#10](https://github.com/barrettruth/canola.nvim/pull/10) ([`01b860e`](https://github.com/barrettruth/canola.nvim/commit/01b860e)) |
|
||||||
| [#213](https://github.com/stevearc/oil.nvim/issues/213) | Max file size for preview | [#85](https://github.com/barrettruth/canola.nvim/pull/85) ([`4b32ada`](https://github.com/barrettruth/canola.nvim/commit/4b32ada)) |
|
| [#213](https://github.com/stevearc/oil.nvim/issues/213) | Max file size for preview | [#85](https://github.com/barrettruth/canola.nvim/pull/85) ([`4b32ada`](https://github.com/barrettruth/canola.nvim/commit/4b32ada)) |
|
||||||
| [#473](https://github.com/stevearc/oil.nvim/issues/473) | Show hidden when dir is all-hidden | [#85](https://github.com/barrettruth/canola.nvim/pull/85) ([`2fe4e78`](https://github.com/barrettruth/canola.nvim/commit/2fe4e78)) |
|
| [#473](https://github.com/stevearc/oil.nvim/issues/473) | Show hidden when dir is all-hidden | [#85](https://github.com/barrettruth/canola.nvim/pull/85) ([`2fe4e78`](https://github.com/barrettruth/canola.nvim/commit/2fe4e78)) |
|
||||||
| [#486](https://github.com/stevearc/oil.nvim/issues/486) | Directory sizes show misleading 4.1k | [#87](https://github.com/barrettruth/canola.nvim/pull/87) ([`2aff22a`](https://github.com/barrettruth/canola.nvim/commit/2aff22a)) |
|
|
||||||
|
|
||||||
## Open upstream PRs
|
## Open upstream PRs
|
||||||
|
|
||||||
|
|
@ -110,7 +109,7 @@ Bugs fixed in this fork that remain open upstream.
|
||||||
| [#473](https://github.com/stevearc/oil.nvim/issues/473) | fixed | Show all hidden files if dir only has hidden — `view_options.show_hidden_when_empty` |
|
| [#473](https://github.com/stevearc/oil.nvim/issues/473) | fixed | Show all hidden files if dir only has hidden — `view_options.show_hidden_when_empty` |
|
||||||
| [#479](https://github.com/stevearc/oil.nvim/issues/479) | open | Harpoon integration recipe |
|
| [#479](https://github.com/stevearc/oil.nvim/issues/479) | open | Harpoon integration recipe |
|
||||||
| [#483](https://github.com/stevearc/oil.nvim/issues/483) | not actionable | Spell downloads depend on netrw — fixed in [neovim#34940](https://github.com/neovim/neovim/pull/34940) |
|
| [#483](https://github.com/stevearc/oil.nvim/issues/483) | not actionable | Spell downloads depend on netrw — fixed in [neovim#34940](https://github.com/neovim/neovim/pull/34940) |
|
||||||
| [#486](https://github.com/stevearc/oil.nvim/issues/486) | fixed | Directory sizes show 4.1k — [#87](https://github.com/barrettruth/canola.nvim/pull/87) ([`2aff22a`](https://github.com/barrettruth/canola.nvim/commit/2aff22a)) |
|
| [#486](https://github.com/stevearc/oil.nvim/issues/486) | open | All directory sizes show 4.1k |
|
||||||
| [#492](https://github.com/stevearc/oil.nvim/issues/492) | not actionable | j/k remapping question — answered in comments |
|
| [#492](https://github.com/stevearc/oil.nvim/issues/492) | not actionable | j/k remapping question — answered in comments |
|
||||||
| [#507](https://github.com/stevearc/oil.nvim/issues/507) | not actionable | lacasitos.nvim conflict on Windows — cross-plugin + Windows-only, no actionable fix |
|
| [#507](https://github.com/stevearc/oil.nvim/issues/507) | not actionable | lacasitos.nvim conflict on Windows — cross-plugin + Windows-only, no actionable fix |
|
||||||
| [#521](https://github.com/stevearc/oil.nvim/issues/521) | open | oil-ssh connection issues |
|
| [#521](https://github.com/stevearc/oil.nvim/issues/521) | open | oil-ssh connection issues |
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,6 @@ file_columns.size = {
|
||||||
if not stat then
|
if not stat then
|
||||||
return columns.EMPTY
|
return columns.EMPTY
|
||||||
end
|
end
|
||||||
if entry[FIELD_TYPE] == 'directory' then
|
|
||||||
return columns.EMPTY
|
|
||||||
end
|
|
||||||
if stat.size >= 1e9 then
|
if stat.size >= 1e9 then
|
||||||
return string.format('%.1fG', stat.size / 1e9)
|
return string.format('%.1fG', stat.size / 1e9)
|
||||||
elseif stat.size >= 1e6 then
|
elseif stat.size >= 1e6 then
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ local s3fs = require('canola.adapters.s3.s3fs')
|
||||||
local util = require('canola.util')
|
local util = require('canola.util')
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local FIELD_TYPE = constants.FIELD_TYPE
|
|
||||||
local FIELD_META = constants.FIELD_META
|
local FIELD_META = constants.FIELD_META
|
||||||
|
|
||||||
---@class (exact) canola.s3Url
|
---@class (exact) canola.s3Url
|
||||||
|
|
@ -85,11 +84,7 @@ s3_columns.size = {
|
||||||
local meta = entry[FIELD_META]
|
local meta = entry[FIELD_META]
|
||||||
if not meta or not meta.size then
|
if not meta or not meta.size then
|
||||||
return ''
|
return ''
|
||||||
end
|
elseif meta.size >= 1e9 then
|
||||||
if entry[FIELD_TYPE] == 'directory' then
|
|
||||||
return ''
|
|
||||||
end
|
|
||||||
if meta.size >= 1e9 then
|
|
||||||
return string.format('%.1fG', meta.size / 1e9)
|
return string.format('%.1fG', meta.size / 1e9)
|
||||||
elseif meta.size >= 1e6 then
|
elseif meta.size >= 1e6 then
|
||||||
return string.format('%.1fM', meta.size / 1e6)
|
return string.format('%.1fM', meta.size / 1e6)
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ local util = require('canola.util')
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local FIELD_NAME = constants.FIELD_NAME
|
local FIELD_NAME = constants.FIELD_NAME
|
||||||
local FIELD_TYPE = constants.FIELD_TYPE
|
|
||||||
local FIELD_META = constants.FIELD_META
|
local FIELD_META = constants.FIELD_META
|
||||||
|
|
||||||
---@class (exact) canola.sshUrl
|
---@class (exact) canola.sshUrl
|
||||||
|
|
@ -153,11 +152,7 @@ ssh_columns.size = {
|
||||||
local meta = entry[FIELD_META]
|
local meta = entry[FIELD_META]
|
||||||
if not meta or not meta.size then
|
if not meta or not meta.size then
|
||||||
return ''
|
return ''
|
||||||
end
|
elseif meta.size >= 1e9 then
|
||||||
if entry[FIELD_TYPE] == 'directory' then
|
|
||||||
return ''
|
|
||||||
end
|
|
||||||
if meta.size >= 1e9 then
|
|
||||||
return string.format('%.1fG', meta.size / 1e9)
|
return string.format('%.1fG', meta.size / 1e9)
|
||||||
elseif meta.size >= 1e6 then
|
elseif meta.size >= 1e6 then
|
||||||
return string.format('%.1fM', meta.size / 1e6)
|
return string.format('%.1fM', meta.size / 1e6)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue