Comments (10)
released in 5.8.3
Thank you for checks
from pspg.
please check b3d96ff
from pspg.
I've tried using this new version of pspg
with the --clipboard-app=4
parameter, and when I press the Ins
key to copy some information to the clipboard, I receive the following error:
Cannot write to clipboard (clip.exe) (press any key)
clip.exe
is available and works in the same way as pbcopy
; for example:
echo Test | clip.exe
... effectively copies the Test
text to the clipboard.
Is it possible for pspg
to use clip.exe
in the same way that it is using pbcopy
?
from pspg.
please try 463ab29
from pspg.
I've tried using this new version of pspg
with the --clipboard-app=4
parameter, and when I press the Ins
key to copy some information to the clipboard, the text is now copied correctly. Thank you for this useful addition to pspg
!
If I ran pspg
without the --clipboard-app=4
parameter, the clipboard detection algorithm automatically selects xclip
instead of clip.exe
, since xclip
is also available in my WSL2 environment, but it doesn't work because I don't have an X-server running. The error I receive when I press the Ins
key in this case is:
Cannot write to clipboard (Error: Can't open display: :0) (press any key)
Is it possible for the clipboard detection algorithm to look for clip.exe
before looking for xclip
, so that in a WSL2 environment clip.exe
can be automatically selected?
from pspg.
from pspg.
pá 12. 4. 2024 v 17:18 odesílatel Gus @.> napsal:
I've tried using this new version of pspg with the --clipboard-app=4 parameter, and when I press the Ins key to copy some information to the clipboard, the text is now copied correctly. Thank you for this useful addition to pspg! If I ran pspg without the --clipboard-app=4 parameter, the clipboard detection algorithm automatically selects xclip instead of clip.exe, since xclip is also available in my WSL2 environment, but it doesn't work because I don't have an X-server running. The error I receive when I press the Ins key in this case is: Cannot write to clipboard (Error: Can't open display: :0) (press any key) Is it possible for the clipboard detection algorithm to look for clip.exe before looking for xclip, so that in a WSL2 environment clip.exe can be automatically selected?
yes, it doesLine 1832 in 463ab29
…
— Reply to this email directly, view it on GitHub <#242 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFO46LGBQ5C6XZZNKDKLDY473M3AVCNFSM6AAAAABF62ZQLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRHE3DIOJVG4 . You are receiving this because you commented.Message ID: @.>
There will be always conflict - what clipboard application should be used (when there are more possibilities). This is reason why there are an option --clipboard-app. Maybe I can do check if xserver is defined or not, if this is possible by some way.
from pspg.
Unfortunately is not easy detect, so xserver is not installed or doesn't work. I didn't find any environment variables that should to work on modern and old unixes. You can save this option to configure file, and it should to work
from pspg.
I think it should be safe to check for "clip.exe" first, since a ".exe" program should never be available outside a WSL2 environment.
Inside a WSL2 environment, "clip.exe" is the best option because it is provided by the host Windows operating system. The other clipboard programs provided by Linux environments require further configuration (such as X-server installation) to work correctly with Windows clipboard.
If you agree, I can send a PR to check for "clip.exe" first.
from pspg.
from pspg.
Related Issues (20)
- segfault when watching non existing --querystream file HOT 4
- Saving to CSV on large number of rows only exports partial rows HOT 22
- Sort doesn't work... HOT 3
- Feature: Sort multiple columns individually as a sequence of sort steps HOT 4
- difference in pgcli and psql table behavior in pspg HOT 4
- Feature: Handle long columns. Add option for max column width, and keybindings to scroll within the long column, etc. HOT 2
- NullPointerException when running pspg in sqlcl HOT 3
- Exactly what data does pspg receive from psql? HOT 1
- warning: integer overflow in expression of type ‘long int’ results in ‘0’ HOT 2
- Feature Request: Customize the word wrap character HOT 4
- Segfault on KOI8-RU file HOT 4
- Clearer + more visible installation instructions? HOT 6
- Windows support? HOT 5
- Getting issues while trying to query out data with postgis HOT 1
- `No data` on files with more than 1000 lines HOT 14
- How do you exit the menu? HOT 42
- .pspg_conf file format - FYI for users HOT 1
- nushell support ❤️ HOT 3
- Feature request: possibility for faster watch time HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pspg.