edi9999 / path-extractor Goto Github PK
View Code? Open in Web Editor NEWA unix filter which outputs the filepaths found in stdin
License: MIT License
A unix filter which outputs the filepaths found in stdin
License: MIT License
Hi Edi,
I have another question. Is it possible to have an absolute path after the process of path-extractor?
Thank you!
Cheers,
Khon
$ echo ação.txt | pe
o.txt
Characters like 'ç'
and 'ã'
are seen as delimiters.
I'm guessing this is expected, otherwise every word would be seen as a file, but I just noticed the output of ls | pe
wasn't what I would have expected :) Presumably one could alter the output to prefix such paths with ./
to force them to be seen as paths, i.e. ls -l ./*
or so? Is that the recommended way to handle such cases?
Starting in Go 1.18 the go get
command no longer supports installing packages (deprecation notice), and instead now requires using go install
. However, trying to install path-extractor
using go install
fails:
$ go install github.com/edi9999/path-extractor@latest
package github.com/edi9999/path-extractor is not a main package
pe.go
is a main package:
$ go install github.com/edi9999/path-extractor/tree/master/path-extractor@latest
go: github.com/edi9999/path-extractor/tree/master/path-extractor@latest: module github.com/edi9999/path-extractor@latest found (v0.2.0), but does not contain package github.com/edi9999/path-extractor/tree/master/path-extractor
Hi,
I am trying path-extractor. My question is if it is possible to press a key in tmux to invoke path-extractor to select the paths of files in console? (like the tmux-plugins/tmux-fpp )
Thank you very much!
Cheers,
Khon
P/S: I really like the path-extractor feature
I realize it may be difficult to recognize what's path-like if spaces can be included, particularly since the tool doesn't check for existence on disk, but it may be useful to attempt it, possibly with an optional command-line argument.
I.e. in my git st in my dotfiles at the moment:
?? sublime-text-3/Package Control.ca-bundle
?? sublime-text-3/Package Control.ca-list
👋 Just found this repo does not have any license, it would be good to add OSI-approved one, https://spdx.org/licenses/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.