mattn / mattn/calendar-vim

How to keep cursor stil when jump among months

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
273
Forks
45
PR merge metrics
No merged PRs in 30d

Description

In the calendar, when I press <left>, the months are shift down and the cursor is move to the "<Prev" in the nav bar. What I want is the position of cursor doesn't change. It is not the option of "calendar_focus_today". With this option set to 1, the cursor still change because it keep tracing today until the date is out of window.
Take an example. Now the cursor is in the date 2.1. then I press <left>, then the cursor stays still and it points to 1.1 .(maybe it does moves a little because the difference of months).

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the issue in the calendar window: place the cursor on a date, press , and observe the cursor as the months shift. Trace the navigation handling and compare the cursor position before and after the month change. Done means moving between months preserves the selected date's relative position rather than moving the cursor to the navigation bar or following today.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.