Giter Site home page Giter Site logo

hyper-savetext's Introduction

hyper-savetext

⛔️ This tool is now deprecated, with no plans for future-maintenance. ⛔️

Build Status npm version

hyper-savetext is a text export plugin for Hyper. It enables you to save/export text within the terminal to a text file. The feel and functionality of the plugin has been modeled after the same feature within macOS's Terminal.app. Currently, Hyper has been tested on macOS, Linux, and Windows with the stable version of Hyper 1.4.8, 2.1.1, and 3.0.2.

Install

Using Hyper's CLI

hyper install hyper-savetext

Manually

To install, edit ~/.hyper.js and add "hyper-savetext" to plugins:

plugins: [
  "hyper-savetext",
  // other plugins...
],

Using the plugin

You have the option to save all the text in the terminal or just the selection. The save button is under Hyper's 'Shell' menu on macOS, and the 'File' menu on Window and Linux. Saving can also be done through the keybindings Cmd-S (Ctrl for Windows/Linux) or Cmd-Shift-S, which corresponds to saving all the terminal text or just the current selection, respectively.

Contributing

Feel free to contribute to hyper-savetext by requesting a feature, submitting a bug or contributing code.

To set up the project for development:

  1. Clone the repo to ~/.hyper_plugins/local/hyper-savetext
  2. Add this to your .hyper.js:
  localPlugins: [
    // local plugins...
    'hyper-savetext'
  ],
  1. Reload terminal window

Authors

Credit

Originally suggested by @mhamdan95 as a plugin request on Hyper's issue tracker.

Theme

License

MIT

code style: prettier

hyper-savetext's People

Contributors

mrrsnn avatar neil-orans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hyper-savetext's Issues

hyper-savetext throw error

Hi Team,

I have just installed this plugin on my macOS and it fail to load plugin and throwing error all time and not working

Error notification appears after closing a tab

When I close a tab, I get an error notification and this in the console:

image

Hyper Version: Hyper 2.1.0-canary.1 (canary)
All plugins installed:

  hyper-tabs-enhanced (0.4.2),
  hypercwd (1.2.2),
  hyper-savetext (1.0.1)

OS: macOS High Sierra

Plugin does not work at all

System:
    Windows 10.0.16299.371 Pro x64
    Hyper 2.0.0

This plugin causes the following error upon startup of Hyper:
[Notification] Plugin error: Error occurred. Check Developer Tools for details
but no additional information shows up in the dev console.

Also, the Export text as... menu option is unresponsive, and the Export selected text as... option remains disabled when a selection is made.

`Export selected text as...` doesn't work if anything before current command is selected

When anything before the current command is selected, the Export selected text as... option remains disabled.

Microsoft Windows [Version 10.0.16299.371]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\>this_is_the_current_command

For example, if this_is_the_current_command or any part of that text is selected, the option is enabled. If the selection includes anything before or including the C of C:\>, the option is disabled. So in this case, :\>this_is_the_current_command would be the largest possible selection that works with the selected text function.

Won't "Export Text As" or "Export Selected Text As"

So I recently came across this plugin and could have very good use for it. However it's not working for me.

MacOS 10.14.5
Hyper 3.0.2 (Stable)

Plugins:
hyper-savetext-not-working-1

hyper-savetext-not-working-2

I tried uploading a video but unfortunately not supported. Basically when I select the menu options under Shell they don't do anything.

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.