json5
tab-rs
Our great sponsors
json5 | tab-rs | |
---|---|---|
94 | 13 | |
6,278 | 650 | |
1.1% | - | |
0.0 | 0.0 | |
5 months ago | about 1 year ago | |
JavaScript | Rust | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json5
- JSON5 – JSON for Humans
- Why the fuck are we templating YAML? (2019)
-
I pre-released my project "json-responder" written in Rust
JSON5 support
-
topoconfig: enhancing config declarations with graphs
Meanwhile, formats have been evolving (JSON5, YAML), config entry points are constantly changing. These fluctuations, fortunately, were covered by tools like the cosmiconfig.
-
That's a Lot of YAML
I think JSON5 is fairly close to this: https://json5.org
I reckon the only thing it's missing to be truly accessible to non-techies is that string values still need to be quoted, i.e. you can't have:
key: this is my value
(I'm definitely not saying it would be a good idea to allow quotes to be dropped, just that that's the only potential stumbling block I see for non-techies.)
-
XML is better than YAML
I believe that's JSON5.
https://github.com/json5/json5
It's my preferred configuration file format, it fixes all the problems I have with JSON (trailing commas, comments) without turning it into a mess full of gotchas like YAML.
- Fx – Terminal JSON Viewer
- What Is Wrong with TOML?
-
🚀 'GET' API in API Maker
JSON 5 support
-
TySON: a native go library that lets you use TypeScript as an embedded configuration language without depending on Node or V8
I would like to see mention of JSON5 which is 11 years its elder. For comments in JSON, JSON5 is a good starting point.
tab-rs
-
Another terminal multiplexer for team leads.
If you want to read some code, my project is tab-rs.
- Zellij – A Terminal Workspace and Multiplexer Written in Rust
-
Zellij: a Rusty terminal multiplexer releases a beta
I myself use the many (alacritty) terminals + tiling WM solution at the moment (switching between i3wm and LeftWM) but it doesn't feel optimal. I always though tmux looked too involved to learn so I've been on the lookout for alternatives such as Wezterm (a terminal with built-in multiplexing), tab (a command line controlled multiplexer) and now zellij.
-
What's everyone working on this week (9/2021)?
Plus a lot of cleanup in the tab-pty-process crate. It now exposes an interface similar to portable-pty, but with non-blocking file handles.
-
My take on byobu, an easy to use terminal multiplexer
I ended up writing a terminal multiplexer because screen and tmux were too complicated to use. It has a built in fuzzy finder, stateless navigation, and YAML configs for persistent sessions: https://github.com/austinjones/tab-rs/
-
Actors with Tokio
The way I typically unify messages is define an enum, and map/merge channel receivers. tokio-stream would probably work with these examples. Here's an example from a fuzzy-finder implementation: https://github.com/austinjones/tab-rs/blob/main/tab-command/src/service/terminal/fuzzy.rs#L332
-
Terminal Multiplexers
Really nice cheat-sheet write up on screen & tmux & byobu.
Also worth checking out tabs-rs[1] which seems very well reviewed & recent.
Personally, I am a huge fan of dtach[2][3], which isn't a multiplexer, just a detachable proxier of terminal sessions. This let's me run a persistent vim session that I can reconnect to, and vim has however many terminals I need open in it. Vim does my multiplexing, dtach just allows me to make vim persistent. Very glad to have re-discovered dtach, to enable this workflow.
Notably dtach is very lightweight. Unlike tmux, it is not a virtual terminal. Upon reconnect to my vim session, I issue a control-l to refresh the screen. Dtach hasn't retained the screen state, isn't translating between terminfos. The one thing that can go wrong here is connecting from different terminals- few programs have a way to update the TERM setting once the program has launched.
[1] https://github.com/austinjones/tab-rs
[2] https://github.com/crigler/dtach
[3] https://wiki.archlinux.org/index.php/Dtach
-
Hurl 1.0.0, a command line tool to run and test HTTP requests
The nice thing about that is that many other tools can work too. Someone using direnv can set properties that would be available in the hurl script. Likewise, someone using tab could have environment variables defined for their active tab that could be used. If you invent your own notion of an environment, you lose interop with a lot of other tools that target the standard environment.
-
I wrote a terminal multiplexer called tab. It's designed to be intuitive, and config-driven.
Are you running v0.5.3? I just released a fix for a Kakoune issue that was caused by add-highlighter global/ number-lines -relative in kakrc. It sounds similar to what you described.
-
How To Write A Terminal Multiplexer With Rust
There are also some crazy ANSI sequences that cause the terminal emulator to write stdin - so applications can query the terminal state. Crazy stuff can happen when those sequences are copied from the scrollback buffer (which is why tab now filters them out).
What are some alternatives?
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
zellij - A terminal workspace with batteries included
hjson-js - Hjson for JavaScript
.tmux - 🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
toml - Tom's Obvious, Minimal Language
pueue - :stars: Manage your shell commands.
jsonnet - Jsonnet - The data templating language
zoxide - A smarter cd command. Supports all major shells.
sublime-hjson - Hjson support for Sublime Text
wezterm - A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust