{"id":13491689,"url":"https://github.com/atom/tree-view","last_synced_at":"2025-12-17T19:33:42.878Z","repository":{"id":782016,"uuid":"12089001","full_name":"atom/tree-view","owner":"atom","description":"🌳 Explore and open project files in Atom","archived":true,"fork":false,"pushed_at":"2022-12-01T08:50:35.000Z","size":2453,"stargazers_count":561,"open_issues_count":233,"forks_count":364,"subscribers_count":53,"default_branch":"master","last_synced_at":"2024-10-31T05:34:56.515Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-13T18:17:54.000Z","updated_at":"2024-09-29T07:01:48.000Z","dependencies_parsed_at":"2023-01-11T15:47:48.623Z","dependency_job_id":null,"html_url":"https://github.com/atom/tree-view","commit_stats":null,"previous_names":[],"tags_count":290,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Ftree-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Ftree-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Ftree-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Ftree-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atom","download_url":"https://codeload.github.com/atom/tree-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245996904,"owners_count":20707353,"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":"2024-07-31T19:00:59.410Z","updated_at":"2025-12-17T19:33:42.812Z","avatar_url":"https://github.com/atom.png","language":"CoffeeScript","readme":"##### Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our [official announcement](https://github.blog/2022-06-08-sunsetting-atom/)\n # Tree View package\n[![CI](https://github.com/atom/tree-view/actions/workflows/ci.yml/badge.svg)](https://github.com/atom/tree-view/actions/workflows/ci.yml)\n\nExplore and open files in the current project.\n\nPress \u003ckbd\u003ectrl-\\\\\u003c/kbd\u003e or \u003ckbd\u003ecmd-\\\\\u003c/kbd\u003e to open/close the tree view and\n\u003ckbd\u003ealt-\\\\\u003c/kbd\u003e or \u003ckbd\u003ectrl-0\u003c/kbd\u003e to focus it.\n\nWhen the tree view has focus you can press \u003ckbd\u003ea\u003c/kbd\u003e, \u003ckbd\u003eshift-a\u003c/kbd\u003e,\n\u003ckbd\u003em\u003c/kbd\u003e, or \u003ckbd\u003edelete\u003c/kbd\u003e to add, move or delete files and folders.\n\nTo move the Tree view to the opposite side, select and drag the Tree view dock to the other side.\n\n![](https://f.cloud.github.com/assets/671378/2241932/6d9cface-9ceb-11e3-9026-31d5011d889d.png)\n\n## API\nThis package provides a service that you can use in other Atom packages.\nTo use it, include `tree-view` in the `consumedServices` section of your\n`package.json`:\n\n``` json\n{\n  \"name\": \"my-package\",\n  \"consumedServices\": {\n    \"tree-view\": {\n      \"versions\": {\n        \"^1.0.0\": \"consumeTreeView\"\n      }\n    }\n  }\n}\n```\n\nThen, in your package's main module, call methods on the service:\n\n``` coffee\nmodule.exports =\n  activate: -\u003e # ...\n\n  consumeTreeView: (treeView) -\u003e\n    selectedPaths = treeView.selectedPaths()\n    # Do something with the paths...\n```\n\nThe `tree-view` API has two methods:\n* `selectedPaths()` - Returns the paths to the selected tree view entries.\n* `entryForPath(entryPath)` - Returns a tree view entry for the given path.\n\n## Customization\nThe tree view displays icons next to files. These icons are customizable by\ninstalling a package that provides an `atom.file-icons` service.\n\nThe `atom.file-icons` service must provide the following methods:\n* `iconClassForPath(path)` - Returns a CSS class name to add to the file view.\n","funding_links":[],"categories":["CoffeeScript","Atom"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom%2Ftree-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatom%2Ftree-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom%2Ftree-view/lists"}