est31
1d3483b590
Add a test
2019-09-09 13:39:43 +02:00
est31
1277bfe0fb
Fix setting configuration params
...
Fixes #627
Fixes a regression caused by #579 , specifically commit cc8872b4ee
.
The code was intended to perform a comparison between the wanted
output type and "Tagged<Value>" in order to be able to provide a
special-cased path for Tagged<Value>. When I wrote the code, I
used "name" as a variable name and only later realized that it
shadowed the "name" param to the function, so I renamed it to
type_name, but forgot to change the comparison.
This broke the special-casing, as the name param only contains
the name of the struct without generics (like "Tagged"), while
`std::any::type_name` (in the current implementation) contains
the full paths of the struct including all generic params
(like "nu::object::meta::Tagged<nu::object::base::Value>").
2019-09-09 13:22:18 +02:00
Maximilian Roos
cf2c19706e
fix build warnings & add CI
2019-09-09 06:03:01 -04:00
Andrés N. Robalino
f770409a60
cd '-' valueshell implementation and valueshell refactorings.
2019-09-08 05:40:47 -05:00
Andrés N. Robalino
77c2e4200e
Filesystem cd refactor/cleanup.
2019-09-08 04:55:49 -05:00
Jonathan Turner
448b1a4848
Make some plugins optional, move ps to plugin
2019-09-08 19:06:15 +12:00
Andrés N. Robalino
eecda3ecba
Merge pull request #363 from twe4ked/cd-back
...
Implement `cd -` to return to the previous directory
2019-09-08 01:00:32 -05:00
Odin Dutton
159cf27e39
Implement cd -
to return to the last path for the FilesystemShell
2019-09-08 15:10:46 +10:00
Jonathan Turner
07151b8360
Merge pull request #615 from jonathandturner/echo
...
Fix exec::shell and add echo command
2019-09-08 14:30:24 +12:00
Jonathan Turner
9da896ad4e
Attempt so simplify classified
2019-09-08 14:00:04 +12:00
Jonathan Turner
84628f298d
Finish fixing failing tests.
2019-09-08 13:35:02 +12:00
Jonathan Turner
4cdaed1ad4
Add echo command
2019-09-08 11:43:53 +12:00
Jonathan Rothberg
7427ea51df
Removed commented out code.
2019-09-07 15:43:30 -07:00
Jonathan Rothberg
7913ae76f8
Expand pwd command
...
Expand functionality of the pwd command to better handle the different
types of shells (e.g. FilesystemShell, ValueShell, etc.).
2019-09-07 15:31:16 -07:00
Jonathan Turner
90b358d60b
Merge pull request #612 from chhetripradeep/pchhetri/add-pwd-command
...
Adds pwd command
2019-09-08 06:02:38 +12:00
Pradeep Chhetri
ee301f9f54
Adds pwd command
2019-09-07 23:53:56 +08:00
Jonathan Turner
8be14a891d
Merge pull request #611 from jonathandturner/autoview_plugin
...
Protect autoview against missing plugins
2019-09-07 20:09:58 +12:00
Jonathan Turner
28fe31d565
Protect autoview against missing plugins
2019-09-07 19:32:07 +12:00
Jonathan Turner
e2b9370f10
Attempt to fix issue with ^C in Windows
...
This fixes the error case if we ^C during running an external command. This needs testing across platforms before it lands.
2019-09-07 16:59:13 +12:00
Patrick Meredith
ea24571c22
Remove added newline
2019-09-06 23:24:29 -04:00
Patrick Meredith
1b2fdf7c1e
Fix bug with ls globbing a single directory
2019-09-06 23:20:13 -04:00
Jonathan Turner
b84c77d23a
Merge pull request #603 from jonathandturner/oop_to_table
...
Move internal terminology to tables/rows
2019-09-06 05:22:24 +12:00
Jonathan Turner
dcd97b6346
Move internal terminology to tables/rows
2019-09-06 04:23:42 +12:00
Jonathan Turner
ede45e21de
Merge pull request #597 from jonathandturner/spreadsheet_terms
...
Move us away from OOP terms to spreadsheet terms
2019-09-05 04:56:16 +12:00
Yehuda Katz
fd715e1775
Merge pull request #596 from Porges/improve-pipeline-parsing
...
Improve parsing of pipelines, require pipes between segments
2019-09-04 09:41:49 -07:00
Jonathan Turner
0a9897c5ca
Move us away from mixing OOP and spreadsheet to just spreadsheet
2019-09-05 04:29:49 +12:00
George Pollard
60212611e5
Allow leading space before head of pipeline
2019-09-05 04:13:07 +12:00
George Pollard
6034de641a
Improve parsing of pipelines, require pipes
...
At the moment the pipeline parser does not enforce
that there must be a pipe between each part of the pipeline,
which can lead to confusing behaviour or misleading errors.
2019-09-05 03:30:51 +12:00
Jonathan Turner
479f0a566e
Covert to_* commands to work on whole table
2019-09-04 18:48:40 +12:00
Patrick Meredith
1f05e98965
Refactor to make save.rs readable
2019-09-03 22:21:37 -04:00
Patrick Meredith
ab48d3a3f2
Support binary save
2019-09-03 21:50:23 -04:00
Jan Koprowski
ab97459d0e
Stop printing CTRL-D on EOF
2019-09-03 21:40:42 +02:00
Andrés N. Robalino
3256b7adb3
if path to ls given that does not exist, report the error.
2019-09-03 05:24:04 -05:00
Andrés N. Robalino
1d0ed7e957
ls lists contents of value entered with or without path given.
2019-09-03 05:17:44 -05:00
Andrés N. Robalino
b031d4cd77
can view list of commands for details.
2019-09-03 04:36:23 -05:00
Andrés N. Robalino
030d73147e
can view help for a given command by entering a command.
2019-09-03 04:05:52 -05:00
Andrés N. Robalino
a449d2c005
If path to cd given. Report the error with the path given.
2019-09-03 03:49:20 -05:00
Andrés N. Robalino
b0a02518f9
cd can be awared inside a value entered.
2019-09-03 02:43:37 -05:00
Jonathan Turner
8a9cdcab17
Split fetch command away from open
2019-09-03 18:04:46 +12:00
Jonathan Turner
7bd2fa1bfc
Merge pull request #580 from est31/trailing_spaces
...
Trim trailing whitespace and set it in editorconfig
2019-09-03 16:25:41 +12:00
Jonathan Turner
1464feaab7
Merge pull request #579 from est31/serde_instead_of_specialization
...
Use serde instead of specialization
2019-09-03 16:24:55 +12:00
est31
cf0efb811e
Trim trailing whitespace and set it in editorconfig
2019-09-03 02:52:52 +02:00
est31
35d576f540
Remove use of specialization
2019-09-03 02:13:41 +02:00
est31
225ef8e75d
Use serde to deserialize the remaining things
2019-09-03 02:10:48 +02:00
est31
cc8872b4ee
Use serde to deserialize Tagged<Value>
2019-09-03 01:41:26 +02:00
est31
9ba2e75ac1
Move code into separate visit function
2019-09-03 01:32:54 +02:00
est31
e8880a1a57
Deserialize Block using serde
2019-09-02 22:30:51 +02:00
est31
9b3a561e83
Small refactor
2019-09-02 22:06:46 +02:00
est31
d5494e58a4
ExtractType doesn't have to be implemented for Option any more
2019-09-02 21:12:09 +02:00
Jonathan Turner
4a00887e9d
Merge pull request #578 from jonathandturner/fix_577
...
Fix line completion for extended chars
2019-09-03 07:09:26 +12:00
Jonathan Turner
95feb1ff16
Fix line completion for extended chars
2019-09-03 06:06:25 +12:00
Jonathan Turner
3d912a2c1d
Merge pull request #575 from nushell/remove-unused-code
...
Remove unused code
2019-09-02 20:24:18 +12:00
Andrés N. Robalino
2cb290b77b
Merge pull request #573 from androbtech/embed
...
can embed a new field to the table.
2019-09-02 01:14:06 -05:00
Yehuda Katz
7fa09f59c2
Remove unused code
...
Closes #467
2019-09-01 23:11:05 -07:00
Yehuda Katz
246c9c06dc
Merge pull request #569 from est31/serde_instead_of_specialization
...
Remove use of ExtractType in deserialize_any
2019-09-01 22:39:13 -07:00
Andrés N. Robalino
9488c41dcd
can embed a new field to the table
2019-09-02 00:37:13 -05:00
Yehuda Katz
ca0183a136
Migrated numerics to BigInt/BigDecimal
...
This commit migrates Value's numeric types to BigInt and BigDecimal. The
basic idea is that overflow errors aren't great in a shell environment,
and not really necessary.
The main immediate consequence is that new errors can occur when
serializing Nu values to other formats. You can see this in changes to
the various serialization formats (JSON, TOML, etc.). There's a new
`CoerceInto` trait that uses the `ToPrimitive` trait from `num_traits`
to attempt to coerce a `BigNum` or `BigDecimal` into a target type, and
produces a `RangeError` (kind of `ShellError`) if the coercion fails.
Another possible future consequence is that certain performance-critical
numeric operations might be too slow. If that happens, we can introduce
specialized numeric types to help improve the performance of those
situations, based on the real-world experience.
2019-09-01 22:14:41 -07:00
Yehuda Katz
3d5e31c55d
Merge pull request #571 from nushell/bigint
...
Migrated numerics to BigInt/BigDecimal
2019-09-01 22:08:48 -07:00
Yehuda Katz
8a29c9e6ab
Migrated numerics to BigInt/BigDecimal
...
This commit migrates Value's numeric types to BigInt and BigDecimal. The
basic idea is that overflow errors aren't great in a shell environment,
and not really necessary.
The main immediate consequence is that new errors can occur when
serializing Nu values to other formats. You can see this in changes to
the various serialization formats (JSON, TOML, etc.). There's a new
`CoerceInto` trait that uses the `ToPrimitive` trait from `num_traits`
to attempt to coerce a `BigNum` or `BigDecimal` into a target type, and
produces a `RangeError` (kind of `ShellError`) if the coercion fails.
Another possible future consequence is that certain performance-critical
numeric operations might be too slow. If that happens, we can introduce
specialized numeric types to help improve the performance of those
situations, based on the real-world experience.
2019-09-01 21:00:30 -07:00
est31
113c2c380f
deserialize_any isn't used any more
2019-09-02 04:07:02 +02:00
est31
bbde86c20d
Use serde to deserialize bare bools
...
There are still tagged bools in use so we can't
remove the ExtractType implementation.
2019-09-02 03:45:00 +02:00
est31
a69a0bc5ee
Use serde to deserialize options
2019-09-02 03:40:21 +02:00
est31
e8bbd330e0
Deserialize tuples with serde
2019-09-02 03:40:18 +02:00
est31
79a779dbea
Deserialize vecs with serde
2019-09-02 03:37:30 +02:00
est31
5491b54859
Make key and struct_field optional in DeserializerItem
...
The main point of this struct seems to be debugging,
as key_struct_field is unused except for debugging.
2019-09-02 03:31:11 +02:00
Jonathan Turner
f9d54c2f25
Allow % in bare words
2019-09-02 12:32:15 +12:00
Jonathan Turner
abfd417430
Fix unwrap in open
2019-09-02 11:55:33 +12:00
Jonathan Turner
6e0cb6b809
Merge pull request #563 from est31/field_shorthand
...
Adopt field init shorthand in a few places
2019-09-02 11:45:32 +12:00
est31
ad3234a9a0
Remove some commented out code
2019-09-01 23:41:08 +02:00
est31
8504c7a8e6
Adopt field init shorthand in a few places
...
Found by running 'egrep "(\b[a-zA-Z]+): \1\b" -R src'
2019-09-01 23:39:59 +02:00
Dirkjan Ochtman
8523ce3d01
Get rid of feature(crate_visibility_modifier) (see #362 )
2019-09-01 21:56:17 +02:00
Jonathan Turner
7d46f9e860
Another attempt to fix the zombie processes
2019-09-02 04:45:30 +12:00
Jonathan Turner
a7e378d1c9
Fix unwraps in post
2019-09-01 18:44:56 +12:00
Andrés N. Robalino
ca0c6eaf58
This commit introduces a basic help feature. We can go to it
...
with the `help` command to explore and list all commands available.
Enter will also try to see if the location to be entered is an existing
Nu command, if it is it will let you inspect the command under `help`.
This provides baseline needed so we can iterate on it.
2019-08-31 19:06:11 -05:00
Jonathan Turner
1a67ac6102
Random fixes
2019-09-01 09:19:59 +12:00
est31
5b7940b88c
Update bson to 0.14
2019-08-31 18:47:14 +02:00
Jonathan Turner
0d6b85b5bf
Merge branch 'master' into post
2019-08-31 16:39:24 +12:00
Jonathan Turner
ad18c7f61a
Finish magic post and magic receive
2019-08-31 16:08:59 +12:00
Yehuda Katz
6f5ddbd6ae
Fixed comparison between bytes and decimals
...
The previous commit introduced a new decimal type as well as comparison
coercions between decimals and integers, but not between decimals and
bytes.
2019-08-30 21:05:32 -07:00
Yehuda Katz
138b5af82b
Basic support for decimal numbers
...
This commit is more substantial than it looks: there was basically no
real support for decimals before, and that impacted values all the way
through.
I also made Size contain a decimal instead of an integer (`1.6kb` is a
reasonable thing to type), which impacted a bunch of code.
The biggest impact of this commit is that it creates many more possible
ways for valid nu types to fail to serialize as toml, json, etc. which
typically can't support the full range of Decimal (or Bigint, which I
also think we should support). This commit makes to-toml fallible, and a
similar effort is necessary for the rest of the serializations.
We also need to figure out how to clearly communicate to users what has
happened, but failing to serialize to toml seems clearly superior to me
than weird errors in basic math operations.
2019-08-30 21:05:32 -07:00
Jonathan Turner
1d77595576
Merge branch 'master' into post
2019-08-31 15:12:03 +12:00
Jonathan Turner
f274df6753
Merge pull request #547 from jonathandturner/expand_list_sqlite
...
Expand lists loaded from sqlite
2019-08-31 14:49:07 +12:00
Jonathan Turner
2470e6dc24
Expand lists loaded from sqlite
2019-08-31 14:23:29 +12:00
Jonathan Turner
2cde4da43f
Partially fix list support
2019-08-31 13:35:53 +12:00
Jonathan Turner
2cec8168c7
Merge master
2019-08-31 13:30:41 +12:00
Jonathan Turner
761cc3db14
Finish up enter and save
2019-08-31 12:59:21 +12:00
Patrick Meredith
3d147d1143
Add SQLite support
2019-08-30 20:54:45 -04:00
Jonathan Turner
fa2c6ec227
Merge master
2019-08-31 10:13:09 +12:00
Patrick Meredith
481722b80a
Fix from_json to use Nothing
2019-08-30 17:34:35 -04:00
Jonathan Turner
c3abb3b687
Fix unwrap
2019-08-31 07:28:10 +12:00
Jonathan Turner
60bfa277d0
Experiment with async/await-enabled ps
2019-08-31 07:07:07 +12:00
Jonathan Turner
9e167713b3
Add post command
2019-08-31 06:27:15 +12:00
svartalf
213db54378
Update to heim v0.0.7.
2019-08-30 18:08:57 +03:00
Jonathan Turner
3fba30f2dc
Merge pull request #537 from jonathandturner/tabs_in_textview
...
Add tab support to textview
2019-08-30 16:20:40 +12:00
Jonathan Turner
729051fdd2
Merge pull request #407 from iamcodemaker/vi
...
WIP: add support for vi mode
2019-08-30 15:54:30 +12:00
Jonathan Turner
8db21ddf99
Add tab support to textview
2019-08-30 15:47:30 +12:00
Taiki Endo
58a32490c5
Remove usage of in_band_lifetimes feature
2019-08-30 01:32:31 +09:00
Jonathan Turner
f393938515
Merge pull request #531 from est31/no_specialization
...
Remove unused functions that use specialization
2019-08-30 04:02:20 +12:00
Jonathan Turner
b6db233c73
Start working on save
2019-08-30 03:39:16 +12:00
est31
7df48110ab
Remove unused functions that use specialization
2019-08-29 16:14:43 +02:00
est31
c87fa14fc8
Replace crate visibility identifier with pub(crate)
...
Result of running:
find src -name *.rs -exec sed -i 's/crate /pub(crate) /g' {} \;
2019-08-29 13:09:09 +02:00
Andrés N. Robalino
f1e8c433c2
[from/to]tsv support.
2019-08-29 04:02:16 -05:00
Jonathan Turner
f730296e45
WIP supporting from/to automatically
2019-08-29 15:53:45 +12:00
Jonathan Turner
a42cf7bf6e
Merge branch 'master' into remove_bind_by_move
2019-08-29 15:08:23 +12:00
Jonathan Turner
4576570275
Merge pull request #520 from est31/remove_try_trait
...
Remove try_trait feature use
2019-08-29 14:46:53 +12:00
Jonathan Turner
e0a13de943
Remove bind_by_move nightly feature
2019-08-29 14:44:08 +12:00
est31
012d8f3d6f
Remove try_trait feature use
2019-08-29 03:12:10 +02:00
Andrés N. Robalino
b283b83fe2
Sidestep unused err.
2019-08-28 19:46:56 -05:00
Andrés N. Robalino
846e487663
Merge branch 'master' into remove-unwraps
2019-08-28 19:34:43 -05:00
Yehuda Katz
21ad06b1e1
Remove unwraps and clean up playground
...
The original intent of this patch was to remove more unwraps to reduce
panics. I then lost a ton of time to the fact that the playground isn't
in a temp directory (because of permissions issues on Windows).
This commit improves the test facilities to:
- use a tempdir for the playground
- change the playground API so you instantiate it with a block that
encloses the lifetime of the tempdir
- the block is called with a `dirs` argument that has `dirs.test()` and
other important directories that we were computing by hand all the time
- the block is also called with a `playground` argument that you can use
to construct files (it's the same `Playground` as before)
- change the nu! and nu_error! macros to produce output instead of
taking a variable binding
- change the nu! and nu_error! macros to do the cwd() transformation
internally
- change the nu! and nu_error! macros to take varargs at the end that
get interpolated into the running command
I didn't manage to finish porting all of the tests, so a bunch of tests
are currently commented out. That will need to change before we land
this patch.
2019-08-28 10:01:16 -07:00
Odin Dutton
a1b30fda75
Remove sort-by --reverse flag
...
Prefer `ls | sort-by size | reverse` over `ls | sort-by size --reverse`.
2019-08-28 13:06:22 +10:00
Yehuda Katz
dfe452bbc4
Remove unwraps from the parser
...
I intend to add regression tests for these cases to the parser as a
follow-up PR.
Fixes #490
Fixes #494
2019-08-27 14:20:18 -07:00
Jonathan Turner
3827ded43f
Merge pull request #492 from jonathandturner/fix_sys
...
Fix the sys command
2019-08-28 04:49:27 +12:00
Jonathan Turner
6d30acf542
Merge pull request #455 from oskarskog/split-with-empty-cols
...
Preserve empty columns if separator isn't whitespace
2019-08-28 04:35:15 +12:00
Jonathan Turner
4ebab3474b
Fix the sys command
2019-08-28 04:26:14 +12:00
Oskar Skog
9aab884db0
Merge branch 'master' into split-with-empty-cols
2019-08-27 14:47:48 +03:00
Andrés N. Robalino
f59b78a764
Merge pull request #486 from androbtech/fromto-checks
...
[from|to]json additions/refactoring.
2019-08-27 06:43:27 -05:00
Oskar Skog
14f6b49483
Add flag for collapsing empty columns
2019-08-27 14:30:09 +03:00
Andrés N. Robalino
b502954558
[from|to]json additions/refactoring.
2019-08-27 06:05:51 -05:00
Jonathan Turner
1cdfe358c2
Fix the utf-8 width calculation
2019-08-27 18:06:30 +12:00
Jonathan Turner
570a0ac275
Fix path-related parts of value shell
2019-08-27 17:15:05 +12:00
Jonathan Turner
3750a04cfc
Merge branch 'master' into expand-tilde
2019-08-27 16:23:56 +12:00
Yehuda Katz
34292b282a
Add support for ~ expansion
...
This ended up being a bit of a yak shave. The basic idea in this commit is to
expand `~` in paths, but only in paths.
The way this is accomplished is by doing the expansion inside of the code that
parses literal syntax for `SyntaxType::Path`.
As a quick refresher: every command is entitled to expand its arguments in a
custom way. While this could in theory be used for general-purpose macros,
today the expansion facility is limited to syntactic hints.
For example, the syntax `where cpu > 0` expands under the hood to
`where { $it.cpu > 0 }`. This happens because the first argument to `where`
is defined as a `SyntaxType::Block`, and the parser coerces binary expressions
whose left-hand-side looks like a member into a block when the command is
expecting one.
This is mildly more magical than what most programming languages would do,
but we believe that it makes sense to allow commands to fine-tune the syntax
because of the domain nushell is in (command-line shells).
The syntactic expansions supported by this facility are relatively limited.
For example, we don't allow `$it` to become a bare word, simply because the
command asks for a string in the relevant position. That would quickly
become more confusing than it's worth.
This PR adds a new `SyntaxType` rule: `SyntaxType::Path`. When a command
declares a parameter as a `SyntaxType::Path`, string literals and bare
words passed as an argument to that parameter are processed using the
path expansion rules. Right now, that only means that `~` is expanded into
the home directory, but additional rules are possible in the future.
By restricting this expansion to a syntactic expansion when passed as an
argument to a command expecting a path, we avoid making `~` a generally
reserved character. This will also allow us to give good tab completion
for paths with `~` characters in them when a command is expecting a path.
In order to accomplish the above, this commit changes the parsing functions
to take a `Context` instead of just a `CommandRegistry`. From the perspective
of macro expansion, you can think of the `CommandRegistry` as a dictionary
of in-scope macros, and the `Context` as the compile-time state used in
expansion. This could gain additional functionality over time as we find
more uses for the expansion system.
2019-08-26 21:03:24 -07:00
Jonathan Turner
5313fc5568
Merge pull request #477 from jonathandturner/fix_dbg_release
...
Fix having to clean directories when switching between release and debug
2019-08-27 14:11:30 +12:00
Jonathan Turner
716517c13f
Fix having to clean directories when switching between release and debug
2019-08-27 13:46:38 +12:00
Patrick Meredith
87a99bbabf
Implement to-bson
2019-08-26 20:07:59 -04:00
Andrés N. Robalino
e32291d0d7
Merge pull request #473 from androbtech/history
...
Avoid panicking if history can't be saved.
2019-08-26 18:47:07 -05:00
Andrés N. Robalino
3e699db57c
Aviso.
2019-08-26 17:41:57 -05:00
Andrés N. Robalino
91093f2ab2
Avoid panicking if history can't be saved.
2019-08-26 17:18:38 -05:00
Dirkjan Ochtman
ce0113eb19
Replace use of unstable Option::flatten() with and_then()
2019-08-26 21:26:10 +02:00
Dirkjan Ochtman
b77effa434
Fix formatting with cargo fmt
2019-08-26 20:19:05 +02:00
Kyle Strand
9a31a6c296
Permit use of Windows Batch files
2019-08-26 11:17:47 -06:00
Jonathan Turner
d51e12c69d
Merge pull request #453 from twe4ked/pull-version-from-clap
...
Return version from clap
2019-08-27 03:43:23 +12:00
Oskar Skog
8445cda291
Preserve empty columns if separator isn't whitespace
...
#394
2019-08-26 15:00:27 +03:00
Odin Dutton
bbe7d68659
Return version from clap
...
This is what `nu --version` uses.
2019-08-26 20:33:28 +10:00
Jonathan Turner
033cae2464
Fix the build
2019-08-26 18:42:14 +12:00
Jonathan Turner
bc91c7f8b1
Merge pull request #355 from Porges/align-bytes
...
Improve formatting of numeric values (float, int, bytes)
2019-08-26 17:58:48 +12:00
Jonathan Turner
8ff418dc00
Merge pull request #349 from Porges/box-drawing
...
Use Unicode box-drawing characters for tables
2019-08-26 17:57:48 +12:00
Andrés N. Robalino
12e3806349
Merge pull request #415 from androbtech/fromto-refact
...
[from|to]csv additions/refactoring.
2019-08-25 12:56:28 -05:00
Jonathan Turner
dda4a707a7
Merge pull request #421 from ramonsnir/reverse
...
add reverse
2019-08-26 05:41:07 +12:00
Andrés N. Robalino
0e14ba86ae
[from|to]csv additions/refactoring.
...
Introduced flag to tell `from-to` / `to-csv` whether we want headers parsed and/or written.
2019-08-25 12:32:08 -05:00
Ramon Snir
9735c3fcea
add reverse
2019-08-25 12:14:17 -04:00
Patrick Meredith
a75c90cc42
Rebase on master
2019-08-25 10:16:22 -04:00
Patrick Meredith
c967f15e7c
Fix tests
2019-08-25 09:50:25 -04:00
Patrick Meredith
b0d7daa0d6
Remove cargo culted latest_tag that is not needed for from_bson
2019-08-25 09:50:25 -04:00
Patrick Meredith
a3b4d47b4e
Finish last few types and add tests
2019-08-25 09:50:25 -04:00
Patrick Meredith
722e192c14
Implement some more of the bson types
2019-08-25 09:50:25 -04:00
Patrick Meredith
9814eeae30
Remove need for impl Clone on from_bson_bytes_to_value
2019-08-25 09:50:25 -04:00
Patrick Meredith
a0f0372839
Add mostly working BSON support (missing some types)
2019-08-25 09:50:25 -04:00
Patrick Meredith
93a1a0604e
Update how extensions are set to default to path when no extension can be determined from mime
2019-08-25 09:50:25 -04:00
George Pollard
cce5b5bb5e
Revert ellipsis changes
2019-08-25 20:00:04 +12:00
Jonathan Turner
439700b87c
Fix a few issues with textview and the parser
2019-08-25 19:15:56 +12:00
Jonathan Turner
ac15989bbb
Merge branch 'master' into surf
2019-08-25 17:41:10 +12:00
Matthew Nicholson
6ebf6f8a8f
set rustyline's edit_mode based on a config option
...
This adds support for vi mode.
2019-08-25 01:12:23 -04:00
Matthew Nicholson
f5afbe8984
write the config after removing a key
2019-08-25 00:51:12 -04:00
Jonathan Turner
9c4f94fed5
Merge pull request #402 from ijt/add-last-command
...
Add `last` filter
2019-08-25 13:00:13 +12:00
Issac Trotts
108f66941b
add last command
2019-08-24 15:01:30 -07:00
Dmitry Starostin
19772f82aa
Add --reverse option for sort-by
2019-08-25 00:11:38 +03:00
Jonathan Turner
721a7b159d
switch from reqwest to surf
2019-08-25 07:36:19 +12:00
Kyle Gretchev
b36bda24fa
use clap::crate_version!()
...
- `crate_version()!` will pull version from Cargo.toml
2019-08-24 12:38:18 -04:00
est31
8af4713237
Replace type_name intrinsic by stable type_name
2019-08-24 17:52:36 +02:00
Jonathan Turner
a0d716054f
Merge pull request #367 from est31/remove_feature_gates
...
Remove some redundant/unused feature gates
2019-08-25 03:49:52 +12:00
Jonathan Turner
bb794dcfec
Add expansion to from-* for lists
2019-08-24 19:38:38 +12:00
est31
6babefbb00
Remove some unused feature gates
2019-08-24 09:23:39 +02:00
est31
8bdc715e3e
Remove async_await feature gates
2019-08-24 09:09:26 +02:00
George Pollard
877bbcd931
Remove unused import
2019-08-24 17:38:32 +12:00
George Pollard
c67d4a6eff
Rework implementation method
2019-08-24 17:31:50 +12:00
George Pollard
12cedddd68
Align bytes values in tables
2019-08-24 15:26:08 +12:00
George Pollard
9de0b27867
Use Unicode box-drawing characters for tables
2019-08-24 14:12:35 +12:00
Jonathan Turner
2663405115
Merge pull request #337 from jonathandturner/cleanup_column_error
...
Clean up error text
2019-08-24 08:58:03 +12:00
Jonathan Turner
0a611266ce
Clean up error text
2019-08-24 08:31:14 +12:00
Jonathan Turner
bc6dc030c2
Fix bug in textview with rawkey
2019-08-24 06:51:03 +12:00
Jonathan Turner
35346d7710
Merge pull request #335 from androbtech/wraps
...
rmwrapped cd - ls.
2019-08-23 20:11:17 +12:00
Andrés N. Robalino
92ce31ac46
rmwrapped cd - ls
2019-08-22 23:51:43 -05:00
Jonathan Turner
6354e0cc55
Remove X11 requirement
2019-08-23 15:29:08 +12:00
Jonathan Turner
03c29b9a6f
Remove an unwrap
2019-08-23 04:44:31 +12:00
Jonathan Turner
399b411a9c
Merge pull request #332 from jonathandturner/fix_abs_ls
...
Fix absolute ls
2019-08-22 20:18:21 +12:00
Jonathan Turner
effbc56ec8
Fix absolute ls
2019-08-22 19:52:57 +12:00
Jonathan Turner
c4a4e5ffab
Merge pull request #330 from jonathandturner/disable_nonx11_rawkey
...
Disable rawkey on non-x11 linux
2019-08-22 18:17:19 +12:00
Jonathan Turner
af51a65528
Try to fix warning
2019-08-22 17:40:33 +12:00
Jonathan Turner
b9b462ffeb
Remove dep import
2019-08-22 17:15:14 +12:00
Jonathan Turner
422a0f8496
Disable rawkey on non-x11 linux
2019-08-22 17:11:13 +12:00
Jonathan Turner
87930ba35a
Fix tests
2019-08-22 16:23:57 +12:00
Jonathan Turner
303d27d4b6
Finish adding support for protecting value shells
2019-08-22 16:13:40 +12:00
Jonathan Turner
78ca297e47
WIP
2019-08-22 07:38:09 +12:00
Jonathan Turner
73e3402e2f
Merge master
2019-08-22 05:09:23 +12:00
Jonathan Turner
e012e04da0
Disallow fileops on values
2019-08-22 05:03:59 +12:00
Jonathan Turner
3c7ca8c403
Merge pull request #327 from jonathandturner/cleanup_ps
...
Cleanup unneeded compiler flag
2019-08-22 04:57:25 +12:00
Andrés N. Robalino
c2b377eedc
Leave Nu's shell manager to figure out the suitable path for us instead.
2019-08-21 11:23:26 -05:00
Jonathan Turner
8e5744cf9b
Cleanup unneeded compiler flag
2019-08-22 04:00:29 +12:00
Andrés N. Robalino
1e8793135a
Mark the unwrap and Sweep the unwrap a bit more.
2019-08-21 10:48:04 -05:00
Andrés N. Robalino
8d5fd6f379
Unwrap cleanup mitigation.
2019-08-21 10:08:38 -05:00
Andrés N. Robalino
8b79b28971
mkdir can take multiple directories or multiple directory hierachies and wil create them as required.
2019-08-21 07:07:37 -05:00
Jonathan Turner
23ef76a86b
Update ps.rs
2019-08-21 20:19:36 +12:00
Jonathan Turner
c98bf68341
Oops, one more time
2019-08-21 19:47:33 +12:00
Jonathan Turner
c54528651d
Fix ps again
2019-08-21 19:41:18 +12:00
Jonathan Turner
1a74c512ad
Merge pull request #324 from jonathandturner/ps_deps_and_more
...
Lots of fixes ahead of release
2019-08-21 19:08:01 +12:00
Jonathan Turner
e3e4e30fb3
Lots of fixes ahead of release
2019-08-21 18:39:57 +12:00
Andrés N. Robalino
0f28719564
mv -> More organized method definitions.
2019-08-20 07:35:41 -05:00
Andrés N. Robalino
11095860c8
rm fully operational and error surveyd.
2019-08-20 06:22:11 -05:00
Jonathan Turner
64c129d65f
Finish updating the last cases
2019-08-20 18:11:11 +12:00
Jonathan Turner
421aacee76
Merge branch 'master' into implement-whole-stream-command-for-all-commands
2019-08-20 16:13:49 +12:00
Jonathan Turner
136b5693cd
Fix adding at shallow depth
2019-08-20 15:36:52 +12:00
Odin Dutton
31790a9906
Use args structs to better extract multiple arguments
2019-08-20 13:15:05 +10:00
Odin Dutton
9951691023
Use NthArgs to better convert to an integer
...
Using i64 as u64 deserialize isn't implemented yet.
2019-08-20 13:12:31 +10:00
Odin Dutton
82a315f06a
Make cd argument optional
...
`cd` with no arugments changes directory to $HOME.
2019-08-20 13:11:29 +10:00
Odin Dutton
56c04ff5b6
Remove unneeded TODOs
...
These commands have been confirmed to have no arguments.
2019-08-20 13:11:01 +10:00
Jonathan Turner
953d28ef74
Fix push/pop for shell manager
2019-08-19 20:07:55 +12:00
Jonathan Turner
fef447a659
Fix shell-ring to rotate as expected
2019-08-19 19:29:27 +12:00
Odin Dutton
d71206ed9e
Implement WholeStreamCommand for all remaining commands
2019-08-19 15:16:39 +10:00
Jonathan Turner
095f4645c0
Merge pull request #307 from androbtech/qwrapport
...
Refactoring and unwrap cleanup beginnings.
2019-08-19 14:06:43 +12:00
Jonathan Turner
7b2b671b1e
Merge pull request #309 from twe4ked/version-command
...
Introduce version command
2019-08-19 14:06:04 +12:00
Odin Dutton
4de6c941e1
Introduce version command
2019-08-19 11:30:29 +10:00
Andrés N. Robalino
5dd20850b5
Refactoring and unwrap cleanup beginnings.
2019-08-18 20:28:55 -05:00
Odin Dutton
b5db24f9ad
Fix typo in date command signature
2019-08-19 10:55:28 +10:00
Jonathan Turner
ebf7250383
Merge pull request #299 from nushell/improve-question-mark
...
Reduce unwraps
2019-08-17 16:08:59 +12:00
Yehuda Katz
5bfb96447a
Reduce unwraps
...
Remove a number of unwraps. In some cases, a `?` just worked as is. I also made it possible to use `?` to go from Result<OutputStream, ShellError> to OutputStream. Finally, started updating PerItemCommand to be able to use the signature deserialization logic, which substantially reduces unwraps.
This is still in-progress work, but tests pass and it should be clear to merge and keep iterating on master.
2019-08-16 20:53:39 -07:00
Jonathan Turner
ec7d159c83
Switch to constraint solving the table
2019-08-17 08:03:29 +12:00
Jonathan Turner
8a66a000e4
Add more polish to table wrap
2019-08-17 04:32:35 +12:00
Jonathan Turner
ffd60bb3af
Remove stray println
2019-08-16 17:56:23 +12:00
Jonathan Turner
eb6e24c220
Wrap table cells as needed
2019-08-16 17:47:47 +12:00
Yehuda Katz
0dc4b2b686
Add support for external escape valve (^dir
)
...
This commit makes it possible to force nu to treat a command as an external command by prefixing it with `^`. For example `^dir` will force `dir` to run an external command, even if `dir` is also a registered nu command.
This ensures that users don't need to leave nu just because we happened to use a command they need.
This commit adds a new token type for external commands, which, among other things, makes it pretty straight forward to syntax highlight external commands uniquely, and generally to treat them as special.
2019-08-15 15:18:18 -07:00
Jonathan Turner
785536983a
Revert "Heuristic table view"
2019-08-16 04:49:07 +12:00
Jonathan Turner
efd9631a90
All tests pass
2019-08-15 17:46:19 +12:00
Jonathan Turner
dd18122a24
WIP
2019-08-15 17:02:02 +12:00
Andrés N. Robalino
cbf6eed2d7
Communicates unsupported feature the case where directories are found in globs whether we cp or mv
2019-08-14 17:00:11 -05:00
Andrés N. Robalino
154063013f
mv introduced. \¡Viva\!
2019-08-14 15:29:05 -05:00
Andrés N. Robalino
bd71773b5b
Extracted File traversal utility for use in other commands.
2019-08-14 15:29:05 -05:00
Andrés N. Robalino
278de0e517
cp refactoring.
2019-08-14 15:29:05 -05:00
Jonathan Turner
99b881e42f
Add first per-item commands
2019-08-15 05:02:39 +12:00
Jonathan Turner
156e72f694
Finish up heuristic for table printing
2019-08-14 04:33:59 +12:00
Jonathan Turner
123b1856c8
Attempt heuristic table
2019-08-13 19:45:31 +12:00
Jonathan Turner
4411a5b72c
Merge pull request #281 from jonathandturner/improve_arrays
...
Add from_array and improve array viewing
2019-08-12 18:16:08 +12:00
Jonathan Turner
3d5395fdd5
Add from_array and improve array viewing
2019-08-12 17:51:13 +12:00
Jonathan Turner
14e47f3d2c
Add nth command
2019-08-12 17:13:58 +12:00
Jonathan Turner
6cf3dc92fc
Add support for utf16 files
2019-08-12 16:11:42 +12:00
Jonathan Turner
7c4a4ec62e
Merge pull request #278 from androbtech/replace-and-find
...
Str plugin: replace & find-replace.
2019-08-12 06:46:49 +12:00
Andrés N. Robalino
cee2f5207e
Str plugin: replace & find-replace.
2019-08-11 12:46:14 -05:00
Jonathan Turner
a6933ebe49
Add space for pagedown
2019-08-12 05:29:25 +12:00
Jonathan Turner
aea8bbf945
Clean up ghz view
2019-08-11 15:33:26 +12:00
Jonathan Turner
8e652850dc
add some battery stats
2019-08-11 15:01:09 +12:00
Jonathan Turner
72aa433802
Merge pull request #268 from androbtech/additive-nushellacturing
...
Additive nushellacturing.
2019-08-11 14:03:15 +12:00
Jonathan Turner
e19c618ac5
Revert "Rewrite the ps command"
2019-08-11 13:41:21 +12:00
Jonathan Turner
7c2fec5851
Rewrite the ps command
2019-08-11 11:09:40 +12:00
Jonathan Turner
1cc661b916
Remove comments
2019-08-11 10:13:58 +12:00
Jonathan Turner
894958d5e8
Improve sys a bit
2019-08-11 10:13:03 +12:00
Jonathan Turner
d07a3928b2
Fix test failure
2019-08-11 08:33:22 +12:00
Jonathan Turner
8f78995014
Improve enter and fix bugs
2019-08-11 08:18:14 +12:00
Andrés N. Robalino
e744237451
Clean up.
2019-08-10 05:56:47 -05:00
Andrés N. Robalino
5372463b37
Extract tests.
2019-08-10 04:40:32 -05:00
Andrés N. Robalino
cb4b2e6116
Inc refactoring. More tests.
2019-08-10 04:38:28 -05:00
Jonathan Turner
c97578bf6e
Add which command
2019-08-10 19:06:08 +12:00
Jonathan Turner
60e7dfcf1b
Add back command completions
2019-08-10 17:02:15 +12:00
Jonathan Turner
eeed31837f
cleanup
2019-08-10 08:49:43 +12:00
Jonathan Turner
34759b7646
Add back in cd/ls and completions
2019-08-10 07:42:23 +12:00
Jonathan Turner
cabd5bf009
Fix sink plugins
2019-08-09 19:54:21 +12:00
Jonathan Turner
83030094e0
All tests pass
2019-08-09 17:36:43 +12:00
Jonathan Turner
aadacc2d36
Merge master
2019-08-09 16:51:21 +12:00
Jonathan Turner
80bcc51294
get tests passing by fixing classifying external
2019-08-08 17:09:38 +12:00
Jonathan Turner
b173fa6303
Fix table print for ls
2019-08-08 16:57:38 +12:00
Jonathan Turner
e8ae46ddb5
Fix the canonicalize of set_path
2019-08-08 12:52:29 +12:00
Andrés N. Robalino
ba6d62ea0c
mkdir creates intermediary directories as required (the default). --create-all/--deep flag removed.
2019-08-07 14:38:00 -05:00
Andrés N. Robalino
50393bdf42
Make more visible the strategies for figuring out where to copy files.
2019-08-07 13:42:52 -05:00
Andrés N. Robalino
e0bacaaf37
clean up. more cp. mkdir. more test coverage. fixes.
...
- Introduced mkdir.
- Minor more labelled error improvements.
- Fix to avoid leaking child zombies.
- cp improvements.
- Introduced mkdir.
2019-08-07 13:28:46 -05:00
Andrés N. Robalino
c8b5329c5c
mkdir.
2019-08-07 13:24:20 -05:00
Andrés N. Robalino
1b7dd52713
Tests pass.
2019-08-07 13:23:02 -05:00
Jonathan Turner
c231dd32cd
Multi shells ( #254 )
...
Add multi-shells
2019-08-08 05:49:11 +12:00
Yehuda Katz
14a52bc282
WIP - more streamlining
2019-08-06 09:26:33 -07:00
Jonathan Turner
bb50f1eb14
Merge pull request #250 from jonathandturner/more_error_fixes
...
More touchups to errors
2019-08-06 15:19:45 +12:00
Jonathan Turner
ae5b781159
More touchups to errors
2019-08-06 15:03:13 +12:00
Jonathan Turner
28e9a1c347
Remove stray println
2019-08-06 06:08:31 +12:00
Jonathan Turner
99671b8ffc
Move more parts to tags and away from spans
2019-08-05 20:54:29 +12:00
Yehuda Katz
586aa6bae1
WIP - types check
2019-08-02 19:17:28 -07:00
Yehuda Katz
fc173c46d8
Restructuring
2019-08-02 12:15:07 -07:00
Jonathan Turner
e87ed76ef7
Fix quoting on external Windows commands
2019-08-02 19:25:25 +12:00
Jonathan Turner
a966e88424
Add question mark parsing
2019-08-02 15:15:04 +12:00
Jonathan Turner
6b7d9c1de0
Add glob to ls
2019-08-02 15:10:06 +12:00
Jonathan Turner
aa54995326
Merge pull request #232 from androbtech/unit-tests-wip
...
Introduced to-int into str plugin and unit tests coverage along with it.
2019-08-02 13:06:30 +12:00
Andrés N. Robalino
c5568b426c
Communicate better. update -> permit. Thanks @jonathandturner
2019-08-01 19:19:31 -05:00
Jonathan Turner
8de50ae565
Allow wildcard globs to be used in a bare word
2019-08-02 12:03:28 +12:00
Andrés N. Robalino
1bc1bb6111
Glob paths can fail. Communicates the error if it happens. thanks (jonathandturner)
2019-08-01 16:55:49 -05:00
Andrés N. Robalino
375f311331
Wildcard support adventure starting with rm command.
2019-08-01 16:01:53 -05:00
Jonathan Turner
acf8a66a8f
Allow save to use origin span in Tagged<Value>
2019-08-01 19:50:49 +12:00
Andrés N. Robalino
0231e64e37
Spanned as Tagged.
2019-08-01 01:02:20 -05:00
Andrés N. Robalino
c195c1d21d
Revert back test deleted by accident.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
174abf68bc
Refactored.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
d105d77928
Actual (results) on left hand side and expected values on the right.
...
"toint" makes it more clear than "int" under Str(strutils) plugin.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
e7fb58ef9a
Tests communicate better (separate) plugin wiring vs str features.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
832c329363
Check plugin str flags are wired properly when configuring.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
81d796472a
Improved code readability.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
193b8dbe20
Syntax cleaning bit.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
8ac36e0e83
str from std not needed.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
a0890b551a
strutils can also convert to an integer now.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
b29e7c1e36
cover raw strutils to upcase and downcase
2019-07-31 23:46:59 -05:00
Andrés N. Robalino
c3034d3247
No longer need to trace call_info
2019-07-31 23:46:59 -05:00
Andrés N. Robalino
0b8bbd8637
Unit Testing WIP.
2019-07-31 23:46:59 -05:00
Jonathan Turner
db3ff52973
Add tags command and fix source_map transfer
2019-08-01 15:25:59 +12:00
Jonathan Turner
462f783fac
initial change to Tagged<Value>
2019-08-01 13:58:42 +12:00
Jonathan Turner
509dfe72a8
Switch to rustyline nightly
2019-07-31 05:57:22 +12:00
Jonathan Turner
8ac70e7408
Various open improvements
2019-07-30 15:48:02 +12:00
Jonathan Turner
7b548026a2
Merge pull request #229 from jonathandturner/better_short_names
...
Change list/object to better short names
2019-07-30 14:10:37 +12:00
Jonathan Turner
389d9988f3
Change list/object to better short names
2019-07-30 13:54:33 +12:00
Jonathan Turner
2e84276d68
Merge pull request #228 from jonathandturner/sys_unwrap_refactor
...
Fix unwraps in sys
2019-07-30 13:30:11 +12:00
Jonathan Turner
583ef0da32
Fix unwraps in sys
2019-07-30 13:14:01 +12:00
Jonathan Turner
a8cb395bf1
Merge pull request #227 from jonathandturner/bump
...
Bump deps
2019-07-29 20:17:01 +12:00
Jonathan Turner
618be5de54
Remove workaround. Need a better one
2019-07-29 20:01:09 +12:00
Jonathan Turner
bd639b52ff
bump deps
2019-07-29 19:46:24 +12:00
Jonathan Turner
403f9d2499
Revert "Switch way of doing terminal size calculation"
2019-07-29 16:18:11 +12:00
Andrés N. Robalino
be4262e96a
Separate Nu plugin logic.
2019-07-28 21:30:47 -05:00
Andrés N. Robalino
87b299739c
Make the validation especific to str plugin for now.
2019-07-28 20:28:43 -05:00
Andrés N. Robalino
7c4706ee50
Validation baseline.
2019-07-28 18:34:37 -05:00
Jonathan Turner
5a4805d422
Switch way of doing terminal size calculation
2019-07-29 05:34:04 +12:00
Andrés N. Robalino
59dec999b8
string utils plugin baseline.
2019-07-28 02:01:32 -05:00
Jonathan Turner
c85b7728bc
Remove old sysinfo and finish sys
2019-07-28 14:02:42 +12:00
Jonathan Turner
2464a33660
Progress the sys plugin a bit further
2019-07-28 08:09:25 +12:00
Jonathan Turner
a09361698e
Update plugin protocol for begin, and create new sys plugin
2019-07-27 19:45:00 +12:00
Jonathan Turner
eba20e5c7b
Partial buffers just get printed to screen
2019-07-27 07:31:46 +12:00
Jonathan Turner
e4797f8895
Add end_plugin and sum
2019-07-27 06:40:00 +12:00
Jonathan Turner
96f26b30a7
Add date command
2019-07-26 16:09:19 +12:00
Jonathan Turner
1f26101e2f
Yet more improvements to textview (and binaryview)
2019-07-26 04:22:22 +12:00
Jonathan Turner
e74856a14e
Redo frame
2019-07-25 17:19:19 +12:00
Jonathan Turner
f2873edf6c
One more go at fixing scroll textarea in windows
2019-07-25 14:43:51 +12:00
Jonathan Turner
501482cc31
Move to rawkey
2019-07-25 13:25:17 +12:00
Jonathan Turner
a6b79748d9
Move to async keys for textview
2019-07-25 13:07:33 +12:00
Jonathan Turner
f3fdda8d35
Move textview to plugin
2019-07-25 05:14:30 +12:00
Jonathan Turner
568931c80c
add basic paging to text views
2019-07-24 19:44:12 +12:00
Yehuda Katz
73deeb69db
Clean up lint errors
2019-07-23 21:10:48 -07:00
Yehuda Katz
5a8e041a48
Tests pass!
2019-07-23 15:22:11 -07:00
Jonathan Turner
72384629fd
Merge pull request #205 from androbtech/cp_play
...
Introduced initial cp functionality.
2019-07-24 04:46:30 +12:00
Andrés N. Robalino
0790a714b0
Appropiate error handling when copying (thanks @jonathandturner)
2019-07-23 01:03:35 -05:00
Jonathan Turner
ec7d49b0d2
Add and edit functionality
2019-07-22 15:52:57 +12:00
Andrés N. Robalino
2da43f4b06
Introduced initial cp functionality.
2019-07-21 21:23:02 -05:00
Jonathan Turner
12a785f2a2
Merge pull request #202 from jonathandturner/add_bat_syntax
...
Add a more complete syntax file (from bat)
2019-07-22 04:31:57 +12:00
Jonathan Turner
5108ebccac
Merge pull request #201 from jonathandturner/row_numbers
...
Row numbers
2019-07-22 04:31:42 +12:00
Jonathan Turner
142596c36e
Add a more complete syntax file (from bat)
2019-07-22 04:03:54 +12:00
Andrés N. Robalino
191dacdd8b
Introduced conversion to csv command.
2019-07-21 02:08:05 -05:00
Jonathan Turner
a165b3574f
Add some row numbers if there are multiple rows
2019-07-20 21:23:44 +12:00
Jonathan Turner
c36c2a7b50
Switch from_csv to output rows
2019-07-20 18:44:21 +12:00
Jonathan Turner
15507f00fc
Introduce CallInfo, which abstracts args, name_span, and source_map
2019-07-20 14:27:10 +12:00
Jonathan Turner
1e6a9b9b34
Merge branch 'master' into source_spans
2019-07-20 13:14:05 +12:00
Jonathan Turner
27dbc1cb9a
Add syntect (and borrow bat's theme file)
2019-07-20 13:12:04 +12:00
Andrés N. Robalino
895a1b2d72
Introduced ability to open csv documents.
2019-07-19 15:48:42 -05:00
Jonathan Turner
d5d4da0bf8
Add first step of uuid generation and bookkeeping
2019-07-20 07:48:14 +12:00
Andrés N. Robalino
514da5bfa7
Can remove files and directories.
2019-07-18 05:21:24 -05:00
Jonathan Turner
e66c687da6
Add semver increment
2019-07-18 13:49:12 +12:00
Jonathan Turner
3b682046b7
new inc takes a path
2019-07-18 13:32:19 +12:00
Jonathan Turner
be69df86a9
Add more formats
2019-07-18 07:05:20 +12:00
Jonathan Turner
00b3106f05
Improve open URL. Format and remove warning in tests
2019-07-18 06:56:15 +12:00
Jonathan Turner
2ed46046bd
Cleanup for upcoming release
2019-07-17 07:10:25 +12:00
Jonathan Turner
c7abb31b7c
Fix inc plugin
2019-07-16 19:25:48 +12:00
Jonathan Turner
3ebb6ba991
Fix plugin's commandconfig
2019-07-16 19:08:35 +12:00
Jonathan Turner
7ffab5441b
Merge branch 'master' into pixel_ascii
2019-07-16 17:23:17 +12:00
Jonathan Turner
b07e1ccbf7
Add missing file
2019-07-16 16:05:38 +12:00
Jonathan Turner
c94c663771
Fix up some of the save formats
2019-07-16 16:03:28 +12:00
Jonathan Turner
1ecb4401ba
WIP
2019-07-16 15:25:36 +12:00
Jonathan Turner
60f4436849
Merge pull request #181 from nushell/string-arg
...
Make signatures a little more general
2019-07-16 09:40:36 +12:00
Yehuda Katz
ded3462e82
Make signatures a little more general
2019-07-15 14:16:27 -07:00
Jonathan Turner
49ddfa3940
Merge branch 'master' into pixel_ascii
2019-07-16 08:04:47 +12:00
Jonathan Turner
ae4d3ab4cf
Bump deps and add serde_bytes support
2019-07-16 06:34:44 +12:00
Jonathan Turner
59e3ca69f3
Merge pull request #177 from jonathandturner/fix_numeric_filenames
...
Check for barewords that start with a number
2019-07-16 06:04:00 +12:00
Jonathan Turner
15c95e5ffb
Merge pull request #174 from androbtech/recognize-more-unit
...
K raw unit is a kilobyte.
2019-07-16 05:53:03 +12:00
Jonathan Turner
bb13c2e234
Check for barewords that start with a number
2019-07-16 05:48:06 +12:00
Jonathan Turner
5261d5f43f
Fix space and escaped paren completions
2019-07-15 17:40:27 +12:00
Andrés N. Robalino
520ab55756
K raw unit is a kilobyte.
2019-07-14 22:47:01 -05:00
Jonathan Turner
8d920baf07
Try to add hires mode
2019-07-15 06:38:03 +12:00
Jonathan Turner
1a36f47bcb
Don't redraw static frame
2019-07-14 19:54:30 +12:00
Jonathan Turner
a3f628427f
Fix binary view for better approx
2019-07-14 19:28:56 +12:00
Jonathan Turner
59115a532f
Merge pull request #173 from jonathandturner/simplify_ls
...
Change 'file name' => 'name'. Same for type
2019-07-14 17:23:29 +12:00
Jonathan Turner
720cc03649
Change 'file name' => 'name'. Same for type
2019-07-14 16:59:36 +12:00
Andrés N. Robalino
7e78bb4af5
Informs passing flags is unimplemented instead of quitting.
2019-07-13 22:39:41 -05:00
Jonathan Turner
eefb6fd9a0
Bump rustc version. Fix macOS build issue
2019-07-14 05:32:01 +12:00
Jonathan Turner
7e555a0ef2
"Add plugin arg errors. Bring remaining errors to parity"
2019-07-14 04:59:59 +12:00
Yehuda Katz
b2d48566ba
Remove unused tree
2019-07-12 19:20:26 -07:00
Yehuda Katz
6bf55c0f1e
Remove more dead code and clean up JSON
2019-07-12 19:20:26 -07:00
Yehuda Katz
7c2a1c619e
Tests pass
2019-07-12 19:20:26 -07:00
Yehuda Katz
70f9e355fd
WIP
2019-07-12 19:20:26 -07:00
Yehuda Katz
2da12aed56
Tests pass
2019-07-12 19:20:26 -07:00
Yehuda Katz
7b68739b52
WIP
2019-07-12 19:20:26 -07:00
Yehuda Katz
71adfb4cdc
WIP
2019-07-12 19:20:26 -07:00
Yehuda Katz
34033afce4
WIP improve error infrastructure
...
Also simplify commands and reduce papercuts
2019-07-12 19:20:26 -07:00
Jonathan Turner
958bb534b4
Finish moving a couple commands to plugins, remove unused plugin
2019-07-06 05:19:19 +12:00
Jonathan Turner
ea997289d9
Add some logic for more binary formats
2019-07-05 19:53:09 +12:00
Jonathan Turner
71ac03f287
Improve ansi handling
2019-07-05 16:23:28 +12:00
Jonathan Turner
563fabfdca
Small cleanup, hopefull unbroken lock file
2019-07-05 13:01:19 +12:00
Jonathan Turner
73d87e57ab
Switch to rawkey reader. Add more binary reading
2019-07-05 10:17:18 +12:00
Jonathan Turner
5e779d8b2b
Add pretty binary viewing
2019-07-04 17:23:05 +12:00
Jonathan Turner
65a0d27c8a
Add binary type and tree sink
2019-07-04 17:11:56 +12:00
Jonathan Turner
dc8545ce10
Add a test for the plugins
2019-07-04 15:18:19 +12:00
Jonathan Turner
c653751d2c
Bump and cleanup plugin name match
2019-07-04 15:06:43 +12:00
Jonathan Turner
0180769971
WIP now load plugins automatically
2019-07-04 05:37:09 +12:00
Jonathan Turner
75ddfe9f5a
Add filter and sink plugins
2019-07-02 19:56:20 +12:00
Jonathan Turner
ccb3c92287
cleanup
2019-06-30 18:49:33 +12:00
Jonathan Turner
d86b808694
Merge branch 'master' into serial
2019-06-30 18:47:03 +12:00
Jonathan Turner
c3697c67ca
Make serialization full-fidelity
2019-06-30 18:46:49 +12:00
Yehuda Katz
711ed05b43
Produce ArgumentError for signature mismatch
...
ArgumentError also automatically produces diagnostics
2019-06-29 23:14:40 -07:00
Yehuda Katz
5cac3d1135
Fix lints
2019-06-29 09:32:58 -07:00
Yehuda Katz
3379c23a49
Support evaluating most expressions
...
Blocks, paths, and others
Plus a bunch of other infra improvements
2019-06-29 01:55:42 -07:00
Jonathan Turner
47f23cacc7
Add second plugin
2019-06-28 04:47:24 +12:00
Jonathan Turner
78bb5647fc
A bit of tidying
2019-06-27 17:16:29 +12:00
Jonathan Turner
d5704808d4
First working plugin
2019-06-27 16:56:48 +12:00
Jonathan Turner
c9e74b1898
Merge pull request #135 from jonathandturner/mime_open
...
Add content-type to open, refactor open/enter
2019-06-26 19:52:50 +12:00
Jonathan Turner
cfcf43ca93
Add content-type to open, refactor open/enter
2019-06-26 19:40:43 +12:00
Jonathan Turner
8bf7ea1c6c
Add at
2019-06-26 18:33:26 +12:00
Jonathan Turner
c969c2c362
Clean up old parser code
2019-06-25 16:33:12 +12:00
Jonathan Turner
160074346f
Fix units and add test
2019-06-24 19:59:23 +12:00
Jonathan Turner
dea5ff17c3
Remove println
2019-06-24 16:13:01 +12:00
Jonathan Turner
dd4e59d627
Fix coloring of commands
2019-06-24 16:00:16 +12:00
Jonathan Turner
62368644fa
Fix lines for windows
2019-06-24 14:00:53 +12:00
Yehuda Katz
7957fc502f
Fix a bunch of bugs
2019-06-23 18:55:31 -06:00
Yehuda Katz
bed5ba52d3
Fixed trailing issues
2019-06-23 15:36:01 -04:00
Jonathan Turner
af82f44e13
Merge master, fix conflicts
2019-06-24 05:54:02 +12:00
Yehuda Katz
cbab97174e
Fix painting
2019-06-23 13:35:43 -04:00
Jonathan Turner
3d893d5afc
Update sysinfo for better subsystem selection
2019-06-24 05:21:09 +12:00
Yehuda Katz
d0860837d2
Merge branch 'nom2' into nom4
2019-06-22 18:20:13 -04:00
Yehuda Katz
4036bf1ffd
&str -> Text
2019-06-22 16:46:16 -04:00
Jonathan Turner
dc081151bc
add back some shell coloring
2019-06-23 07:47:29 +12:00
Jonathan Turner
37c4fb92f8
Fix raw as a variable
2019-06-23 06:32:58 +12:00
Jonathan Turner
9af08eb911
Fix flag oversight
2019-06-23 06:02:23 +12:00
Jonathan Turner
72a61f557b
Remove debug println
2019-06-23 04:59:37 +12:00
Jonathan Turner
0046305ea1
Fix conflicts
2019-06-23 04:31:51 +12:00
Yehuda Katz
3b35dcb619
Finish nom upgrade
2019-06-22 10:08:53 -04:00
Jonathan Turner
8cc91e05c4
WIP
2019-06-22 15:52:19 +12:00
Jonathan Turner
1c0096b2fb
WIP
2019-06-22 15:49:49 +12:00
Jonathan Turner
9ae9beb94a
WIP
2019-06-22 15:43:37 +12:00
Jonathan Turner
baeb192f12
Merge master
2019-06-22 13:38:17 +12:00
Yehuda Katz
e981129f1f
Things work
2019-06-21 21:36:57 -04:00
Jonathan Turner
62310caa32
now tableview forces being a table
2019-06-21 19:52:15 +12:00
Jonathan Turner
18e39343ad
Add vertical table view
2019-06-21 16:20:06 +12:00
Jonathan Turner
68a04829cb
Add more information to sysinfo
2019-06-21 13:35:51 +12:00
Jonathan Turner
b4eb32f1db
Touchups to external values
2019-06-19 17:51:24 +12:00
Jonathan Turner
10654d425f
Fix Windows build issue
2019-06-19 17:09:22 +12:00
Jonathan Turner
3f718a20be
Add a system info source
2019-06-19 16:53:55 +12:00
Jonathan Turner
a72e92207b
Merge branch 'master' into lines
2019-06-18 15:39:17 +12:00
Jonathan Turner
a764a64161
Move back onto main subprocess
2019-06-18 14:04:34 +12:00
Jonathan Turner
5389c8ac45
Add missing files
2019-06-18 12:39:57 +12:00
Jonathan Turner
54301fe3be
Add lines and improve split
2019-06-18 12:39:09 +12:00
Jonathan Turner
1000ec21b5
Add .ini loading/saving
2019-06-16 18:43:40 +12:00
Jonathan Turner
eae83d85d2
Add more error checking
2019-06-16 11:03:49 +12:00
Jonathan Turner
7a332892bd
Fixes for windows
2019-06-16 09:41:26 +12:00
Jonathan Turner
416d1c8cbb
Merge branch 'master' into touchups
2019-06-16 06:41:26 +12:00
Jonathan Turner
54be5bf16e
Update errors and improve ctrl-c
2019-06-16 06:36:17 +12:00
Jonathan Turner
910869b79d
Get stream errors working
2019-06-16 05:52:55 +12:00
Jonathan Turner
3121f1c20f
Fix warning
2019-06-15 16:56:18 +12:00
Jonathan Turner
d7c49fa3be
More touchups. Fix crash
2019-06-15 16:20:58 +12:00
Yehuda Katz
6e222eec2b
More delimiters
2019-06-14 20:16:13 -07:00
Yehuda Katz
640484063b
More tests
2019-06-14 20:16:13 -07:00
Yehuda Katz
4f3a5f0300
Paths
2019-06-14 20:16:13 -07:00
Yehuda Katz
c5c14e2d89
Add a bunch more tokens and delimited ()
2019-06-14 20:16:13 -07:00
Yehuda Katz
4291e31dc7
Start rebuilding lite parser using nom
2019-06-14 20:16:13 -07:00
Jonathan Turner
8cdd567b0e
Rewrite README and do some touchups
2019-06-15 14:24:13 +12:00