Giter Club home page Giter Club logo

sublimeprint's People

Contributors

davidlinse avatar drautb avatar fredrikw avatar freeella avatar svenax avatar tdhsmith 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sublimeprint's Issues

Using Virtual_PDF_Printer

I have Virtual_PDF_Printer for printing into pdf file. I already change "used_printer" parameter into it. Cups says that the job is already completed but I can't find the printed text. Where should SublimePrint generate it's output? Or is it support printing to pdf file already?

media does not appear to be respected

In User Preferences, I have

{
    "printer_1": "Brother_HL_2140_series",
...
        "prompt_printer": true,
        "media": "Letter"
}

(FWIW, I also have "DefaultMedia: Letter" in my ~/.enscriptrc)

The printer is still prompting for A4 paper.

enscript doesn't support UTF-8

As the title says.

Since the plugin is heavily dependent on enscript I would like to propose a solution which won't need a huge rewrite but is more of a workaround.

When printing a file with UTF-8 encoding you could issue a warning message and offer to try to encode the file using a different encoding, for example latin1, and then proceed to print. The Sublime API offers methods to change the encoding of a file. Or, if you don't want to do that, at least show a warning if someone tries to print a UTF-8 encoded file.

Right now it just prints gibberish without any prior warning.

When I try to print Sublime edit hangs

When I try to print Sublime edit hangs:

i.e. on OSX 10.8.2 the rainbow spinny wheel of doom occurs and Sublime is locked down.

I went to File > Print entire file

Unicode Decode Error

I get this error when trying to print:

Traceback (most recent call last):
File "/Users/ganders1/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 526, in run_
return self.run()
File "SublimePrint in /Users/ganders1/Library/Application Support/Sublime Text 3/Installed Packages/Simple Print Function.sublime-package", line 141, in run
File "SublimePrint in /Users/ganders1/Library/Application Support/Sublime Text 3/Installed Packages/Simple Print Function.sublime-package", line 103, in printer_command
File "SublimePrint in /Users/ganders1/Library/Application Support/Sublime Text 3/Installed Packages/Simple Print Function.sublime-package", line 77, in get_printer
File "./encodings/ascii.py", line 26, in decode
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 5: ordinal not in range(128)

I believe that this SO article may help.
http://stackoverflow.com/questions/10561923/unicodedecodeerror-ascii-codec-cant-decode-byte-0xef-in-position-1

Windows 10 - lpstat not found

Upon installation of this on Windows 10 with sublime3 build 3114, I receive the error lpstat not found when I try to print out a document.

Does lpstat.exe exist on Windows, is there an equivalent, can lpstat be used from a 3rd party which is compiled for Windows, is there a workaround.

Command 'enscript' not found on Win7

Using ST3 on a virtualized Win7 Pro.

Have carefully installed enscript from http://gnuwin32.sourceforge.net/packages/enscript.htm. (Used the zipped binaries). Checked the presence of enscript.exe and accompanying files in the bin folder. Set PATH to include the bin folder where enscript was installed.

SublimePrint was installed via Package Control. Verified the presence of 'Simple Print Function.sublime-package' in /AppData/Roaming/Sublime Text 3/Installed Packages. Restarted everything.

Receive error: "Command 'enscript' not found! Please review the documentation." when I attempt to print.

Am not a python programmer but review of the code in SublimePrint.py suggests that find_command only searches the paths in the BIN_PATHS array and issues the error shown above if enscript.exe is not found in those paths. It does not appear that setting windows PATH has any effect.

I think the fix would involve parsing windows PATH for the paths to try and then appending those to BIN_PATHS. Alternatively appropriate paths could be hard coded into BIN_PATHS but that seems rather inflexible.

I appreciate the work you have done to develop this. Hope this observation is helpful.

Printing under windows fails

The error message is

Command 'lpstat' not found! Please review the documentation.

installing the suggested Enscript did not help

How to install this in Sublime text

Excuse the dumb question: I have installed Enscript OK. Now, how do I "install", if that is the right term, SublimePrint in Sublime Text 3 please? I have tried "Install Package" but SublimeText is not an option. I guess I am missing a step?

Command 'lpstat' not found

I'm using Sublime Text version 3.0, build 3143 and just installed simple print today, but when I tried to Print Entire File I got the error message "Command 'lpstat' not found! Please review the documentation." I searched the SublimePrint repository for lpstat, but all I found was a line of code and no documentation on fixing this error.

Can't configure keyboard bindings

It seems I cannot configure the SublimePrint's keyboard bindings. And given there's no print dialog and I've already printed out various documents by accident, I really, really need to be able to configure this.

I've looked in all the settings, I've configured Sublime keyboard bindings before, but I've not found a way to do this. I've tried modifying the sublime package and overriding the settings, with no results.

Odd Error When Installing on Sierra for Mac

Getting the following error message after I install the package.

The package is partially working, as I can see new options have been added to my File menu.

I know the printer is working as I just printed out something from WebStorm.

Any thoughts? I thought maybe it might be a file permissions issue, but I set it to the most permissive issues.

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 797, in run_
    return self.run()
  File "SublimePrint in /Users/Oracle/Library/Application Support/Sublime Text 3/Installed Packages/Simple Print Function.sublime-package", line 221, in run
ValueError: 'Brother_HL_L2340D_series' is not in list
reloading settings Packages/User/SublimePrint.sublime-settings
using gpu buffer for window
Unable to open /Users/Oracle/Library/Application Support/Sublime Text 3/Packages/Default/Preferences.sublime-settings

Nothing Happens

After installing through Package Control, I tried the following scenario on Ubuntu 13.04 and sublime-text-2:

  1. Try to print entire file, got a message saying enscript was not installed.
  2. sudo apt-get install enscript
  3. Try to print entire file again, nothing happens.
  4. Both Settings-Default and Settings-User are still empty files.

If I try to print a non-saved file I get an error message saying "No file to print" which understandably is supposed to happen. But this is useful knowledge because it means it is in fact trying to do something.

add quick start to readme

Works like a charm but after installing I had no idea how to use it. Of course I quickly figured out that I could check the command palette if a new command was created for printing but it might be nice to add this hint (and maybe also the respective shortcuts for printing) to the readme/info that opens after installing the package.
Thanks! :)

lpr as binary to be used for printing

Hello i would like use this plugin in combination with lpr command, but it push --printer argument which is not known by lpr.

OSError: (['/usr/bin/lpr', '--printer=Samsung_ML-1670_Series', 'SublimePrint.sublime-settings'], 1, '/usr/bin/lpr: Error - unknown option "-".\n')

Installing enscript on Cygwin

Can I pass the absolute path to enscript executable, my enscript is part of the Cygwin PATH which is not inside the Windows native PATH.

Print to PDF?

Is it possible to print to PDF using this package? What do I need to put in my settings to do this?

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.