Display Paths from parent git repository in full search
currently only 2 parent folders are displayed: fileParentDir/fileDir/fileName. This is better but for files that are nested deeper, e.g. app/pages/page1/components/index.ts This pattern might have lots of folder named components and lots of files named index.ts. In cases like this there are 2 solutions:
- Always display the absoute path from the home directory
- Display the absolute path from the git repository root.
Both options are fine but probably option 2 is better. In cases where the total path name is very long, we should truncate the final output to not clutter the UI. E.g.:
some-project/app/pages/feature/componets/edit/state.ts
could become
some-project/.../components/edit/state.ts
otherwise depending on how deeply nested the file is, the full file path might not fit in the results view because it is too wide.
Originally posted by @benediktms in https://github.com/ParthJadhav/Verve/issues/38#issuecomment-1387359465