orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

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

Open Tony-Stark opened this issue 2 years ago • 1 comments

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

Tony-Stark avatar Jul 19 '23 10:07 Tony-Stark