Author Topic: I just had this amazing brainstorm!  (Read 2882 times)

0 Members and 1 Guest are viewing this topic.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
I just had this amazing brainstorm!
« on: October 01, 2021, 01:42:29 pm »
Fortunately, that guy who sells Flex Tape came along and sealed things up before a lot of good info got through, but I did come away with this from the thread I stared about organization...

Why not add a TAGS option to the QB64 IDE?

So SAVE and SAVE AS now have a box to check [ ] Add Tags

Now I know this opens up a can of worms on indexing. What happens if the file name gets changed, how to keep the same tags on builds, etc. so you have to weigh the work load with the benefits. The OPEN routine would also have to include an option to sort by tags.

The internet has used this for ages, and it is a proven and useful form of organization. I think it would be great to have it as part of the QB64 IDE, but again, unless there is some simple way to create it, and there may be, I would think finding out the percentage of user usage would be warranted before trying to implement file tagging.

Thoughts?

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: I just had this amazing brainstorm!
« Reply #1 on: October 01, 2021, 03:22:36 pm »
That sure does sound cool. Maybe it would be something done with a database using Fellippe's INI routines. An INI file showing the pairings between files and their related keywords/tags. Personally, I'd use something like SQLite and write a C++ wrapper for Windows and Linux. Then, it's as simple as when the files are shown in the dialog, you run a query against the database file and return all the keywords for each file and display them alongside.
Shuwatch!