Coder Social home page Coder Social logo

status-bar's Introduction

Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Status Bar package

OS X Build Status Windows Build Status Dependency Status

Display information about the current editor such as cursor position, file path, grammar, current branch, ahead/behind commit counts, and line diff count.

Configuration

The status bar package accepts the following configuration values:

  • status-bar.cursorPositionFormat โ€” A string that describes the format to use for the cursor position status bar tile. It defaults to %L:%C. In the format string, %L represents the 1-based line number and %C represents the 1-based column number.

  • status-bar.selectionCountFormat โ€” A string that describes the format to use for the selection count status bar tile. It defaults to (%L, %C). In the format string, %L represents the 1-based line count and %C represents the 1-based character count.

API

This package provides a service that you can use in other Atom packages. To use it, include status-bar in the consumedServices section of your package.json:

{
  "name": "my-package",
  "consumedServices": {
    "status-bar": {
      "versions": {
        "^1.0.0": "consumeStatusBar"
      }
    }
  }
}

Then, in your package's main module, call methods on the service:

module.exports =
  activate: -> # ...

  consumeStatusBar: (statusBar) ->
    @statusBarTile = statusBar.addLeftTile(item: myElement, priority: 100)

  deactivate: ->
    # ...
    @statusBarTile?.destroy()
    @statusBarTile = null

The status-bar API has four methods:

  • addLeftTile({ item, priority }) - Add a tile to the left side of the status bar. Lower priority tiles are placed further to the left.
  • addRightTile({ item, priority }) - Add a tile to the right side of the status bar. Lower priority tiles are placed further to the right.

The item parameter to these methods can be a DOM element, a jQuery object, or a model object for which a view provider has been registered in the the view registry.

  • getLeftTiles() - Retrieve all of the tiles on the left side of the status bar.
  • getRightTiles() - Retrieve all of the tiles on the right side of the status bar

All of these methods return Tile objects, which have the following methods:

  • getPriority() - Retrieve the priority that was assigned to the Tile when it was created.
  • getItem() - Retrieve the Tile's item.
  • destroy() - Remove the Tile from the status bar.

status-bar's People

Contributors

50wliu avatar abeestrada avatar alhadis avatar as-cii avatar awans avatar benogle avatar blinxe avatar damieng avatar darangi avatar devoncarew avatar izuzak avatar jasonrudolph avatar jonrohan avatar joshaber avatar jshorty avatar kevinnathan avatar kevinsawicki avatar lee-dohm avatar maxbrunsfeld avatar mertkahyaoglu avatar mnquintana avatar mostafaeweda avatar oggy avatar probablycorey-and-nathan avatar probablykevin avatar raisfathin avatar simurai avatar tyriar avatar vjeux avatar zinkkrysty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

status-bar's Issues

Failed to activate the linter package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.0
System: Microsoft Windows 8.1 Pro
Thrown From: status-bar package, v0.74.0

Stack Trace

Failed to activate the linter package

At Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
  at Error (native)
  at status-bar.StatusBarView.addLeftTile (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\status-bar\lib\status-bar-view.js:74:22)
  at LinterViews.attachBottom (C:\Users\Jeff\.atom\packages\linter\lib\linter-views.coffee:112:34)
  at Object.module.exports.consumeStatusBar (C:\Users\Jeff\.atom\packages\linter\lib\main.coffee:43:21)
  at Provider.module.exports.Provider.provide (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\service-hub\lib\provider.js:30:34)
  at ServiceHub.module.exports.ServiceHub.consume (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\service-hub\lib\service-hub.js:48:18)
  at Package.module.exports.Package.activateServices (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:380:69)
  at Package.module.exports.Package.activateNow (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:243:16)
  at C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:221:30
  at Package.module.exports.Package.measure (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:165:15)
  at Package.module.exports.Package.activate (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:213:14)
  at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package-manager.js:452:21)
  at C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:306:60
  at exit (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:53:16)
  at triggerExitCallback (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\buffered-process.js:213:47)
  at C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\buffered-process.js:220:18
  at Socket.<anonymous> (C:\Users\Jeff\AppData\Local\atom\app-1.0.0\resources\app.asar\src\buffered-process.js:98:18)
  at emitOne (events.js:82:20)
  at Socket.emit (events.js:166:7)
  at Pipe.close (net.js:464:12)

