Giter Site home page Giter Site logo

jieverson / hyperemoji Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 2.0 69 KB

:bowtie: Emoji :keyword: plugin for Hyper.

Home Page: https://www.npmjs.com/package/hyperemoji

JavaScript 100.00%
hyper hyper-app hyperterm hyper-plugin emoji emojilib terminal-app

hyperemoji's People

Contributors

artfuldev avatar chabou avatar ciriarte avatar ekmartin avatar greenkeeperio-bot avatar jameslintaylor avatar jieverson avatar leo avatar newyork-anthonyng avatar rauchg avatar simonexmachina avatar soul-wish avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

tjbenton andezzat

hyperemoji's Issues

random spaces are getting added to output

  • OS version and name: Mac 10.12.6 Sierra
  • Hyper.app version: 1.10.14, build ec19526
  • The issue is reproducible in vanilla Hyper.app: The bug doesn't happen if hyperemoji isn't installed
  • .hyper.js:
Configuration
module.exports={
  config: {
    fontSize: 15,
    fontFamily: 'Source Code Pro',
    cursorColor: 'rgba(248,28,229,0.75)',
    cursorShape: 'BLOCK',
    foregroundColor: '#fff',
    backgroundColor: '#000',
    borderColor: '#333',
    css: '',
    termCSS: '',
    padding: '0px 5px 5px',
    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'
    },
    shell: '',
    summon: {
      hideDock: false,
      hideOnBlur: false,
      hotkey: 'Option+`'
    }
  },
  plugins: [
    'hyperterm-1password',
    'hyperterm-tabs',
    "hypertitle",
    "hypercwd",
    "hyperterm-material",
    "hyperterm-summon",
    "hyper-search",
    "hyperterm-tab-icons",
    "hyperemoji",
    "hyper-pane"
  ],
  localPlugins: []
}

Issue

I'm encountering a very strange bug where random spaces seem to be getting added to the output. But only when it's printed in hyper.

Given the following code I would expect timestamp to be something like this 10:31:36, but instead I'm getting results like this 10:31: 36 when It logs it in the console.

const now = new Date()
const timestamp = [ now.getHours(), now.getMinutes(), now.getSeconds() ]
  .map((number) => number < 10 ? `0${number}` : number)
  .join(':')

here's the code I used to test if there was a space, and to see if there were any special characters that might have been added.

console.log('')
console.log('timestamp:', timestamp)
console.log('JSON.stringify(timestamp):', JSON.stringify(timestamp))
console.log("timestamp.replace(/\\s+/g, ''):", timestamp.replace(/\s+/g, ''))
console.log('/\\s/.test(timestamp):', /\s/.test(timestamp))
console.log("timestamp.split(''):", timestamp.split(''));
console.log('')

Here's the output that I get from Hyper

screen shot 2017-09-12 at 10 36 17 am

Here's the output that I get from ITerm 2

screen shot 2017-09-12 at 10 37 04 am

Here's the output that I get from Terminal

screen shot 2017-09-12 at 10 38 09 am

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.