{"id":24678616,"url":"https://github.com/compuserscripts/input","last_synced_at":"2025-03-21T18:24:38.660Z","repository":{"id":272032461,"uuid":"915328244","full_name":"compuserscripts/input","owner":"compuserscripts","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-11T15:12:30.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T13:17:42.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compuserscripts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-11T15:09:33.000Z","updated_at":"2025-01-11T15:12:33.000Z","dependencies_parsed_at":"2025-01-11T16:22:03.321Z","dependency_job_id":"b29c77fc-078b-42f5-932f-201b05f53e30","html_url":"https://github.com/compuserscripts/input","commit_stats":null,"previous_names":["compuserscripts/input"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compuserscripts%2Finput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compuserscripts%2Finput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compuserscripts%2Finput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compuserscripts%2Finput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compuserscripts","download_url":"https://codeload.github.com/compuserscripts/input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244845833,"owners_count":20520029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-26T13:17:45.778Z","updated_at":"2025-03-21T18:24:38.621Z","avatar_url":"https://github.com/compuserscripts.png","language":"Lua","readme":"Here's how to use the input library with examples:\n\n\n\nThe input library provides a complete, reusable text input system with all the features from your chat client. Key features include:\n\n1. Full text editing capabilities:\n   - Cursor movement with arrow keys\n   - Word navigation with Ctrl+arrows\n   - Selection with Shift+arrows\n   - Copy/paste with Ctrl+C/V\n   - Undo/redo with Ctrl+Z/Y\n\n2. Advanced input handling:\n   - UTF-8 support for international characters\n   - Proper key repeat behavior\n   - Caps lock support\n   - Input history with up/down arrows\n   - Protected prefix option (e.g. for chat commands)\n\n3. Customization options:\n   - Maximum text length\n   - Protected prefix\n   - Minimum cursor position\n   - Callbacks for changes, submit, and cancel\n\n4. Selection features:\n   - Text selection\n   - Cut/copy/paste\n   - Select all (Ctrl+A)\n\n5. History management:\n   - Input history tracking\n   - Navigation through history\n   - History size limit\n\nTo use the library in your own projects, simply:\n1. Copy the library files to your project\n2. Create an instance with desired configuration\n3. Call update() in your input handling\n4. Use the provided methods to access/modify state\n\nThe example shows how to integrate it into a basic chat system, but it can be used for any text input needs in your scripts.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompuserscripts%2Finput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompuserscripts%2Finput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompuserscripts%2Finput/lists"}