Commands

     -1:50.3.0 settings-view:view-installed-packages (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Config

{
  "core": {}
}

Installed Packages

# User
.bin, vundefined
atom-jinja2, v0.5.0
atom-yeoman, v0.3.11
language-bison, v1.0.0
language-csharp, v0.6.0
language-dart, v0.2.0
language-fsharp, v0.8.4
language-haskell, v1.1.5
language-ocaml, v1.1.1
language-prolog, v0.10.0
language-scala, v1.1.3
linter, v1.0.6

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.174.0
System: Mac OS X 10.10.2
Thrown From: status-bar package, v0.57.0

Stack Trace

Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined

At /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1336

TypeError: Cannot read property 'getBufferPosition' of undefined
  at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1336:34)
  at status-bar-cursor.CursorPositionView.updatePosition (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:48:73)
  at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:39:19)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:17:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app/src/pane-container.js:347:34
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:264:22)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:328:21)
  at Pane.module.exports.Pane.activateItemAtIndex (/Applications/Atom.app/Contents/Resources/app/src/pane.js:322:19)
  at Pane.module.exports.Pane.activatePreviousItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:293:21)
  at Pane.module.exports.Pane.removeItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:393:16)
  at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:457:16)
  at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:174:22)
  at space-pen-ul.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4676:9)
  at space-pen-ul.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4360:46)

Commands

     -1:35.4 editor:move-to-first-character-of-line (atom-text-editor.editor)
     -1:32.9 editor:move-to-end-of-screen-line (atom-text-editor.editor)
  4x -1:32.0 core:backspace (atom-text-editor.editor)
  3x -1:28.0 core:move-up (atom-text-editor.editor)
     -1:25.3 core:move-down (atom-text-editor.editor)
     -1:25.0 editor:move-to-end-of-screen-line (atom-text-editor.editor)
     -1:24.8 editor:newline (atom-text-editor.editor)
  2x -1:21.7 core:backspace (atom-text-editor.editor)
  3x -1:19.9 snippets:next-tab-stop (atom-text-editor.editor)
  3x -1:16.1 core:backspace (atom-text-editor.editor)
  2x -1:04.6 core:move-up (atom-text-editor.editor)
     -1:00.0 core:move-down (atom-text-editor.editor)
     -0:59.7 core:backspace (atom-text-editor.editor)
     -0:53.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-dark-theme.theme-seti-ui)
  3x -0:03.1 core:backspace (atom-text-editor.editor.mini)
     -0:00.0 core:confirm (atom-text-editor.editor.mini)

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "base16-tomorrow-dark-theme"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.21.2
atom-django, v0.2.1
django-templates, v0.3.0
language-django, v0.1.1
language-python-django-templates, v0.1.0
ruby-strftime-reference, v0.2.0
seti-ui, v0.6.1

# Dev
No dev packages

/cc @atom/core

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new...

[Enter steps to reproduce below:]

  1. toggle travis-ci-status several times out of impatience.

Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: status-bar package, v0.74.0

Stack Trace

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/status-bar-view.js:74

Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
  at Error (native)
  at status-bar.StatusBarView.addLeftTile (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/status-bar-view.js:74:22)
  at BuildStatusView.module.exports.BuildStatusView.attach (/Users/mechko/.atom/packages/travis-ci-status/lib/build-status-view.coffee:35:34)
  at BuildStatusView.module.exports.BuildStatusView.toggle (/Users/mechko/.atom/packages/travis-ci-status/lib/build-status-view.coffee:50:8)
  at atom-workspace.<anonymous> (/Users/mechko/.atom/packages/travis-ci-status/lib/build-status-view.coffee:18:72)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:180:20)

Commands

     -4:45.4.0 core:copy (atom-text-editor.editor.is-focused)
     -4:42.4.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)
     -4:40.7.0 core:save (atom-text-editor.editor.is-focused)
     -4:36 find-and-replace:show (atom-text-editor.editor.is-focused)
     -4:34.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -4:33.9.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -4:33.9.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -4:33.2.0 core:move-right (atom-text-editor.editor.is-focused)
     -4:32.7.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -4:31.5.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:11 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:08.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:08.9.0 travis-ci-status:toggle (atom-text-editor.editor)
     -0:03.8.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:01.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:01.9.0 travis-ci-status:toggle (atom-text-editor.editor)

Config

{
  "core": {
    "disabledPackages": [
      "symbols-view",
      "themed-settings"
    ],
    "excludeVcsIgnoredPaths": false,
    "themes": [
      "atom-material-ui",
      "solarized-dark-syntax"
    ]
  }
}

Installed Packages

# User
Ensime, v0.14.0
atom-ctags, v4.1.4
atom-material-ui, v0.4.10
file-icons, v1.5.8
flex-tool-bar, v0.4.2
git-plus, v5.2.2
language-scala, v1.1.3
last-cursor-position, v0.9.0
linter, v1.0.8
linter-scalac, v0.3.4
project-manager, v1.15.10
scala-format, v0.1.8
tool-bar, v0.1.8
travis-ci-status, v0.15.1
wakatime, v4.0.11

# Dev
No dev packages

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.174.0
System: Mac OS X 10.10.1
Thrown From: status-bar package, v0.57.0

Stack Trace

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

At /Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/status-bar-view.js:97

Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
  at Error (native)
  at status-bar.StatusBarView.addRightTile (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/status-bar-view.js:97:23)
  at StatusBarSummaryView.render (/Users/fruardum/.atom/packages/linter/lib/statusbar-summary-view.coffee:25:23)
  at LinterView.updateViews (/Users/fruardum/.atom/packages/linter/lib/linter-view.coffee:193:27)
  at /Users/fruardum/.atom/packages/linter/lib/linter-view.coffee:111:10
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app/src/pane-container.js:347:34
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:264:22)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:328:21)
  at tabs-tab.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:184:24)
  at space-pen-ul.jQuery.event.dispatch (/Users/fruardum/.atom/packages/project-manager/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4676:9)
  at space-pen-ul.elemData.handle (/Users/fruardum/.atom/packages/project-manager/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4360:46)

Commands

     -4:54.9 project-manager:save-project (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -4:52.6 core:confirm (input.native-key-bindings)
  2x -4:52.6 focus (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
     -4:44.7 project-manager:edit-projects (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
     -4:36.1 core:close (atom-text-editor.editor)
     -0:00.0 incompatible-packages:view (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)

Config

{
  "core": {
    "followSymlinks": true
  }
}

Installed Packages

# User
atom-beautify, v0.21.2
atom-lint, v0.20.1
autocomplete-plus, v1.1.0
behat-atom, v0.1.2
coffee-lint, v0.7.3
jsonlint, v1.0.0
language-twig, v1.5.2
linter, v0.10.1
linter-csslint, v0.0.11
linter-flow, v0.1.3
linter-haml, v0.1.0
linter-php, v0.0.11
linter-rubocop, v0.2.1
linter-ruby, v0.1.4
linter-scss-lint, v0.0.11
php-twig, v3.0.0
project-manager, v1.15.0
rsense, v0.6.0
ruby-block-converter, v3.0.0
script, v2.16.0
symbols-tree-view, v0.3.2
symfony-snippets, v0.3.0

# Dev
No dev packages

/cc @atom/core

hide statusbar

would be nice if the statusbar can be hidden via keyboard shortcut.

status-bar.prependRight is deprecated.

Use ::addRightTile({item, priority}) instead.

status-bar.prependRight (C:\Users\shunsuke_ssd\AppData\Local\atom\app-0.190.0\resources\app\node_modules\status-bar\lib\status-bar-view.js:125:12)
[object Object].prependRight (C:\Users\shunsuke_ssd\AppData\Local\atom\app-0.190.0\resources\app\node_modules\status-bar\lib\main.js:52:36)

Display hyperlink URLs in the Status Bar

It would be nice if there was an option for the Status Bar to display the URL of a link when hovering over it with the mouse. Mimicking standard Browser behaviour. I'm mainly referring to links displayed in the Settings/Packages etc. views as opposed to any full URLs already displayed in the text editor view itself.

hyperlink_statusbar

Links on the titles and author's usernames of packages (for ex.) are, of course, obvious as to where they point because there is a set convention for what they lead to. But the primary usefulness of this feature I think would be for the more general 'in page' links like those shown above. Plus, in the Settings view at least, there should be plenty of available free space for display.

Add soft tab and tab width

  • Whether soft or hard tabs are configured
  • Tab width
  • Allows you to change the value for the current editor or auto-configure based on the content

More infos in line counter

It would be useful to change "row,column" to "row,column/totalrows"; or maybe better "row,column/percentoftotal"; currently we need to rely visually on the scrolling bar.

Document usage from other packages

It seems like other packages can hook into this plugin by using `atom.workspaceView.statusBar.appendLeft' and other public API calls. It would be nice if this was formally documented :)

status-bar.prependRight is deprecated.

Use ::addRightTile({item, priority}) instead.

status-bar.prependRight (C:\Users\shunsuke_ssd\AppData\Local\atom\app-0.190.0\resources\app\node_modules\status-bar\lib\status-bar-view.js:125:12)
[object Object].prependRight (C:\Users\shunsuke_ssd\AppData\Local\atom\app-0.190.0\resources\app\node_modules\status-bar\lib\main.js:52:36)

TypeError: undefined is not a function

Status Bar 0.43.0

error on run:

TypeError: undefined is not a function
at DeprecationCopStatusBarView.module.exports.DeprecationCopStatusBarView.update (/opt/atom/resources/app/node_modules/deprecation-cop/lib/deprecation-cop-status-bar-view.js:59:21)
at DeprecationCopStatusBarView.update (/opt/atom/resources/app/node_modules/deprecation-cop/lib/deprecation-cop-status-bar-view.js:3:61)
at DeprecationCopStatusBarView.module.exports.DeprecationCopStatusBarView.afterAttach (/opt/atom/resources/app/node_modules/deprecation-cop/lib/deprecation-cop-status-bar-view.js:49:12)
at callAttachHook (/opt/atom/resources/app/node_modules/space-pen/lib/space-pen.js:333:107)
at [object Object].jQuery.fn.(anonymous function) as append
at StatusBarView.module.exports.StatusBarView.appendRight (/home/ti/.atom/packages/status-bar/lib/status-bar-view.coffee:52:17)
at /opt/atom/resources/app/node_modules/deprecation-cop/lib/main.js:41:88
at /opt/atom/resources/app/node_modules/emissary/lib/emitter.js:85:24
at PackageManager.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/emissary/lib/emitter.js:118:15)
at PackageManager.module.exports.PackageManager.activate (/opt/atom/resources/app/src/package-manager.js:87:19)
at Atom.module.exports.Atom.startEditorWindow (/opt/atom/resources/app/src/atom.js:373:21)
at Object. (/opt/atom/resources/app/src/window-bootstrap.js:14:8)
at Object. (/opt/atom/resources/app/src/window-bootstrap.js:20:4)
at Module._compile (module.js:455:26)
at Object.Module._extensions..js (module.js:473:10)
at Module.load (/opt/atom/resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at window.onload (file:///opt/atom/resources/app/static/index.js:20:25)

status-bar.prependRight is deprecated.

Use ::addRightTile({item, priority}) instead.

status-bar.prependRight (C:\Users\shunsuke_ssd\AppData\Local\atom\app-0.190.0\resources\app\node_modules\status-bar\lib\status-bar-view.js:125:12)
[object Object].prependRight (C:\Users\shunsuke_ssd\AppData\Local\atom\app-0.190.0\resources\app\node_modules\status-bar\lib\main.js:52:36)

Add an option for placing the status bar on top

I was trying to get the status bar to be at the top, not bottom. Well, I got something usable, but its behavior is weird. I'm not yet good at neither JS or CS, even though I'm trying. And on top of that, it's not a check in configuration, it's a hardcoded mod, not cool.

So far, I swapped a call to addBottomPanel for a call to addTopPanel in main.js. It works fine. But at launch, it gets weird:

Weird screenshot

Notice the status bar sticking out into the tree view. After I open any file, this effect is just gone, even if I close everything again.

Effect gone

What could be causing this?

I'd appreciate it if this was implemented in the package anyway. I'm not feeling too confident about doing that myself just yet :P

RIght-clicking the statusbar draws a line

  • downloaded atom
  • installed status bar via package manager (or maybe it was there, not sure now)
  • right-clicked the status bar, horizontal ~30 px grey line was drawn

Seems like empty menu top or something. Another right-click hides it again
Running on Ubuntu Linux 13.10.

status-bar.prependRight is deprecated.

  • Atom version : 0.190.0
  • status-bar version : 0.67.0

Use ::addRightTile({item, priority}) instead.

status-bar.prependRight (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/status-bar-view.js:125:12)
[object Object].prependRight (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/main.js:52:36)

Long file paths get cut off

In some cases, my package would edit temporary files, but the long filen path is really annoying. Is there api to overwrite the default file path?

screen shot 2014-11-06 at 9 46 14 am

It'd be nice to have a character count of selected text

I can only speak to seeing this in the wild via Coda, but I know that when I highlight text, in the same area that it gives line/column position, it also gives a character count of the selected text.

So it would be something like: [line]/[col] ([count])

Uncaught TypeError: undefined is not a function

[Enter steps to reproduce below:]

nothing special - I'm just opening one of my recent projects. The issue happens with all of them. Before the update, everything was fine.

Atom Version: 0.182.0
System: Microsoft Windows 7 Enterprise
Thrown From: status-bar package, v0.63.0

Stack Trace

Uncaught TypeError: undefined is not a function

At C:\Users\andre lerche\.atom\packages\status-bar\lib\git-view.coffee:81

TypeError: undefined is not a function
  at status-bar-git.GitView.getRepositoryForActiveItem (C:\Users\andre lerche\.atom\packages\status-bar\lib\git-view.coffee:81:30)
  at status-bar-git.GitView.update (C:\Users\andre lerche\.atom\packages\status-bar\lib\git-view.coffee:93:13)
  at C:\Users\andre lerche\.atom\packages\status-bar\lib\git-view.coffee:69:10
  at Emitter.module.exports.Emitter.emit (C:\Users\andre lerche\AppData\Local\atom\app-0.182.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
  at Task.callback (C:\Users\andre lerche\AppData\Local\atom\app-0.182.0\resources\app\src\git-repository.js:429:34)
  at C:\Users\andre lerche\AppData\Local\atom\app-0.182.0\resources\app\src\task.js:68:72
  at Task.module.exports.Emitter.emit (C:\Users\andre lerche\AppData\Local\atom\app-0.182.0\resources\app\node_modules\emissary\lib\emitter.js:118:15)
  at ChildProcess.<anonymous> (C:\Users\andre lerche\AppData\Local\atom\app-0.182.0\resources\app\src\task.js:81:31)
  at ChildProcess.emit (events.js:119:17)
  at handleMessage (child_process.js:326:10)
  at Pipe.channel.onread (child_process.js:354:11)

Commands

     -0:13.4 open-recent:open-recent-path-4 (atom-pane.pane.active)
     -0:13.3 tree-view:toggle-focus (atom-workspace.workspace.scrollbars-visible-always.theme-one-light-syntax.theme-one-light-ui)

Config

{
  "core": {
    "ignoredNames": [
      "*.git",
      "*.hg",
      "*.svn",
      "*.DS_Store",
      "*.Thumbs.db",
      "*.exe",
      "*.db"
    ],
    "disabledPackages": [
      "tabs",
      "save-session",
      "vim-mode",
      "wrap-guide",
      "keyboard-localization"
    ],
    "projectHome": "d:\\dev\\git",
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  }
}

Installed Packages

# User
atom-alignment, v0.11.0
atom-color-highlight, v3.0.8
atom-justify, v0.4.1
autocomplete-atom-api, v0.5.0
autocomplete-css, v0.4.0
autocomplete-html, v0.3.0
autocomplete-plus, v2.2.0
coffee-compile, v0.11.0
color-picker, v1.4.4
column-select, v0.1.0
compare-files, v0.4.1
emmet, v2.3.4
file-icons, v1.5.0
highlight-selected, v0.9.1
language-coffee-script-angular, v2.2.0
linter, v0.12.0
linter-coffeelint, v0.1.7
linter-csslint, v0.0.11
linter-jshint, v0.1.0
linter-pylint, v0.2.1
linter-xmllint, v0.0.5
minimap, v4.3.1
minimap-find-and-replace, v4.1.0
open-recent, v2.2.0
rulerz, v0.2.2
status-bar, v0.63.0
Sublime-Style-Column-Selection, v1.2.3
symbols-tree-view, v0.6.1
tree-view-open-files, v0.2.3

# Dev
No dev packages

Add prepend methods

Hey,

As a package author I'd like also to prepend panels to left and right bar. ๐Ÿ‘ท

cheers :)

Enable/disable parts of the status bar

As we already know in another issue the task bar can quickly be overloaded. Also I find myself having our long feature-branch-names-with-some-stuff consume the whole status bar. Honestly, I don't need to see the branch name there. Or at least not all the time.
Would be nice if I could for example hide the branch part.
Or just don't show the name of the branch but rather give the branch symbol a tooltip having the name.
What do you think?

Can't create a new file

I have no clue why and how, but it seems I can't create a new file, neither using FIle > New file nor the keybinding.

I updated form 0.180.0 to 0.181.0 this morning. No other update nor package install.

Atom Version: 0.181.0
System: Microsoft Windows 8.1
** User installed packages **

autocomplete-plus, v2.1.6
color-picker, v1.4.4
column-select, v0.1.0
emmet, v2.3.3
file-icons, v1.4.11
flatland-dark-ui, v0.2.3
linter, v0.11.1
linter-csslint, v0.0.11
linter-jshint, v0.1.0
linter-php, v0.0.11
open-last-project, v0.3.1
tomorrow-night-eighties, v0.4.0

Add tooltips

To things like the git icons and grammar selector to provide more deets.

Add package info to status bar

This could be put in a separate package but I'm opening it here to discuss.

Some ideas for things to put in the status bar when the opened project is an Atom package:

  • Linked status for regular and dev mode
  • Published version
  • Number of stars
  • Number of downloads

Initially talked about over in atom/package-generator#15

/cc @smashwilson

Version control modification counter causes overlapping text on the bottom toolbar

Here is what my bottom toolbar looks like when a file with no modifications is open:
screen shot 2015-07-08 at 3 51 53 pm

But when I switch tabs to a file with modified lines and the version control modification widget is displayed, it looks like this:
screen shot 2015-07-08 at 3 52 08 pm

Switching between two files that have not been modified doesn't cause this issue. If I resize my window, it fixes the status bar and everything is displayed and truncated normally. I did the same test with the linter package disabled, it is not caused by that plugin.

This is on Atom 1.0 running on OS X.

Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined

Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined

Atom Version: 0.155.0
System: Mac OS X 10.10.1
Thrown From: status-bar package, v0.52.0

Steps To Reproduce

  1. ...
  2. ...

Stack Trace

At /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1300

TypeError: Cannot read property 'getBufferPosition' of undefined
  at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1300:34)
  at status-bar-cursor.CursorPositionView.updatePosition (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:48:73)
  at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:39:19)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:17:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app/src/pane-container.js:347:34
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:250:22)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:314:21)
  at Pane.module.exports.Pane.activateItemAtIndex (/Applications/Atom.app/Contents/Resources/app/src/pane.js:308:19)
  at Pane.module.exports.Pane.activatePreviousItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:279:21)
  at Pane.module.exports.Pane.removeItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:379:16)
  at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:443:16)
  at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:174:22)
  at space-pen-ul.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4676:9)
  at space-pen-ul.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4360:46)

/cc @atom/core

Slow "activation time"

time cop consistently reports that this package takes the longest of all my packages to activate (this is a consistent result each time I check time-cop):

screen shot 2015-06-17 at 1 15 37 am

Any way I can speed this up?

Deprecation Cop warning: TextBuffer.on is deprecated.

TextBuffer::on is deprecated. Use event subscription methods instead.

TextBuffer.on (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1194:16)
status-bar.subscribeAllToBuffer (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/status-bar-view.js:152:35)
<unknown> (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/status-bar/lib/status-bar-view.js:41:17)
Emitter.emit (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)

Clicking on links in status bar focuses them

Not quite sure if this counts as a bug or enhancement, but I've noticed that clicking on any links in the status bar focuses them, when it should keep focus on whatever was focused before clicking on them. However, the correct element is focused if you dismiss the modal by clicking away from it.

untitled

Atom 0.206.0

Not showing git info (ubuntu)

Not showing info (looks like not working) after todays fresh install building from source on Linux (Ubuntu 64 bits).
It is actually enabled but showing nothing.

status-bar-right is floated

I'm dealing with some layout irregularities in Zen w/r the status-bar and I noticed that the right halve of the status bar still uses the pull-right class which floats it to the right. With an !important even. Wouldn't it be cleaner to use align-self: flex-end? That would coincidentally also solve my problem :) Is this a design decision or just some Bootstrap left-over? @simurai?

Add git branch switcher to branch indicator?

Could probably do this myself if it's desired. Something similar to how the Mac app does it:

screen shot 2013-10-01 at 4 03 43 pm

Use case: I've gotten to the habit of just hitting atom . in directories. I'm too lazy to switch out to another app when I realize I want a new or different branch.

Include a tooltip for every icon without a label

Description

Opened a file, saw this in the bottom-right corner:

huh
Had no idea what it was trying to tell me, and no tooltip was available, either. I resorted to kicking open the developer tools, inspecting the icon in the console, and checking the class attribute to ascertain its purpose.

I'd add a tooltip for that icon, as well as anything else that indicates something that mightn't be immediately apparent to the user. Sure, it might be obvious after clicking it, but it's generally not good practice in UX to encourage users to press something in order to understand its purpose.

erm

I'd also make the deprecation cop use the same visual cue (pointer cursor, underlined text, etc) as the language and encoding menus. I understand that's a menial issue, though, and one that's better off being filed as a separate issue in the appropriate repo.

Specs

  • Platform: Mac OS/X 10.9.5 (Screw Yosemite)
  • Processor: 2.3 GHz Intel Core i7
  • Memory: 16 GB 1600 MHz DDR3
  • Atom version: 0.206.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.