{"id":28184444,"url":"https://github.com/byteface/chode","last_synced_at":"2025-10-25T05:49:55.702Z","repository":{"id":35243181,"uuid":"39502736","full_name":"byteface/chode","owner":"byteface","description":"saves time and helps you code! - my first sublime plugin.","archived":false,"fork":false,"pushed_at":"2015-07-24T04:11:07.000Z","size":1228,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-04T16:55:24.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/byteface.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}},"created_at":"2015-07-22T11:35:54.000Z","updated_at":"2016-04-26T15:03:49.000Z","dependencies_parsed_at":"2022-08-30T22:31:01.360Z","dependency_job_id":null,"html_url":"https://github.com/byteface/chode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byteface/chode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fchode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fchode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fchode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fchode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteface","download_url":"https://codeload.github.com/byteface/chode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fchode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280911394,"owners_count":26412209,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-05-16T05:15:27.028Z","updated_at":"2025-10-25T05:49:55.689Z","avatar_url":"https://github.com/byteface.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Chode\nTODO - insert image here\n\n## in short\ninjects the best stack overflow answer you need directly into sublime without leaving sublime.\n\n\n## NOTE -\nso chode can get blocked. (not surprised it was a proof of concept). If it stops working just visit a url in your browser...\n\ni.e:\nhttp://stackoverflow.com/search?tab=relevance\u0026q=compare%20arrays%20python\n\nand click the captcha button. it will now work again. I will try setup proper access via the API rather than scrape when i get time.\n\n\n\n## About\n\nChode is a Sublime Plugin to help you CHeat at cODE. I wrote it in few hours and is a working proof of concept.\n\n\nSo I often write pseudo code / comments when developing or stubbing out an app or piece of functionality as a series of steps. i.e.\n\n```\n# create some class\n\n# create some function\n\n# loop through array compare this and that\n\n# split out last item if is bigger than\n\n# add it to the array and dispatch and event\n\n# delete the mongo database\n```\n\netc\n\n\nI then go about writing the real code, comment at a time. This is also useful when delegating work or showing others how you're thinking of solving a problem. You can stub whole applications quickly.\n\n\nMost people use Stackoverflow a lot. Even if you think you know the answer, It's useful to check incase there's a newer or better way to do things.\n\n\nI figured it would be cool if code comments could quickly become code examples. pseudo code + stackoverflow = Chode. It took just a few hours to get a diiiiirty 'my first sublime plugin' working prototype and here it is.\n\n\n\n## Usage\n\nChode runs when you save.\nIMPORTANT - It only analyses the line your cursor is currently on.\n\nIf the line starts with a comment, followed by a 'p', then a colon...\n\n```\nie. python\n#p:\n\nor javascript\n//p:\n\n```\n\nthen everything after those characters will get sent to stackoverflow as a query. the top link is selected, then the best answer from that link inserted into your code.\n\ni.e\n```\n#p: a singleton in python\n```\n\nclick on that line, press save, would become...\n\n```\n#p: a singleton in python\n\u003cTOP ANSWER FROM STACK OVERFLOW GETS INSERTED HERE\u003e\n```\n\nREMEMBER - To work your cursor must be ON THE LINE YOU WANT TO RUN and then press save.\n\nwhy not try some of these examples. install plugin, paste these into a document, put cursor on line, press save.\n\n```\n#p: css round corners\n\n#p: abstract class java\n\n#p: reverse array in java\n             \n\n# NOTICE THIS ONE HAS A PARAMETER - see about them below\n#p:compare arrays python :v\n```\n\n\nThe code block from the top post is injected into your code.\n\n\n## PARAMETERS\n\n```\n:v\n```\nmakes it verbose. which means it add the whole post not just the first code block. Without the :v flag we only paste the first code block\n\ntry it yourself\n```\n#p:compare arrays python :v\n```\nor\n```\n#p:compare arrays python\n```\nwill get very different results\n\n\n\n## EXAMPLE\n\nThese 2 images show a BEFORE and AFTER, non verbose, code injection when pressing save on a line of 'chode'...\n\n![alt tag](https://raw.github.com/byteface/chode/master/screenshots/shot1.png)\n\n![alt tag](https://raw.github.com/byteface/chode/master/screenshots/shot2.png)\n\n\n## Installation\nDownload this whole folder and put in Sublime Packages folder, on my mac it looks like this...\n\n```\n/Users/mike/Library/Application\\ Support/Sublime\\ Text\\ 3/Packages/Chode\n```\n\nrestart and you're good to go. I will hopefully make it all more proper soon and get into PackageControl\n\n\n\n\n## FUTURE\n```\n\n• detect current language by getting filename. auto search on that language\n• have some parameters i.e.\n\n#p: some question :css :v\n\nthe :css parameter search in css even tho im in a .html file. or .js file.\n\nparamters to return second / third answer?\n\nparamters to return answers from 2nd 3rd results. or newest or other filters?\n\nsettings with various default. i.e. verbose / non verbose. \n\n:gist - instead of checking stackoverflow check gist - (DO LOADS OF THESE?)\n\n```\n\nif popular write same plugin for other tools??? who knows.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fchode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteface%2Fchode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fchode/lists"}