Hacker Newsnew | past | comments | ask | show | jobs | submit | stack_framer's commentslogin

No, but this is a great suggestion. I imagine a flow that looks something like this:

(1) When creating the textile, you would add a step to "wait for new clipboard data."

(2) When you run the textile, and it gets to that step, a modal would appear, prompting you to copy the new thing to your clipboard.

(3) Once you've got the new thing on your clipboard, you would go back and click "Continue" on the modal from step 2.

(4) Textile would continue with the new thing on your clipboard.

Is that kind of what you were thinking?


That’s exactly what I was thinking. And I think you’re saying the same thing, but to be sure: the _wait_ wouldn’t be a timer, it’d be watching the clipboard for changes and proceeding as soon as it changed.

If we’re going to do the discovery out in the open.. it would be nice to be able to specify the prompt as part of the Textile (e.g. “Copy the GitHub URL”). And then also showed the clipboard contents it is going to proceed with, before proceeding. A single key press (Enter?) would be ideal to proceed. That protects me from accidentally passing sensitive data through.


I like the idea of being able to specify the prompt, as a reminder of what you wanted to copy to the clipboard at that point.

I've created a new issue for this (it's similar to an idea I already had):

https://github.com/rob-johansen/textile/issues/75


I'm not too familiar with Espanso, but Textile is not a text expander. Textile allows you to pre-define a sequence of steps that dynamically generate the text you want, by running commands on your computer, reading your clipboard, or using hard-coded text you provide.

Here's a quick example, and one that I often use with Textile to generate a preview URL based on my current branch:

(1) Start with the output of the command `git branch --show-current` in the `~/code` directory (yielding text like `JIRA-1234/some-feature`).

(2) Replace all `/` characters with `-` (now the text is `JIRA-1234-some-feature`).

(3) Prepend `[preview](https://staging-`, which is the start of a markdown link (now the text is `[preview](https://staging-JIRA-1234-some-feature`).

(4) Append `.example.com)`, which is the end of the markdown link (now the text is `[preview](https://staging-JIRA-1234-some-feature.example.com)`).

(5) Copy the result to my clipboard.

With those steps saved in Textile, I can now click a button to run them over and over again (or use a keyboard shortcut if I assigned one). So no matter which branch I'm on, I'll always get a proper preview link without having to construct it manually myself.


Can't this be done with a bash script? Or is this supposed to be a more convenient, ergonomic and declarative way to do it?

I'm certain everything Textile does could be handled by bash scripts, or any other script flavors / languages / tools. So, yes, Textile is supposed to be a more convenient way to do it.

Thanks! Should be fixed.

I'm reading The C Programming Language, 2nd edition (the K&R book), and working through all the exercises.

It's a great book, although it's forcing me to admit that I need glasses (the print is so small)!


I enjoyed reading Expert C Programming: Deep C Secrets by Peter van der Linden after reading that in the early 90s. Also the C standard from the time and the attached 'Rationale' document https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub160.pdf (The rationale is 234 pages in). Also this 1995 book version of the comp.lang.c FAQ https://c-faq.com/book/ and https://c-faq.com/


"...fewer than 4,000 jobs, representing less than 5 percent of our total employee base."

I cringe at this attempt to soften the numbers by saying "fewer than" and "less than" here. Conversely, and ironically, it also puts inflated numbers in your head.

"How many people will be axed at Cisco?"

"3,998 ... but at least it's fewer than 4,000!"


Dear reader, let's put it that way, the precise number is even more insignificant than 5%.

Contrast with the benefits of the path set onward. Small steps for humans, but a leap forward for humanity!


The message is for the investors.


cisco executives will be rewarded with fat bonuses soon!


Location: Salt Lake City, UT

Remote: Remote/Hybrid/On-Site

Willing to relocate: To Arizona, Texas, or Florida for the right opportunity

Technologies: TypeScript, React, Next.js, Node.js, PostgreSQL, AWS

Résumé/CV: https://drive.google.com/file/d/1CUhv4zVHxUlkLidmVu19ZacPhMf...

Email: rob [dot] johansen at gmail [dot] com

I just got laid off by Pie Insurance, along with 64 other people (including staff software engineers, engineering managers, product managers, and other roles). I worked across the stack at Pie, building design systems and reusable UI components on the front end, as well as APIs and event-based systems on the back end.


Wow, the way Upwork is handling this seems really bad. They announced the layoffs today, but nobody will know who is being let go until next week! Sheesh.


Our first year on Vercel, the bill was $40,000. When our management went back to negotiate the second year, Vercel wanted $120,000! Vercel wasn't offering 3x the features, mind you, they just knew we were locked in. Our management got it down to $60,000 (still a 50% cost increase, year over year).

Our app is small beans, too. We don't even have that many users. To borrow a favorite term from DHH, Vercel are "merchants of complexity."

But they're only half the problem. Our management is the other half. They can't be bothered to grow a spine and move away from Vercel. So we'll just keep paying, and eventually some people will "be affected" by a "reduction in force."


Now do OpenAI...


I once had an external monitor with a maximum refresh rate of 30 Hz, and mouse movements were noticeably sluggish. It was part of a multi-monitor setup, so it was very obvious as I moved the mouse between monitors.

I'm not sure if this LG display will have the same issue, but I won't be an early adopter.


Read the article.

The display has a refresh rate of 120hz when needed. The low refresh rate is for battery savings when there is a static image.

Variable refresh rate for power savings is a feature that other manufacturers already have (apple for one). So you might already be an early adopter.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: