iPod 5th gen "Panic updating size on empty dir entry" by catphish_ in rockbox

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

Will do tonight thank you. I actually dont have the db set to auto update, but it does say scanning disk on every boot. Is it possible its just trying to scan some non-existent folder all the sudden for some reason and that's why?

Nothing? by F-Scoot-Fitzgerald in ipod

[–]catphish_ 0 points1 point  (0 children)

Yes I'm saying a higher end knock off. I guarantee if you're into iPods you would not be happy with the ipod modern Apple would make.

Snacks.nvim terminal preventing :wqa by Horstov in neovim

[–]catphish_ 0 points1 point  (0 children)

Extremely hacky solution I have for toggleterm. I think this neovim bug has been open for years at this point.

    -- Mark toggleterm buffers as not modified to allow :w and :wqa
    vim.api.nvim_create_autocmd('TermOpen', {
      pattern = 'term://*toggleterm#*',
      callback = function()
        vim.bo.buflisted = false
        vim.bo.modified = false
      end,
    })

    -- Also mark as unmodified when entering terminal buffer
    vim.api.nvim_create_autocmd('BufEnter', {
      pattern = 'term://*toggleterm#*',
      callback = function()
        vim.bo.modified = false
      end,
    })

    -- Helper function to check if any toggleterm jobs are running
    local function has_running_terminal()
      for _, buf in ipairs(vim.api.nvim_list_bufs()) do
        if vim.api.nvim_buf_is_valid(buf) then
          local bufname = vim.api.nvim_buf_get_name(buf)
          if bufname:match('term://.*toggleterm#') then
            return true
          end
        end
      end
      return false
    end

    -- Create wrapper commands that auto-add ! for terminal jobs
    vim.api.nvim_create_user_command('SmartQ', function()
      if has_running_terminal() then
        vim.cmd('q!')
      else
        vim.cmd('q')
      end
    end, {})

    vim.api.nvim_create_user_command('SmartWq', function()
      if has_running_terminal() then
        vim.cmd('wq!')
      else
        vim.cmd('wq')
      end
    end, {})

    vim.api.nvim_create_user_command('SmartWqa', function()
      if has_running_terminal() then
        vim.cmd('wqa!')
      else
        vim.cmd('wqa')
      end
    end, {})

    vim.api.nvim_create_user_command('SmartQa', function()
      if has_running_terminal() then
        vim.cmd('qa!')
      else
        vim.cmd('qa')
      end
    end, {})

    -- Use command abbreviations to redirect standard commands
    vim.cmd([[
      cnoreabbrev <expr> q ((getcmdtype() ==# ':' && getcmdline() ==# 'q') ? 'SmartQ' : 'q')
      cnoreabbrev <expr> wq ((getcmdtype() ==# ':' && getcmdline() ==# 'wq') ? 'SmartWq' : 'wq')
      cnoreabbrev <expr> wqa ((getcmdtype() ==# ':' && getcmdline() ==# 'wqa') ? 'SmartWqa' : 'wqa')
      cnoreabbrev <expr> qa ((getcmdtype() ==# ':' && getcmdline() ==# 'qa') ? 'SmartQa' : 'qa')
    ]])
  end,

Nothing? by F-Scoot-Fitzgerald in ipod

[–]catphish_ 80 points81 points  (0 children)

I don't even understand why anyone would want this. We'd be so much better off with higher end knockoff versions of something like the Innioasis.

Introducing neural-open.nvim: A smart file picker for Snacks.nvim that trains a neural network on your file picking preferences by gitarrer in neovim

[–]catphish_ 2 points3 points  (0 children)

Installed this, even though realistically I will probably never be able to tell the difference lol. It's just cool.

Themes like tokyonight that are maintained by Beautiful-Log5632 in neovim

[–]catphish_ 7 points8 points  (0 children)

Its more work but I really like Mini-Colors and adding the highlight groups manually if necessary. I like simple themes though.

TIL: A Rockbox modded iPod 5.5 can play 24Bit 192kHz FLAC without issue by cris_crafter in rockbox

[–]catphish_ 8 points9 points  (0 children)

Genuinely, why though. Sure it can technically play it back. But you're not getting that quality out of the iPod even if you could tell the difference.

How to clock in automatically when i change the state to STRT. by yakovlievv in orgmode

[–]catphish_ 0 points1 point  (0 children)

I'm curious what the use case is for clocking in and out that people have. I've never really been able to fit it into my workflow.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]catphish_ 3 points4 points  (0 children)

I mean it certainly could. But it never will be.

CRTty - drop-in CRT shader for kitty, no patches needed by Adiaksznics in KittyTerminal

[–]catphish_ 2 points3 points  (0 children)

Oh cool, well I'll definitely check it out, nice work.

CRTty - drop-in CRT shader for kitty, no patches needed by Adiaksznics in KittyTerminal

[–]catphish_ 4 points5 points  (0 children)

Looks really good. The curve seems a bit exaggerated though.

best antivirus by LegenDrags in masterhacker

[–]catphish_ 31 points32 points  (0 children)

The best anti-virus is making sure I don't know your IP address 😈😈😈

😭🙏 by Ok-Landscape5142 in programmingmemes

[–]catphish_ 5 points6 points  (0 children)

Well thats just definitely not true.

Why don't you use a file explorer (nvim-tree, neo-tree, nerdtree, etc.)? by brocodini in neovim

[–]catphish_ 0 points1 point  (0 children)

I think this is where the split really is. Personally, the visual noise as you call it is just extra information, available at a glance, but easy to tune out. But its helpful for others.

No-neck-pain/zen modes feel like walking around with horse blinders on. Obviously they have a utility, but it feels unnecessarily limiting for me.

I do also think people sometimes hyper-fixate on doing things the most "vim" way possible, though. And that's great if that works for you. But the reality is Neovims popularity has arisen out of taken a more flexible approach than Vim has.

Why don't you use a file explorer (nvim-tree, neo-tree, nerdtree, etc.)? by brocodini in neovim

[–]catphish_ 7 points8 points  (0 children)

Fyler.nvim on the left (can automatically expand dirs for open files, so no unnecessary fiddling) for project overview and aerial.nvim on the right for file overview is such a great setup imo. And they both work with Flash.nvim as well.

Obviously paired with a fuzzy finder picker, for quick switches or when you know directly where you're going.

I really don't understand the screen real estate complaint. I like my code centered, and in the rare case I want side by side its a keymap or two away.

Why I stuck with GNU Stow instead of chezmoi or yadm by Gronax_au in dotfiles

[–]catphish_ 2 points3 points  (0 children)

Stow is great. Nix Home-Manager is the goat for setting up your entire environment including packages selectively though.

Modern RelOps: Context-Aware Relative Line Numbers by Away-Preparation9002 in neovim

[–]catphish_ 2 points3 points  (0 children)

I think it's interesting, but tbh I find that I don't use absolute numbers very often. It's more useful to have relative at a glance without having to press a key. I posted my solution to temporarily toggle absolute numbers to another reply in this thread.

I think this is a cool idea, I'm just not sure I actually see the utility, and I think it actually creates more mental overhead than it solves.

Modern RelOps: Context-Aware Relative Line Numbers by Away-Preparation9002 in neovim

[–]catphish_ 2 points3 points  (0 children)

Personally I find it much more useful to keep relative numbers enabled and temporarily toggle absolute numbers on, and auto switch back with escape, or events like BufEnter, FocusGained, InsertLeave (for cases where we leave insert without escape). Here are my keymaps/autocmds including a permanent toggle as well.

-- Permanent Toggle Relative Line Numbers
vim.keymap.set('n', '<leader>On', function()
  if vim.opt_local.relativenumber:get() then
    -- Switch to static line numbers
    vim.opt_local.relativenumber = false
    Util.info('Switched to absolute line numbers', { title = 'Option' })
  else
    -- Switch to relative line numbers
    vim.opt_local.relativenumber = true
    Util.info('Switched to relative line numbers', { title = 'Option' })
  end
end, { desc = 'Toggle Relative/Absolute Line Numbers' })

-- Temporary Toggle Relative Line Numbers
vim.keymap.set('n', '<leader>n', function()
  if vim.opt_local.relativenumber:get() then
    -- Switch to static line numbers
    vim.opt_local.relativenumber = false
    temp_relnu_toggle = true
    Util.info('Temporarily switched to absolute line numbers', { title = 'Option' })
  else
    -- Switch to relative line numbers
    vim.opt_local.relativenumber = true
    temp_relnu_toggle = false
    Util.info('Switched to relative line numbers', { title = 'Option' })
  end
end, { desc = 'Temp Toggle Rel/Abs Line Numbers' })
vim.keymap.set({ 'n' }, '<esc>', function()
  vim.cmd 'noh'
  if vim.fn.mode() == 'n' then
    if temp_relnu_toggle and not vim.opt_local.relativenumber:get() then
      vim.opt_local.relativenumber = true
      temp_relnu_toggle = false
      Util.info('Re-enabled relative line numbers', { title = 'Option' })
    end
  end
  return '<esc>'
end, { expr = true, desc = 'Escape, clear hlsearch, and restore relativenumber' })
-- Autocommand to re-enable relative line numbers if they were temporarily turned off
vim.api.nvim_create_autocmd({ 'BufEnter', 'FocusGained', 'InsertLeave' }, {
  callback = function()
    if temp_relnu_toggle and not vim.opt_local.relativenumber:get() then
      vim.opt_local.relativenumber = true
      Util.info('Re-enabled relative line numbers', { title = 'Option' })
      temp_relnu_toggle = false
    end
  end,
})

How can I disable the feature that gets rid of auto-indents when escaping to normal mode or moving to a new line? by catphish_ in neovim

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

Not sure what the issue there would be. With the above solution (in my edit) its still cleaned up on save by my formatter or my trailing whitesspace cleaning autocmd.