Comments (7)
Using $true
and $false
doesn't seems that bad, considering the use of $it
when piping and the inspiration from PowerShell
from nushell.
PowerShell makes this work by reserving $true
and $false
. Earlier on, I was thinking $yes
and $no
. I'm open to other options.
from nushell.
are there any characters/symbols already reserved in nushell? I am disinclined to use $
because it might be misleading to newcomers from bash|zsh|csh|etc
I kind of like :true
:false
but am not set on it
from nushell.
What if we distinct a comparison with literals versus logical operation on values? i.e:
ls | where type is File
- literal
ls | where size > 10kb
- logical
read something | where yanked != true
- logical
from nushell.
I will like to handle this but which mode should I work with? $true or :true?
from nushell.
@olamiko - I think this feature was just released.
from nushell.
Yep, @jonathandturner added $true
and $false
:
❯ ls --full | where readonly
❯ ls --full | where readonly == $false
There's currently no shorthand for boolean negation, so this doesn't work:
❯ ls --full | where !readonly
from nushell.
Related Issues (20)
- Allow `register` to accept variable names as plugin path argument HOT 6
- ls is slower than du-dust HOT 3
- dfr open doesn't work with --type tsv
- Getting all command arguments HOT 3
- Interpolated string is not a parse time constant
- Can't `ls` named pipes on Windows due to metadata failures HOT 1
- Warn the user if an alias overrides a custom command or vice-versa
- Fail fast in "each" HOT 2
- `nu --commands` doesn't import `config.nu` by default HOT 3
- Add autocomplete to overlay hide
- Add `--index` flag to return indexes from `input list` or support for `index` column
- Warn when loading empty mod.nu
- Support multiple document style YAML output with `to yaml`
- Nushell `--include` only includes for `--command` and not for scritps HOT 3
- Plugins symlinked into ~/.config/nushell/plugins can't be registered HOT 6
- `str join` issue HOT 2
- Add command to history HOT 4
- Can't pass empty list to an parameter which is annotated with `list<string>`
- Regression in Help Menu : It no longer works properly causing a duplication in the string HOT 3
- ctrl+c has stopped on tip, maybe related to reedline bump/feature 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 nushell.