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.:
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 namedcomponents
and lots of files namedindex.ts
. In cases like this there are 2 solutions: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.:
could become
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