Comments (5)
Clipboard intentionally breaks the rules here, so changing this syntax to only be the other option would make Clipboard worse. However, I'm open to adding a different supported syntax, but what would you do if you needed to copy a file with name "-c"?
from clipboard.
The standard solution is to have a parameter named --
which stops parsing of later dashes as options and treats them as literal strings. So clipboard copy -c 1 -- -c
would copy the file named -c
to clipboard #1 (if -c
specifies the clipboard number).
https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean
from clipboard.
Done, added in latest commit f9e83ed and we don't have to check for --
because Clipboard's current code will only check for the -c
or --clipboard=
once.
from clipboard.
Does that mean that you have to specify -c 1 -c 1
to copy files named -c
and 1
?
from clipboard.
That's one way you could do it, or just 1 -c
since the current logic only checks the third argument for the presence of -c
(the first being clipboard
, the second (action)
and the third 1
)
from clipboard.
Related Issues (20)
- v0.8.2 how to select item HOT 2
- Strip / Escape new lines when displaying info HOT 1
- Version 0.8.2 fails to build for Homebrew HOT 4
- Assertion '__pos < this->_M_len' failed HOT 10
- Clipboard v0.82 (flathub on Ubuntu) steals focus every two seconds on Wayland HOT 5
- Wildcards do not work on windows
- cb cut does not remove the clipboard entry on windows
- cb cannot dynamic recognize size
- support cb gounp HOT 3
- global_path.persistent should handle case where XDG_STATE_HOME is not defined HOT 1
- Unable to use the default clipboard on Windows HOT 2
- CB memory leaks and consumes all RAM on system HOT 15
- Bug(ish): new contributions link leads to 404 error
- Persistent directory bug HOT 1
- Breaks my Ubuntu setup HOT 1
- when i select item , but copy is not it
- GUI integration coredumps after some time
- Screen Flicker On KDE Plasma Wayland - Possibly A Wayland Bug
- Cut and paste + “don't replace” should not remove the original file
- Purge history to prevent secret leakage
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 clipboard.