nvim-orgmode / nvim-orgmode/orgmode

Links not working with <leader>+o+o like the docs mention on windows.

Open
#593 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Windows
Dominant language
Lua
Stars
3.9k
Forks
190
Avg merge
2d 13h
Merged PRs (30d)
7

Description

Describe the bug

I'm trying to use links to other files in the same directory using the simple syntax:
[[file.org]].
When I hover over them in normal mode or insert mode, there is no underline, which is expected.
But I'm unable to open the file with any keybinding. the docs mention +o+o, and the emacs docs mention Ctrl-c Ctrl-o,
both seems to fail to work.
It's worth mentioning that I'm using windows, not on WSL.
oo simply gets ignored. ctrl-c ctrl-o moves the cursor.
It's probably not a bug, I probably configured something wrong, perhaps even conflicting keybindings,
but I can't really figure it out.

Steps to reproduce

On a windows machine (not on wsl):

  1. Go to an existing org file, say file1.org
  2. Make sure file2.org exists in the same directory.
  3. Create a link to file2.org like this: [[file:./file2.org]]
  4. In normal mode, try to:
    4.1 press it
    4.2 ctrl+mouse click
    4.3 ctrl+c ctrl+o
    4.4 +oo (make sure <leader is correct)
    Nothing really happens.
Expected behavior

The expected behaviour is for the file to open within nvim or with other applications.

Emacs functionality

No response

Minimal init.lua
use {'nvim-treesitter/nvim-treesitter' }

 use {'nvim-orgmode/orgmode', config = function()
      require('orgmode').setup{}
  end
  }


require('orgmode').setup_ts_grammar()
-- TREESITTER-CONFIG
require('nvim-treesitter.configs').setup {
  highlight = {
    enable = true,
    additional_vim_regex_highlighting = {'org'},
  },
  ensure_installed = {'org'},
}

require('orgmode').setup({
    org_agenda_files= {'C:/Users/saarz/org/*', 'C:/Users/saarz/my-orgs/**/*'},
    org_default_notes_file = 'C:/Users/saarz/org/refile.org',
})
vim.opt.shellslash = true


Screenshots and recordings

No response

OS / Distro

Windows 11

Neovim version/commit

0.9.1

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported minimal init.lua and reproduce the link-opening steps using file1.org and file2.org on Windows 11. Check the documented oo, Ctrl-c Ctrl-o, mouse-click, and normal-mode behaviors; done means the file link opens in Neovim or another application as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.