raw-bacon / vi-xournalpp

A small plugin for Xournal++ version 1.1.x and 1.2.x with vi-like modes
42 stars 5 forks source link

Implement navigation history #7

Open raw-bacon opened 3 years ago

raw-bacon commented 3 years ago

Make it so navigation keys can be undone. E.g., add a "return" key that has the following effect.

  1. The user is on page p.
  2. goToFirstPage is executed. The user is now on the first page.
  3. return is executed, still on the first page.
  4. The user is now back at page p.

The easiest way I can think of is a sort of navigation history, possibly only one deep (and return toggles between the two most recent positions). Maybe there's a nicer way though ...

raw-bacon commented 3 years ago

As far as I can tell it's not possible to get the current position (only the current page) from the API. Currently settling for toggling pages.