├── .gitignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── lib └── tool-bar-main.coffee └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | npm-debug.log 3 | node_modules 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.12 - Fix the ionicons updated in tool-bar 1.2.0 [#20](https://github.com/suda/tool-bar-main/pull/20) 2 | ## 0.0.11 - Fix [#18](https://github.com/suda/toolbar-main/issues/18) 3 | ## 0.0.10 - :package: :arrow_up: Update tool-bar package provider service. Per [suda/tool-bar#141][]. 4 | ## 0.0.2 - Added spacer before buttons 5 | ## 0.0.1 - First Release 6 | 7 | [suda/tool-bar#141]: https://github.com/suda/tool-bar/issues/141 8 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Main Tool Bar package 2 | 3 | Simple tool bar using [tool-bar](https://atom.io/packages/tool-bar) package. 4 | 5 | ![Main Tool Bar](http://f.cl.ly/items/3B3O471G3h3d0x0l0313/Screenshot-2014-10-22-11.37.54.png) 6 | 7 | # Buttons 8 | 9 | * New File 10 | * Open... 11 | * Save 12 | * Find in Buffer 13 | * Replace in Buffer 14 | * Toggle Command Palette 15 | * Open Settings View 16 | 17 | When in **dev mode** it adds two more buttons: 18 | 19 | * Reload Window 20 | * Toggle Developer Tools 21 | -------------------------------------------------------------------------------- /lib/tool-bar-main.coffee: -------------------------------------------------------------------------------- 1 | module.exports = 2 | activate: (state) -> 3 | require('atom-package-deps').install('tool-bar-main') 4 | 5 | deactivate: -> 6 | @toolBar?.removeItems() 7 | 8 | serialize: -> 9 | 10 | consumeToolBar: (toolBar) -> 11 | @toolBar = toolBar 'main-tool-bar' 12 | 13 | @toolBar.addButton 14 | icon: 'ios-document' 15 | callback: 'application:new-file' 16 | tooltip: 'New File' 17 | iconset: 'ion' 18 | @toolBar.addButton 19 | icon: 'ios-folder' 20 | callback: 'application:open-file' 21 | tooltip: 'Open...' 22 | iconset: 'ion' 23 | @toolBar.addButton 24 | icon: 'ios-archive' 25 | callback: 'core:save' 26 | tooltip: 'Save' 27 | iconset: 'ion' 28 | 29 | @toolBar.addSpacer() 30 | 31 | @toolBar.addButton 32 | icon: 'ios-search' 33 | callback: 'find-and-replace:show' 34 | tooltip: 'Find in Buffer' 35 | iconset: 'ion' 36 | @toolBar.addButton 37 | icon: 'ios-shuffle' 38 | callback: 'find-and-replace:show-replace' 39 | tooltip: 'Replace in Buffer' 40 | iconset: 'ion' 41 | 42 | @toolBar.addSpacer() 43 | 44 | @toolBar.addButton 45 | icon: 'ios-list-box' 46 | callback: 'command-palette:toggle' 47 | tooltip: 'Toggle Command Palette' 48 | iconset: 'ion' 49 | @toolBar.addButton 50 | icon: 'ios-cog' 51 | callback: 'settings-view:open' 52 | tooltip: 'Open Settings View' 53 | iconset: 'ion' 54 | 55 | if atom.inDevMode() 56 | @toolBar.addSpacer() 57 | 58 | @toolBar.addButton 59 | icon: 'ios-refresh' 60 | callback: 'window:reload' 61 | tooltip: 'Reload Window' 62 | iconset: 'ion' 63 | @toolBar.addButton 64 | icon: 'terminal' 65 | callback: -> 66 | require('remote').getCurrentWindow().toggleDevTools() 67 | tooltip: 'Toggle Developer Tools' 68 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tool-bar-main", 3 | "version": "0.0.12", 4 | "description": "Main tool bar", 5 | "repository": { 6 | "type": "git", 7 | "url": "git@github.com:suda/tool-bar-main.git" 8 | }, 9 | "keywords": [ 10 | "toolbar", 11 | "tool-bar" 12 | ], 13 | "license": "MIT", 14 | "main": "./lib/tool-bar-main", 15 | "dependencies": { 16 | "atom-package-deps": "^4.6.1" 17 | }, 18 | "engines": { 19 | "atom": ">0.50.0" 20 | }, 21 | "package-deps": [ 22 | "tool-bar" 23 | ], 24 | "consumedServices": { 25 | "tool-bar": { 26 | "versions": { 27 | "^0 || ^1": "consumeToolBar" 28 | } 29 | } 30 | } 31 | } 32 | --------------------------------------------------------------------------------