Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Canop's full-sized avatar
🦀
You want to contact me? Come to miaou (https://miaou.dystroy.org) and ask for me

Denys Séguret Canop

🦀
You want to contact me? Come to miaou (https://miaou.dystroy.org) and ask for me
View GitHub Profile
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aho-corasick"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6748e8def348ed4d14996fa801f4122cd763fff530258cdc03f64b25f89d3a5a"
dependencies = [
#textdomain wesnoth-the_dystroyer
[scenario]
id=road_to_home
next_scenario=arrival
name=_"Route vers la maison"
map_file="road_to_home.map"
turns=30
[side]
side=1
controller=human
[textdomain]
name="wesnoth-the_dystroyer"
path="data/add-ons/the_dystroyer/translations"
[/textdomain]
#textdomain wesnoth_the_dystroyer
[campaign]
#wesnoth-the_dystroyer
id=the_dystroyer
#textdomain wesnoth-units
[unit_type]
id=Galo 0
name= _ "Apprenti coureur des bois"
race=elf
gender=male
image="units/elves-wood/archer.png"
small_profile="portraits/elves/archer.webp~CROP(0,40,360,360)"
profile="portraits/elves/archer.webp"
hitpoints=20
@Canop
Canop / broot-neovim-terminator_workflow.md
Created April 12, 2020 07:40
broot + neovim + terminator workflow

Introduction

I document here the new workflow I'm tuning in which I combine broot, neovim and terminator for enjoyable coding. I'll use here as support the exemple of Rust but it works about the same in other environnements.

Goals

  • keep open broot and neovim side to side and use broot as tree viewer and opener for vim
  • have a flexible setup: broot, neovim and terminator are basic tools that you should keep using as you do, this new combinations isn't a different world
  • Keep neovim uncluttered, don't prevent the shortcuts you already use for navigation and opening
use {
crossterm::style::Colorize,
rand::Rng,
std::io::*,
};
fn int() -> i64 {
rand::thread_rng().gen_range(10, 50)
}
/// print the time that executing $timed took
/// but only when the log level is "debug".
/// The goal of this macro is to avoid doing useless
/// Instant::now in non Debug executions.
///
/// Examples:
/// ```
/// let sum = time!(
dys@tour-noire:~/dev/termimad> cargo tree
termimad v0.6.1 (/home/dys/dev/termimad)
├── crossbeam v0.7.2
│ ├── cfg-if v0.1.9
│ ├── crossbeam-channel v0.3.9
│ │ └── crossbeam-utils v0.6.6
│ │ ├── cfg-if v0.1.9 (*)
│ │ └── lazy_static v1.3.0
│ ├── crossbeam-deque v0.7.1
│ │ ├── crossbeam-epoch v0.7.2
# Code with semicolons:
use std::fmt;
use minimad::Text;
use crate::skin::MadSkin;
use crate::code;
use crate::line::FmtLine;
use crate::tbl;
dys@tour-noire:~/dev/broot> cargo install cargo-crev
Updating crates.io index
Downloaded cargo-crev v0.7.0
Downloaded 1 crates (18.5 KB) in 1.64s
Installing cargo-crev v0.7.0
Downloaded crev-common v0.7.0
Downloaded serde_yaml v0.8.9
Downloaded crev-data v0.7.0
Downloaded flate2 v1.0.8
Downloaded common_failures v0.1.1