GithubHelp home page GithubHelp logo

hippothebrave / prettycopy Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 5.18 MB

A library for clean, format-friendly copy-pasting.

License: Apache License 2.0

Python 95.41% Makefile 4.59%
clipboard copy-paste formatting

prettycopy's Introduction

Hi there ๐Ÿ‘‹

YouTube Channel Views Coolness Level

Hey everyone! I'm hippothebrave (she/her), but just call me Hippo. I'm a senior at Barnard College studying computer science and history. I'm new to GitHub, but excited to get started!

Languages known: Python, Java, C, SQL, Javascript, HTML/CSS

prettycopy's People

Contributors

dependabot[bot] avatar hippothebrave avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

cargo1284

prettycopy's Issues

Add integration with AutoHotKey

It looks like AutoHotKey is a Windows scripting language for remapping keys and buttons. (https://www.autohotkey.com/)

AutoHotKey DLL apparently extends that functionality to other languages, including Python. (https://github.com/HotKeyIt/ahkdll)

More appealingly, there's AHK, a Python wrapper class (https://github.com/spyoungtech/ahk ). For hot keys, it references the original documentation here (https://www.autohotkey.com/docs/v1/Hotkeys.htm).

This would be fantastic to use with this library -- perhaps you could run a function (or press a button on the UI) that would temporarily remap Ctrl+V to one of the PrettyCopy functions, and then revert the mapping as soon as you're done using it?

And maybe (long-term) there'd be a way to integrate PrettyCopy directly into Microsoft Word!

May require quite a bit of research.

Optimize code to make the library run faster

The program is weirdly slow considering how simple most of it is--I have to wait a few seconds for it to run. The code is definitely not optimized and I'm sure it could be made a lot faster.

Add integration with Google Docs

Add integration with google docs - possibly using the Apps Script API - so that you can choose your mode of copy-pasting straight from the banner.

UI for functions

Create better UI for copy-pasting functions -- they are "hidden" inside mytest.py, accessible only through command-line.

Smart copying

Would it be possible to add a function that can recognize whether it needs to add extra spaces or not, and distinguish between extraneous line breaks and actual end-of-sentences?

Errors in the documentation

Lots of typos in the documentation. ("copy and pase") as well as logical errors (tells users to place command-line input "to the left of the flag" instead of to the right, constantly using the outdated prettycopy.prettycopy import instead of the current prettycopy import.)

Get rid of double-spacing

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Add a function that gets rid of unnecessary spacing!

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Add argument checking for safety

Title says it all. Currently, I'm not checking what is on the clipboard, and that's an obvious potential problem--what if someone tries to prettycopy an image file?

_cleanlines anti-pattern

_cleanlines is pass-by-value: it changes the input instead of giving an output. That's probably not right.

Low priority.

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.