suplemon icon indicating copy to clipboard operation
suplemon copied to clipboard

[Wishlist] History for prompts like open-file (c-o) or search (c-f)

Open Consolatis opened this issue 7 years ago • 1 comments
trafficstars

History should also be preserved across editor restarts. Maybe inside ~/.config/suplemon/modules/application_state.json or some other file inside the config directory.

Search history could either be preserved per file or globally. Maybe limited by max amount last-recently-used.

Consolatis avatar Jan 04 '18 22:01 Consolatis

The application_state.json file could be a good place to store history. We should define what prompts would benefit from history. Then decide how the history implementation could be generalized, so that the same implementation can be used for all prompts that support history but still have a different history per prompt type or file. I'm not sure the initial implementation needs per-file history, but that's something that could be discussed further.

At least the following prompts would benefit from history:

  • open file
  • save file
  • search
  • run command

richrd avatar Jan 21 '18 16:01 richrd