Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tony-Stark opened this issue Jul 19, 2023 · 0 comments
Open
Labels
bug Something isn't working Windows Windows OS issue

Comments

@Tony-Stark
Copy link

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 Tony-Stark added the bug Something isn't working label Jul 19, 2023
@kristijanhusak kristijanhusak added the Windows Windows OS issue label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Windows OS issue
Projects
None yet
Development

No branches or pull requests

2 participants