hyperlayout icon indicating copy to clipboard operation
hyperlayout copied to clipboard

Can't find .hyperlayout in my home directory

Open nobleach opened this issue 7 years ago • 3 comments

I just gave this plugin a shot as it seemed like it may have some features I miss from Tmux. I just used a bare example setup of two horizontal panes (from the README.md). Even though I saved this file to my home directory, I get an error that says the file cannot be found.

screenshot 2017-08-11 22 44 06

I guess I can try the other methods, but shouldn't this work?

nobleach avatar Aug 12 '17 04:08 nobleach

@nobleach There's likely a syntax error in your layout. Try something simple, like:

[
  [
    ["echo Hello", "echo World"]
  ]
]

and see if it works?

designorant avatar Oct 13 '17 14:10 designorant

Assuming you created the .hyperlayout file containing the layout configuration, the problem seems that you don't have hyperlayout installed globally. So, try with npm install -g hyperlayout.

I ran first npm install -g hyperlayout hpm-cli and it installed hyperlayout inside ~/.hyper_plugins/node_modules/hyperlayout.

javiergarval avatar Oct 25 '17 11:10 javiergarval

Perhaps the issue should be renamed. The problem may be in the error message. Since when there is a .hyperlayout file with bad syntax the message is Can't find any hyperlayout preset (.hyperlayout, package.json, ~./hyperlayout)

I'd call this a UI feature story to improve the error message when a configuration file exists but may have a format error.

philoserf avatar Jan 06 '18 05:01 philoserf