Comments (13)
You can also do on macos this:
pbpaste | fx | pbcopy
from fx.
I have cli app that console.log(someJSON)
. But it very simple. I can of course use something like child_process.exec('fx someJSON')
. But would be neat to have native support here.
Something like:
const fx = require('fx');
const json = {
foo : 'bar',
baz : {
test : 123
}
};
fx(json).copy();
And for copy have some flag --copy
so it will copy whole result if you dot .
, $ curl ... | fx .
from fx.
Can you show an example of usage? Or maybe there is some other cli apps with this feature?
from fx.
Sorry didn't mean to close, misliked.
from fx.
Well I'm not sure what we are looking at but smells like encypted snap-like output.
Try 'snap' out of it ())+_-)
Get SNAP application but hold your horses, it's slightly different to all that I've used.
~$ 'snap info snap
(if you need more verbosely shell -- try 'fish' - friendly interface shell to learn what possible outputs you got)
type 'fish' and then manage others. After that 'exit' to get back in whaever shell u r using.
~$ snap refresh
~$ snap install APP_NAME --stable
~$ snap list --all
~$ snap remove
(if new revision appear-old gets disabled) APP_NAME --revision NUMBER
from fx.
On linux you can just do
xclip -selection clipboard -o | fx | xclip -selection c
It's a little more verbose but you can just set up aliases in your bashrc for pbcopy and pbpaste. I don't think fx should be in charge of handling your clipboard when you can just use bash.
from fx.
@antonmedv I have encountered a relevant use case: I make a request using curl and directly pipe it to fx
. If the result matches a criteria, I want to copy it for further use. But currently I have to quit fx and make the request again to pipe to something like xclip
. Shortcuts like y
& Y
to copy the json in the interactive mode would be much more convenient in this case than having to wait for the response again (if that is even an option, in case of limits) or having to select it manually from terminal output using P
.
from fx.
Please, open new one ☝🏻
from fx.
What is it?
from fx.
from fx.
Hm, looks like spam??
from fx.
Okay, does some one what to create pr with it?
from fx.
@antonmedv can this issue be reopened please?
from fx.
Related Issues (20)
- can not copy by yy/yp/yk in ssh HOT 2
- Support streams of JSON objects HOT 4
- Node.js or Deno required to use reducers? HOT 2
- [feature] Add ability to output selection when exiting HOT 6
- feat: toggle unescape strings HOT 2
- Bring back gradiant themes? HOT 1
- Panic error when invoked directly on Windows HOT 2
- Display http headers HOT 8
- Filter line-delimited or streaming JSON without slurping HOT 2
- About 32.0.0 release HOT 4
- Error when selecting field in command line on linux HOT 1
- Invalid content in clipboard after yanking key in wrapped mode
- No autocomplete in `zsh` when JSON doesn't end with a new line
- Any interest in implementing .[] in interactive mode? HOT 1
- Start in collapse mode
- conda-forge package
- Add support for multi-document YAML HOT 1
- Add `--slurp` and `--raw` to interactive mode HOT 1
- Wordy transformations cause `fx` to crash with piped data HOT 4
- Feature request: introduce a hotkey to copy current element path to the clipboard HOT 1
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 fx.