trevorhauter / gitportal.nvim

Easily generate or ingest shareable permalinks to get to the files you want. Fast.
MIT License
5 stars 0 forks source link

Prevent gitportal from opening files that aren't in version control #18

Closed trevorhauter closed 1 week ago

trevorhauter commented 1 week ago

We shouldn't be opening files

  1. If they aren't in version control
  2. If it's not a file that makes sense to open in the first place. Like if I'm in an nvimtree window and by mistaken hit my keybind, i should just show a message that indicates i won't open it