Skip to content

Comments

Add .gitignore generator with 10 embedded templates#55

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/add-gitignore-file-generator
Draft

Add .gitignore generator with 10 embedded templates#55
Copilot wants to merge 4 commits intomasterfrom
copilot/add-gitignore-file-generator

Conversation

Copy link

Copilot AI commented Feb 8, 2026

Implements a .gitignore generator under Generators category. Templates sourced from github/gitignore repository, embedded for offline operation.

Implementation

  • Library (Roselt.GitIgnoreGenerator.pas)

    • 10 templates across 3 categories: Languages (Python, Node, Java, C#, Delphi), IDEs (VS Code, JetBrains), Operating Systems (macOS, Windows, Linux)
    • Helper functions: GetTemplatesByCategory(), GetGitIgnoreTemplateByName()
    • All content embedded as constants
  • UI Frame (uFrame_GitIgnoreGenerator.pas/fmx)

    • Category dropdown → dynamically populated template dropdown → output memo
    • Clipboard integration via existing Roselt.Clipboard
    • Follows pattern from Password/Name generators
  • Menu Registration (Roselt.Menu.pas)

    • Added to RoseltMenuArray under 'Generators' parent
    • Icon: file-earmark-code

Usage

// Templates are retrieved by name or category
var Content := GetGitIgnoreTemplateByName('Python');
// Returns full .gitignore content as string

No network dependencies—templates compile into binary.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gitignore/contents
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add a .gitignore file generator</issue_title>
<issue_description>.gitignore files can be generated by these ones: https://github.com/github/gitignore</issue_description>

<agent_instructions>Implement it in the same way as all other tools are implemented. The UI needs to be design time UI in the FMX file. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits February 8, 2026 23:29
Co-authored-by: ShaunRoselt <5418178+ShaunRoselt@users.noreply.github.com>
…plate

Co-authored-by: ShaunRoselt <5418178+ShaunRoselt@users.noreply.github.com>
…own items

Co-authored-by: ShaunRoselt <5418178+ShaunRoselt@users.noreply.github.com>
Copilot AI changed the title [WIP] Add a .gitignore file generator Add .gitignore generator with 10 embedded templates Feb 8, 2026
Copilot AI requested a review from ShaunRoselt February 8, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a .gitignore file generator

2 participants