nomnivore / ollama.nvim

A plugin for managing and integrating your ollama workflows in neovim.
MIT License
311 stars 22 forks source link

add: sorted prompts, for some consistency #1

Closed huynle closed 7 months ago

huynle commented 7 months ago

when there are 10+ prompts, which i have, it is difficult to scan through the unordered list of prompts every time. This MR makes it consistent, so your fingers can remember the keystrokes.

nomnivore commented 7 months ago

Thanks for the PR! I definitely think this should be implemented.

Wouldn't it sort effectively the same without the extra gsub in each step (return a < b)? Not sure if I'm missing some weird edge case but it would be nice to avoid unnecessary substitutions on each sort comparison, if possible.

huynle commented 7 months ago

you are totally correct, moving a little fast here. Hopefully that works!