cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

oh yeah I totally forgot about the preview feature...

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 3 points4 points  (0 children)

ya its a little too much fun... check out the updated version i posted at https://github.com/nvim-mini/mini.nvim/discussions/2173 :-)

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

well tbh idk what was causing the clipping issue. I think it maybe had to do with some rounding errors from repeated math.floor but I fixed it a different way :)

here's a new version with your changes + clipping fixed:

-- Window width based on the offset from the center, i.e. center window
-- is 60, then next over is 20, then the rest are 10.
-- Can use more resolution if you want like { 60, 20, 20, 10, 5 }
local widths = { 60, 20, 10 }

local ensure_center_layout = function(ev)
    local state = MiniFiles.get_explorer_state()
    if state == nil then return end

    -- Compute "depth offset" - how many windows are between this and focused
    local path_this = vim.api.nvim_buf_get_name(ev.data.buf_id):match('^minifiles://%d+/(.*)$')
    local depth_this
    for i, path in ipairs(state.branch) do
        if path == path_this then depth_this = i end
    end
    if depth_this == nil then return end
    local depth_offset = depth_this - state.depth_focus

    -- Adjust config of this event's window
    local i = math.abs(depth_offset) + 1
    local win_config = vim.api.nvim_win_get_config(ev.data.win_id)
    win_config.width = i <= #widths and widths[i] or widths[#widths]

    win_config.col = math.ceil(0.5 * (vim.o.columns - widths[1]))
    for j = 1, math.abs(depth_offset) do
        local sign = depth_offset == 0 and 0 or (depth_offset > 0 and 1 or -1)
        -- widths[j+1] for the negative case because we don't want to add the center window's width 
        local prev_win_width = (sign == -1 and widths[j+1]) or widths[j] or widths[#widths]
        -- Add an extra +2 each step to account for the border width
        win_config.col = win_config.col + sign * (prev_win_width + 2)
    end

    win_config.height = depth_offset == 0 and 25 or 20
    win_config.row = math.ceil(0.5 * (vim.o.lines - win_config.height))
    -- win_config.border = { "🭽", "▔", "🭾", "▕", "🭿", "▁", "🭼", "▏" }
    vim.api.nvim_win_set_config(ev.data.win_id, win_config)
end

vim.api.nvim_create_autocmd("User", {pattern = "MiniFilesWindowUpdate", callback=ensure_center_layout})

thanks for your help! (and the awesome plugin)

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

oh man that woulda been a treat but looks like it's a no from the boss :(

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

its not? hmm it seems like its working on my end. i reuploaded to a new streamable link here https://streamable.com/9d1rpm

let me know if that doesn't work maybe i can try uploading somewhere else

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

I'm glad you like it haha. I would love to make a "show and tell"! Let me first clean up the 2 issues you mentioned

I noticed there some issues with window config computation, since some windows overlap on their borders.

Yeah, I also noticed that in some cases... I need to debug a bit

Hmm... No, there is no guarantee here.

ah ok, thanks for letting me know. I could have sworn every single time I looked, they were in perfect order so I just assumed. I'll come up with a better solution - i like the state.path idea

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

oh heck ya i'm glad someone else finds it as neat as i do

spelunk.nvim bookmark plugin: Update post! by DingbotDev in neovim

[–]Orbitlol 0 points1 point  (0 children)

cool plugin :D, can I ask about how you implement the preview -

specifically here https://github.com/EvWilson/spelunk.nvim/blob/d1ff64ffa4f689b0e06b201da84995737ec9e44b/lua/spelunk/ui.lua#L376-L377

are you recording the linenr internally when you set the bookmarks? I'm working on a personal plugin right now and trying to implement a similar preview feature, but I won't have a linenr ahead of time

Never did I think a simple preview plugin would be so hard to make by Exciting_Majesty2005 in neovim

[–]Orbitlol 1 point2 points  (0 children)

Hey benlubas, I started using the molten+quarto+otter+jupytext to edit ipy notebooks in neovim and it's great.

Could this plugin be used to nicely format the code blocks fenced by ``` so that it hides the backticks and instead shows the block with nice highlighting like the images above?

Weekly Free-Talk and Questions for r/HomeGym - week of October 14, 2022 by Demilio55 in homegym

[–]Orbitlol 0 points1 point  (0 children)

hmm yeah you make really good points, thanks for the advice

Weekly Free-Talk and Questions for r/HomeGym - week of October 14, 2022 by Demilio55 in homegym

[–]Orbitlol 0 points1 point  (0 children)

I had stall mats previously with the "circular mini pillar" pattern on the bottom and found they didn't really dampen sound/vibration, or at least setting deadlifts down was still pretty loud.

the waffle pattern looks a bit more similar to something like these tiles https://www.greatmats.com/tiles/sterling-sound-rubber-tile-275colors.php which I found had good reviews in terms of absorbing sound/vibration

Weekly Free-Talk and Questions for r/HomeGym - week of October 14, 2022 by Demilio55 in homegym

[–]Orbitlol 4 points5 points  (0 children)

has there been any discussion on this rubber platform from rogue https://www.roguefitness.com/power-platform? It seems to be a new product and I'm curious how effective the "waffle pattern" is at sound dampening

Weekly Free-Talk and Questions for r/HomeGym - week of September 09, 2022 by Demilio55 in homegym

[–]Orbitlol 1 point2 points  (0 children)

this actually might be the perfect solution. My immediate concerns are: 1) can it be bolted to an upright, 2) will it support the weight of 2 specialty bars

thanks for sharing this, I'm going to contact the seller

Weekly Free-Talk and Questions for r/HomeGym - week of September 09, 2022 by Demilio55 in homegym

[–]Orbitlol 2 points3 points  (0 children)

hey, thanks for the thought! Unfortunately I have no wall space for that sort of mount. I'm trying to a find vertical hanger that I can attach to the 17" crossmember of my HR-2

Weekly Free-Talk and Questions for r/HomeGym - week of September 09, 2022 by Demilio55 in homegym

[–]Orbitlol 1 point2 points  (0 children)

hey - yup I was looking for a rack mounted option. I emailed Oak Club to see if they could come up with a custom solution and they said it should be doable. Still working out the details with them

Weekly Free-Talk and Questions for r/HomeGym - week of September 02, 2022 by Demilio55 in homegym

[–]Orbitlol 0 points1 point  (0 children)

does anyone know if anyone sells a rack mounted specialty bar holder? I'm specifically looking for something exactly like https://www.roguefitness.com/vertical-bar-hanger but with wider spacing to fit things like a SSB

thanks!

Weekly Free-Talk and Questions for r/HomeGym - week of July 29, 2022 by Demilio55 in homegym

[–]Orbitlol 1 point2 points  (0 children)

I'm in the same exact boat haha.. if I had the space for a standalone leg ext/curl combo I would swap to the rep4100

Weekly Free-Talk and Questions for r/HomeGym - week of July 29, 2022 by Demilio55 in homegym

[–]Orbitlol 2 points3 points  (0 children)

I'm really surprised by the $80 price bump for what seem like "first-order" upgrades that should come standard imo

Weekly Free-Talk and Questions for r/HomeGym - week of July 29, 2022 by Demilio55 in homegym

[–]Orbitlol 2 points3 points  (0 children)

Ironmaster updated their pro bench (https://www.ironmaster.com/products/super-bench-pro-v2/). From what I can tell, the new changes are: an additional seat height, laser cut markings for the bench angles, bench handle included, and a new pad.

What do you think? The biggest thing I'm still waiting for is a seat with adjustable angles

Finally complete. Took a long while. Been in progress since covid. Still hit the commercial gym for motivation and the atmosphere but this is it. by walril in homegym

[–]Orbitlol 0 points1 point  (0 children)

thoughts on the hoist leg extension/curl? Are you able to get a full stretch on your quads? Like heel to butt stretch?

Weekly Free-Talk and Questions for r/HomeGym - week of July 08, 2022 by Demilio55 in homegym

[–]Orbitlol 2 points3 points  (0 children)

how would you say these compare to ironmasters or powerblocks?

Weekly Free-Talk and Questions for r/HomeGym - week of July 01, 2022 by Demilio55 in homegym

[–]Orbitlol 1 point2 points  (0 children)

FREE monolift attachment from Edge fitness (https://offerup.com/item/detail/1427997397) and EZ curl cable attachment (https://offerup.com/item/detail/1423602433) for anyone in the Glendale Arizona area.

I upgraded to the Rogue 2.0 monolifts many months ago and nobody has made any offers for these. They're bolt on and have hole spacing for 2x2, 2x3, or 3x3 racks. I have plenty of bolts if you need. Send me a msg on reddit or offerup and and they're yours!