nvim-orgmode / nvim-orgmode/orgmode

org_agenda_goto add option to open agenda item in vertical split or new tab

Open
#1,023 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Does this feature exist in Emacs orgmode core?

N/A

Orgmode link
Feature value

No response

Additional context

Currently, we can open item in two primary way, using <cr> to open item in current window, or <tab> to open item in a new window, i.e. the org_agenda_goto action.

However, there is no way to specify org_agenda_goto to open in which split, i.e. it will always open in aboveleft split.

see https://github.com/nvim-orgmode/orgmode/blob/master/lua/orgmode/agenda/init.lua#L539

It would be nice if we have an option under org_agenda_ settings to let user decide which <mods> is used to open the split.

For example, I personally don't like to open in aboveleft split since my monitor has more width than height, so I would prefer to open it in vertical split or even new tab instead.

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 at lua/orgmode/agenda/init.lua around line 539, where org_agenda_goto opens the agenda item. Read the surrounding agenda action and org_agenda_ settings to determine how the opening mode is selected. Done means users can configure a vertical split or new tab instead of the current aboveleft split.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.