Skip to content

dirman: creating new note does not put current note into jumplist #1670

Open
@sij1nk

Description

@sij1nk

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.10.4 Build type: RelWithDebInfo LuaJIT 2.1.1736781742

Neorg setup

      require("neorg").setup({
        load = {
          ["core.defaults"] = {
            config = {
              disable = {
                "core.todo-introspector",
              },
            },
          }, -- Loads default behaviour
          ["core.completion"] = {
            config = { engine = { module_name = "external.lsp-completion" } },
          },
          ["core.concealer"] = {
            config = {
              icon_preset = "diamond",
              icons = {
                code_block = {
                  conceal = true,
                },
              },
            },
          }, -- Adds pretty icons to your documents
          ["core.dirman"] = { -- Manages Neorg workspaces
            config = {
              workspaces = {
                notes = notes_path,
                worknotes = worknotes_path,
              },
              default_workspace = "notes",
            },
          },
          ["core.export"] = {
            config = {
              export_dir = "<export-dir>/<language>-export",
            },
          },
          ["core.export.markdown"] = {
            config = {
              extensions = "all",
            },
          },
          ["core.ui.calendar"] = {},
          ["core.esupports.metagen"] = {
            config = {
              type = "auto",
              -- TODO: include weekday name (%A)
            },
          },
          ["external.conceal-wrap"] = {},
          ["external.many-mans"] = {
            config = {
              metadata_fold = true, -- If want @data property ... @end to fold
              code_fold = true, -- If want @code ... @end to fold
            },
          },
          ["external.roam"] = {
            config = {
              fuzzy_finder = "Snacks", -- OR "Fzf" OR "Snacks". Defaults to "Telescope"
              fuzzy_backlinks = true, -- Set to "true" for backlinks in fuzzy finder instead of buffer
              roam_base_directory = "", -- Directory in current workspace to store roam nodes
              node_name_randomiser = false, -- Tokenise node name suffix for more randomisation
              node_name_snake_case = false, -- snake_case the names if node_name_randomiser = false
            },
          },
          ["external.interim-ls"] = {},
        },
      })

Actual behavior

In a new neovim instance, I opened these notes in this order:

  • index.norg
  • Notes/dbus.norg
  • Notes/android-file-transfer.norg
  • Notes/pipewire.norg

My jumplist then looked like this:

Image

At this, point, I create a new note bleh using the default <localleader>nn binding.

Image

The jump list did not change. If I now go jump back using C-o, I get brought back to Notes/android-file-transfer.norg

Tested on neorg v9.2.0 and on latest (6f0b4ee)

Expected behavior

In the example above, I'd expect C-o to bring me back to Notes/pipewire.neorg, to the location I was in when creating the new note

Steps to reproduce

  • open a bunch of notes
  • create new note using dirman (<localleader>nn)
  • jump back (C-o)

Potentially conflicting plugins

don't think there's a conflict, but I didn't really check

Other information

Neorg module list:

- `core.dirman.utils`
- `core.integrations.treesitter`
- `core.links`
- `external.interim-ls`
- `external.roam`
- `core.concealer.preset_diamond`
- `core.neorgcmd.commands.return`
- `external.refactor`
- `core.autocommands`
- `core.ui`
- `core.storage`
- `core.esupports.metagen`
- `core.ui.calendar`
- `core.export.markdown`
- `core.export`
- `core.promo`
- `core.pivot`
- `core.dirman`
- `core.keybinds`
- `core.neorgcmd`
- `core.itero`
- `core.esupports.indent`
- `core.esupports.hop`
- `core.clipboard.code-blocks`
- `core.clipboard`
- `core.completion`
- `external.lsp-completion`
- `core.defaults`
- `core.concealer.preset_varied`
- `external.many-mans`
- `core.concealer`
- `core.concealer.preset_basic`
- `core.tangle`
- `core.qol.todo_items`
- `core.ui.selection_popup`
- `core.qol.toc`
- `core.ui.calendar.views.monthly`
- `core.tempus`
- `core.ui.text_popup`
- `core.highlights`
- `external.conceal-wrap`
- `core.journal`
- `core.looking-glass`

my neorg.log contains no log entries from recent days

Help

Yes

Implementation help

(it might take me some time though)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to bugs. Please attach a severity, a priority and category with this label.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions