Git Product home page Git Product logo

hyper-statusline's People

Contributors

chrisdrackett avatar elmasse avatar goatslacker avatar jtrussell avatar pevecyan avatar vinkla 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

hyper-statusline's Issues

dirty and arrows indicators not showing

screen shot 2017-02-12 at 8 43 25 pm

I'm on the latest version of Hyper and I disabled other plugins, so I don't think it's another one interfering. There's nothing in the console.

screen shot 2017-02-12 at 8 47 20 pm

It looks like the problem is the background-color for the icons is being set to undefined… I'm not overriding them so for some reason the default/fallback at config.colors.lightYellow and config.colors.blue must be undefined.

Don't force new tab to open in current directory

Normally when a new tab is opened in Hyper it opens at the user's home directory, as is conventional in most shells / terminals.

With hyper-statusline installed, new tabs open in the same directory as the PWD in the tab which is focused when Cmd+T is pressed.

Regardless of which behaviour you or I prefer, this type of configuration / behaviour change is outside the scope of a statusline plugin. At the very least, it should be optional, but really it is for a different plugin – better still, a config option in Hyper...

decorateHyper should pass through custom children

From the hyper docs:

We encourage you to maintain compatibility with other decorators. Since many can be set, don't assume that yours is the only one. For example, if you're passing children, compose potential existing values:

render () {
  const customChildren = Array.from(this.props.customChildren)
    .concat(<p>My new child</p>);
  return <Tab {...this.props} customChildren={customChildren} />
}

It looks like the decorateHyper function currently overrides this.props.customChildren rather than appending to it.

Icons path broken on Windows

Hi, I am using Hyper v1.0.0 on my Win 10
The console shows this error:
screenshot 229

The path isn't correct
it should be: file:///C:/Users/Ale/.hyper_plugins/node_modules/hyper-statusline/icons/dirty.svg

Option to change font size

Could we get an option to change the font size of the text? My eyes aren't great these days and being able to make the text bigger would be nice.

Npm bug?

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"! win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

Makes Hyper and subprocesses run really slow

I initially thought this was an issue with Hyper, but it turns out disabling hyper-statusline solves it.

I have a task which takes about 30 seconds to run when using iTerm (or, it turns out, vanilla Hyper).
When using Hyper with hyper-statusline enabled, the same task takes around 80 seconds - in other words, more than twice as long.

The task in question is a private (unpublished - in development) Node.js application which is running Prince in a child process to render a PDF from an HTML file.

I haven't tried doing any further debugging – I don't have much time at the moment so I've simply gone back to iTerm for now. But if you have any ideas I will try to check them out, likewise if you want me to test anything else…

No git status information shown while on detached commit

First off, let me say that I've been enjoying hyper-statusline very much. It's a great addition to my Hyper experience! 🎉

One request: Currently, when you're on a git branch, hyper-statusline shows the branch name in the lower-right corner. But if you check out a commit that isn't the head of a branch, the corner is blank. I'd enjoy seeing the SHA of the current commit there.

loss of functionality after switch to zsh

I've been using this plugin with Hyper (v1.1.0 currently), recently after a switch to zsh on macOS, the functionality seems to go dead. That is, I've set Hyper to use bash as the default shell, and the plugin works fine; when I switch over to zsh, the plugin stops working. Is zsh not supported? I'm having trouble identifying the source of this error.

[Feature Request] Split Window Status Line

Not sure if it was intensional, but when you split the window, you share the status line across all splits, and statusline shows the one you have focusing:

image

I would love to be able to have one status line per split... not sure if everyone prefers that or having a option to have a global one and one per split.

Great work on the plugin btw, loved it. 🎉

show branch name during rebase

I'd like to replace my PS1 template with this plugin but I need to see the name of the branch which is being rebased.

These are the outputs I see with my current prompt:

# on a regular branch
master

# during a rebase; this is what the plugin doesn't display
(no branch, rebasing master)

This is the function I use for getting the info:

function parse_git_branch {
  ref=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1 /')
  if [ "$ref" != "" ]; then
    echo -e "\033[2;37m@\033[0;37m ${ref#refs/heads/}"
  fi
}

Is this something you would be willing to add? I might take a crack at it myself eventually.

Not working on windows

I'm working on Windows 8.1
I'm in directory with github .git folder and nothing showing, no error messages in console

Hyper 1.2.1

windows

Plugins

I really like this plugin compared to the alternative. It's clean and simple and I feel like it has a lot of room for a plugin architecture so that devs could add something like:

  • vcs status (branch/commit/etc)
  • clock
  • Machine Status (battery/memory)
  • New email status
  • Basically whatever you could do in vim/emacs with a status line

Thoughts?

limited functionality on Ubuntu 14.04

Just recently began using this plugin with Hyper 1.0.0 and Hyper 1.0.1, and encountered an error (running Ubuntu 14.04). In particular, a sort of statusline appears (basically, just a lightly colored area at the bottom of the Hyper window), but the appropriate icons fail to display entirely. Based on a cursory look, it doesn't seem like any related issues have been reported.

Doesn't work well with long paths

The plugin does not work with with long paths (Java project...). The path just overflows and one can't see the whole thing. It also pushes the git branch information out.

Long Path

Doesn't work on Windows :(

Windows 10, Hyper 1.0.0

I'm also getting these errors in the devtools. Although they correspond to the SVG icons, they are straightforward and might shed some light on the issue:

errors

statusline got wrong color.

this is my plugins

 plugins: [
    "hyper-tabs-enhanced",
    "hyperlinks",
    "hyperterm-alternatescroll",
    "hyper-statusline",
    "hyper-dracula"
  ],

BUT it got a statusline like this:

f9116a602b6ad8e5b0977696cd44cf72

hyper: 1.4.2

[email protected] breaks styles

I'm pretty sure some CSS selectors must have changed or something… I updated to the latest version of Hyper and the status line looks like this now.

screen shot 2017-09-05 at 11 23 25 am

Feature Request: Show "git behind"

Hey,

thanks for this great hyper plugin. Just wondering if you'd be interested in adding an indicator for the amount of commits the current branch is behind the tracked branch?

Empty status bar

The bar appears but the folder or git information doesn't show at all.

hyper

Below is my hyper config file:

// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.

module.exports = {
  config: {
    // choose either `'stable'` for receiving highly polished,
    // or `'canary'` for less polished but more frequent updates
    updateChannel: 'stable',

    // default font size in pixels for all tabs
    fontSize: 16,

    // font family with optional fallbacks
    fontFamily: '"Fira Code"',

    // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
    // cursorColor: 'rgba(248,28,229,0.8)',

    // terminal text color under BLOCK cursor
    // cursorAccentColor: '#000',

    // `'BEAM'` for |, `'UNDERLINE'` for _, `'BLOCK'` for █
    cursorShape: 'UNDERLINE',

    // set to `true` (without backticks and without quotes) for blinking cursor
    cursorBlink: true,

    // color of the text
    // foregroundColor: '#fff',

    // terminal background color
    // opacity is only supported on macOS
    // backgroundColor: '#000',

    // terminal selection color
    // selectionColor: 'rgba(248,28,229,0.3)',

    // border color (window, tabs)
    // borderColor: '#333',

    // custom CSS to embed in the main window
    css: '',

    // custom CSS to embed in the terminal window
    termCSS: '',

    // set to `true` (without backticks and without quotes) if you're using a
    // Linux setup that doesn't show native menus
    // default: `false` on Linux, `true` on Windows, ignored on macOS
    // showHamburgerMenu: '',

    // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons
    // additionally, set to `'left'` if you want them on the left, like in Ubuntu
    // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS
    // showWindowControls: '',

    // custom padding (CSS format, i.e.: `top right bottom left`)
    // padding: '12px 14px',

    // the full list. if you're going to provide the full color palette,
    // including the 6 x 6 color cubes and the grayscale map, just provide
    // an array here instead of a color map object
    // colors: {
    //   black: '#000000',
    //   red: '#ff0000',
    //   green: '#33ff00',
    //   yellow: '#ffff00',
    //   blue: '#0066ff',
    //   magenta: '#cc00ff',
    //   cyan: '#00ffff',
    //   white: '#d0d0d0',
    //   lightBlack: '#808080',
    //   lightRed: '#ff0000',
    //   lightGreen: '#33ff00',
    //   lightYellow: '#ffff00',
    //   lightBlue: '#0066ff',
    //   lightMagenta: '#cc00ff',
    //   lightCyan: '#00ffff',
    //   lightWhite: '#ffffff',
    // },

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    //
    // Windows
    // - Make sure to use a full path if the binary name doesn't work
    // - Remove `--login` in shellArgs
    //
    // Bash on Windows
    // - Example: `C:\\Windows\\System32\\bash.exe`
    //
    // PowerShell on Windows
    // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
    shell: '/bin/zsh',

    // for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`)
    // by default `['--login']` will be used
    shellArgs: ['--login'],

    // for environment variables
    env: {},

    // set to `false` for no bell
    bell: 'SOUND',

    // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard
    copyOnSelect: true,

    // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no
    // selection is present (`true` by default on Windows and disables the context menu feature)
    // quickEdit: true,

    // URL to custom bell
    // bellSoundURL: 'http://example.com/bell.mp3',

    // for advanced config flags please refer to https://hyper.is/#cfg
  },

  // a list of plugins to fetch and install from npm
  // format: [@org/]project[#version]
  // examples:
  //   `hyperpower`
  //   `@company/project`
  //   `project#1.0.1`
  plugins: [
    'hyperterm-paste',
    'hyperlinks',
    'hyperterm-alternatescroll',
    'hyper-alt-click',
    'hyperterm-safepaste',
    'hyper-search',
    'hyperminimal',
    'hyperterm-panda',
    'hyper-statusline',
  ],

  // in development, you can create a directory under
  // `~/.hyper_plugins/local/` and include it here
  // to load it and avoid it being `npm install`ed
  localPlugins: [],

  keymaps: {
    // Example
    // 'window:devtools': 'cmd+alt+o',
  },
};

I am running Manjaro Linux 4.14.14 and hyper 2.0.0-canary.9

Request - Make directory and git branch click events optional

Add an option to let the user choose from what they want to do if they click on the directory or branch name.

Why? Some users may accidentally click on the directory or branch name and the plugin automatically open the directory or the browser.

Examples:

...
hyperStatusLine: {
  onDirectoryClick: 'none',
  onBranchClick: 'copyBranchName'
}
...

/*
  onDirectoryClick:
    'none'
    'copyDirectoryName'
    'openDirectory' // default
  onBranchClick
    'none'
    'copyBranchName'
    'copyBranchURL'
    'openBranchURL' // default
*/

none should be enough if copy to clipboard is not possible.

Allow customizing bg/fg colors based on cwd

I like status line because I can keep my prompt small, but sometimes I forget what directory I'm in. It's simple enough to glance down and read the path, but it might be cool to color code the bar based on cwd (or any arbitrary condition via a configuration callback?). Maybe even color the git branch portion separately so you can glance and see if you're on the master branch.

Down to work on this and contribute upstream, but wanted to shop the idea around before digging in. Totes down to do this as a fork as well.

hyper-statusline causes index.lock errors in large repos

when in a very large repo (8+gigs), hyper-statusline will interfere with git commands and cause a lock

fatal: Unable to create '<path to repo>/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.

Menu to change git branch

A potential feature idea… It occurred to me that clicking the name of the current branch could open a menu with a list of other existing branches, which could be switched to by clicking on them.

What do you think? May be quite a big job to implement (I haven't really thought yet about how it would be implemented…)

Update cwd on `cd`

Looks like it only updates on session based events. I'd expect the cwd to update on changing directories as well.

Git SSH support

It would be nice if clicking the branch name took you to the branch if the remote is git via SSH rather than HTTPS.

Option to disable transparent footer

With my theme (solarized dark) I find the footer isn't as visible as I'd like with the default transparency.

I override it by adding this to my Hyper options object:

    css: '.footer_footer { opacity: 1 !important; }',

Do you think a simple option to disable it would be useful to others, or am I alone in preferring that it be opaque?

prompt won't appear on linux

Hi,
I just installed hyper-statusline and when I launch Hyper, my prompt won't appear and it's impossible for me to input anything into the terminal.

empty-terminal

In the console i have the following error (which doesn't appear when I remove the plugin)
Uncaught TypeError: Cannot read property 'substr' of null -- bundle.js:47

Any idea why ?
Thanks :)

Git info not displaying in subfolder

The git repository detection is flawed.

My git repo does not have .git files in subfolder only in the main folder.

A better way to detect would be:

git rev-parse --is-inside-work-tree

Seems to be broken on Canary (2.0.2)

When initially launched on 2.0.2, this plugin seems to have no effect at all:

screen shot 2017-09-21 at 17 55 00

… but if I change the hyperStatusLine configuration, and hit save in my editor, the status-line suddenly appears (without, however, respecting the configuration I just set?)

screen shot 2017-09-21 at 17 56 18

Here's hoping you guys get a chance to give this some update-love! This is an essential part of Hyper for me, and I don't want it to break when 2.0 goes stable! <3

Issues on Hyper Reload

When reloading Hyper (eg. Cmd-R, not a full reload Shift-Cmd-R) the entire statusline loses context and well as the bash prompt. If you type clear the bash prompt comes back but not the statusline. Screenshot attached.

screen shot 2016-12-29 at 3 52 10 pm

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.