id
stringlengths
20
30
source
stringclasses
1 value
chunk_index
int64
0
520k
token_count
int32
154
512
content
stringlengths
185
57.5k
rust_dataset_chunk_520100
rust_dataset.txt
520,100
512
struct $name<'a>(pub &'a self::Opts<'a>); impl<'a> ::std::ops::Deref for $name<'a> { type Target = self::Opts<'a>; fn deref(&self) -> &Self::Target { self.0 } } }; } make_template!(Bash, "bash.txt"); make_template!(Elvish, "elvish.txt"); make_te...
rust_dataset_chunk_520101
rust_dataset.txt
520,101
512
_stdin(source) .assert() .success() .stdout("") .stderr(""); } #[apply(opts)] fn bash_shfmt(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { let opts = Opts { cmd, hook, echo, resolve_symlinks }; let mut source = Bash(&...
rust_dataset_chunk_520102
rust_dataset.txt
520,102
512
.env("HOME", tempdir) .args(["--command", &source, "--no-config", "--private"]) .assert() .success() .stdout("") .stderr(""); } #[apply(opts)] fn fish_fishindent(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { let...
rust_dataset_chunk_520103
rust_dataset.txt
520,103
512
{ cmd, hook, echo, resolve_symlinks }; let source = Posix(&opts).render().unwrap(); let assert = Command::new("dash").args(["-e", "-u", "-c", &source]).assert().success().stderr(""); if opts.hook != InitHook::Pwd { assert.stdout(""); } } #[apply(opts)] ...
rust_dataset_chunk_520104
rust_dataset.txt
520,104
512
new("tcsh") .args(["-e", "-f", "-s"]) .write_stdin(source) .assert() .success() .stdout("") .stderr(""); } #[apply(opts)] fn xonsh_black(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { let opts = Opts {...
rust_dataset_chunk_520105
rust_dataset.txt
520,105
512
(""); } #[apply(opts)] fn zsh_shellcheck(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { let opts = Opts { cmd, hook, echo, resolve_symlinks }; let source = Zsh(&opts).render().unwrap(); // ShellCheck doesn't support zsh yet: https://github.com/koalaman/she...
rust_dataset_chunk_520106
rust_dataset.txt
520,106
512
is a potential security issue. // Instead, we resolve the path to the executable and then pass it to // CreateProcess. #[cfg(windows)] let program = which::which("fzf.exe").map_err(|_| anyhow!(Self::ERR_FZF_NOT_FOUND))?; #[cfg(not(windows))] let program = "fzf"; ...
rust_dataset_chunk_520107
rust_dataset.txt
520,107
512
<OsStr>, { self.0.env(key, val); self } pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self where I: IntoIterator<Item = (K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr>, { self.0.envs(vars); self } pub fn spawn(&mut self) -> Result<FzfChi...
rust_dataset_chunk_520108
rust_dataset.txt
520,108
512
<[u8]>) -> Result<()> { let path = path.as_ref(); let contents = contents.as_ref(); let dir = path.parent().unwrap(); // Create a tmpfile. let (mut tmp_file, tmp_path) = tmpfile(dir)?; let result = (|| { // Write to the tmpfile. _ = tmp_file.set_len(contents.len() as u64); ...
rust_dataset_chunk_520109
rust_dataset.txt
520,109
512
=> break Ok((file, path)), Err(e) if e.kind() == io::ErrorKind::AlreadyExists && attempts < MAX_ATTEMPTS => {} Err(e) => { break Err(e).with_context(|| format!("could not create file: {}", path.display())); } } } } /// Similar to [`fs::rename`], but with...
rust_dataset_chunk_520110
rust_dataset.txt
520,110
512
impl AsRef<Path>) -> Option<u8> { let path = path.as_ref(); let mut components = path.components(); match components.next() { Some(Component::Prefix(prefix)) => match prefix.kind() { Prefix::Disk(drive_letter) | Prefix::VerbatimDisk(drive_letter)...
rust_dataset_chunk_520111
rust_dataset.txt
520,111
512
} else { base_path = current_dir()?; stack.extend(base_path.components()); } for component in components { match component { Component::Normal(_) => stack.push(component), Component::CurDir => {} Component::ParentDir => { if stack....
rust_dataset_chunk_520112
rust_dataset.txt
520,112
512
let tempdir = tempfile::tempdir().unwrap(); let tempdir = tempdir.path().to_str().unwrap(); Command::new("fish") .env("HOME", tempdir) .args(["--command", source, "--private"]) .assert() .success() .stdout("") .stderr(""); } #[test] fn completions_powershell...
rust_dataset_chunk_520113
rust_dataset.txt
520,113
512
0.16.0", default-features = false, features = [ "derive", "std", ] } bincode = "1.3.1" clap = { version = "4.3.0", features = ["derive"] } color-print = "0.3.4" dirs = "6.0.0" dunce = "1.0.1" fastrand = "2.0.0" glob = "0.3.0" ouroboros = "0.18.3" serde = { version = "1.0.116", features = ["derive"] } time = { v...
rust_dataset_chunk_520114
rust_dataset.txt
520,114
512
LOG.md", "usr/share/doc/zoxide/", "644", ], [ "LICENSE", "usr/share/doc/zoxide/", "644", ], ] extended-description = """\ zoxide is a smarter cd command, inspired by z and autojump. It remembers which \ directories you use most frequently, so you can "jump" to them in...
rust_dataset_chunk_520115
rust_dataset.txt
520,115
512
z` now honors `$CDPATH`. - Bash: don't add to the database when history is disabled (`set +o history`). - Nushell: export commands so the init script can be imported with `use`. - Support for RISC-V (riscv64) Linux. ### Changed - `import` now takes a subcommand instead of the `--from` flag. - Nushell: upgrade minimum...
rust_dataset_chunk_520116
rust_dataset.txt
520,116
512
Space-Tab completions. ### Fixed - Bash: doctor now handles `$PROMPT_COMMAND` being an array. - Bash: doctor now handles Visual Studio Code's shell integration. - Bash: completions now work with `ble.sh`. - Nushell: stop ignoring symlinks when `cd`-ing into a directory. - Fzf: updated minimum supported version to v0...
rust_dataset_chunk_520117
rust_dataset.txt
520,117
512
`cd` command is now copied directly from `$__fish_data_dir/functions/cd.fish`. This should minimize the chances of an infinite loop when aliasing `cd=z`. - Symlinks not getting added to the database when `$_ZO_RESOLVE_SYMLINKS=0`. - Symlinked database files getting replaced instead of the actual files. ## [0.9.4]...
rust_dataset_chunk_520118
rust_dataset.txt
520,118
512
remove -i` subcommand: use `edit` instead. ## [0.8.3] - 2022-09-02 ### Added - Nushell: support for `z -`. - Nushell: support for PWD hooks. ### Changed - Fish: change fuzzy completion prefix to `z!`. - Zsh: allow `z` to navigate dirstack via `+n` and `-n`. - Fzf: improved preview window. ### Fixed - Bash: doubl...
rust_dataset_chunk_520119
rust_dataset.txt
520,119
512
on older versions. - Fzf: avoid launching binary from current directory on Windows. ## [0.7.9] - 2021-11-02 ### Changed - Bash/Fish: improved completions for `z` command. ### Fixed - Fish: error erasing completions on older versions. - PowerShell: enable `--cmd cd` to replace the `cd` command. ## [0.7.8] - 2021-...
rust_dataset_chunk_520120
rust_dataset.txt
520,120
512
V` not printing version. ## [0.7.1] - 2021-06-09 ### Added - Auto-generated shell completions. - `zoxide query --all` for listing deleted directories. - Lazy deletion for removed directories that have not been accessed in > 90 days. - Nushell: support for v0.32.0+. ### Fixed - Nushell: avoid calling `__zoxide_ho...
rust_dataset_chunk_520121
rust_dataset.txt
520,121
512
.0] - 2020-10-30 ### Added - `$_ZO_EXCLUDE_DIRS` now supports globs. - `zoxide init` now defines `__zoxide_z*` functions that can be aliased as needed. - Support for the [Xonsh](https://xon.sh/) shell. - `zoxide import` can now import from Autojump. ### Changed - `zoxide init --no-aliases` no longer generates `z`...
rust_dataset_chunk_520122
rust_dataset.txt
520,122
512
` now only works when set to `1`. - Using the `--z-cmd` flag now also renames the associated aliases. - The `--z-cmd` flag has been renamed to `--cmd`. - The `--no-define-aliases` flag has been renamed to `--no-aliases`. ### Fixed - Fish no longer `cd`s to the user's home when no match is found. ## [0.3.1] - 2020-04...
rust_dataset_chunk_520123
rust_dataset.txt
520,123
512
_precmd` overriding other precmd hooks on Zsh. ## [0.1.1] - 2020-03-08 ### Added - Install script for Linux/macOS users. - Aging algorithm to remove stale entries. ### Changed - Database schema now uses `f64` values for rank instead of `i32`. ### Fixed - Multiple hooks being added upon initializing `zoxide` mult...
rust_dataset_chunk_520124
rust_dataset.txt
520,124
512
8.3]: https://github.com/ajeetdsouza/zoxide/compare/v0.8.2...v0.8.3 [0.8.2]: https://github.com/ajeetdsouza/zoxide/compare/v0.8.1...v0.8.2 [0.8.1]: https://github.com/ajeetdsouza/zoxide/compare/v0.8.0...v0.8.1 [0.8.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.7.9...v0.8.0 [0.7.9]: https://github.com/ajeetdsouza...
rust_dataset_chunk_520125
rust_dataset.txt
520,125
512
.0...v0.6.0 [0.5.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.4.3...v0.5.0 [0.4.3]: https://github.com/ajeetdsouza/zoxide/compare/v0.4.2...v0.4.3 [0.4.2]: https://github.com/ajeetdsouza/zoxide/compare/v0.4.1...v0.4.2 [0.4.1]: https://github.com/ajeetdsouza/zoxide/compare/v0.4.0...v0.4.1 [0.4.0]: https://github....
rust_dataset_chunk_520126
rust_dataset.txt
520,126
512
a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. We pled...
rust_dataset_chunk_520127
rust_dataset.txt
520,127
512
of this Code of Conduct: ### 1. Correction **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the...
rust_dataset_chunk_520128
rust_dataset.txt
520,128
512
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions ...
rust_dataset_chunk_520129
rust_dataset.txt
520,129
512
c829" /></a> <div><sup>Processing over 3TB/s of video at peak load,</sup></div> <!-- markdownlint-disable-next-line MD013 --> <div><sup>now <a href="https://www.recall.ai/careers?ashby_jid=7b02811e-bc91-4ef2-925d-f56a5acac13b&utm_source=github&utm_medium=sponsorship&utm_campaign=zoxide">hiring in SF.<...
rust_dataset_chunk_520130
rust_dataset.txt
520,130
512
1. **Install binary** zoxide runs on most major platforms. If your platform isn't listed below, please [open an issue][issues]. <details> <summary>Linux / WSL</summary> > The recommended way to install zoxide is via the install script: > > ```sh > curl -sSfL https://raw.githubusercontent.com/...
rust_dataset_chunk_520131
rust_dataset.txt
520,131
512
pper install zoxide` | > | ~~Parrot OS~~[^1] | | ~~`apt install zoxide`~~ | > | ~~Raspbian~~[^1] | ~~[Raspbian Packages]~~ | ~~`apt install zoxide`~~ | > | Rh...
rust_dataset_chunk_520132
rust_dataset.txt
520,132
512
| Repository | Instructions | > | --------------- | ------------------------------------- | > | **[crates.io]** | `cargo install zoxide --locked` | > | [Chocolatey] | `choco install zoxide` | > | [conda-forge] | `conda install -c conda-forge zoxide` |...
rust_dataset_chunk_520133
rust_dataset.txt
520,133
512
**</ins> of your config file (usually `~/.bashrc`): > > ```sh > eval "$(zoxide init bash)" > ``` </details> <details> <summary>Elvish</summary> > Add this to the <ins>**end**</ins> of your config file (usually `~/.elvish/rc.elv`): > > ```sh > eval (zoxide init elvish | slurp) > ``...
rust_dataset_chunk_520134
rust_dataset.txt
520,134
512
zoxide init tcsh > ~/.zoxide.tcsh > source ~/.zoxide.tcsh > ``` </details> <details> <summary>Xonsh</summary> > Add this to the <ins>**end**</ins> of your config file (usually `~/.xonshrc`): > > ```python > execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide') > ``` ...
rust_dataset_chunk_520135
rust_dataset.txt
520,135
512
d | `zoxide import fasd` | | z | `zoxide import z` | | z.lua | `zoxide import z.lua` | | zsh-z | `zoxide import zsh-z` | ## Configuration ### Flags When calling `zoxide init`, the following flags are available: - `--cmd` - Changes the prefix of the `z` and `zi` commands....
rust_dataset_chunk_520136
rust_dataset.txt
520,136
512
Example | | ------------------- | --------- | ----------------------- | | Linux / macOS / BSD | `:` | `$HOME:$HOME/private/*` | | Windows | `;` | `$HOME;$HOME/private/*` | - By default, this is set to `"$HOME"`. - `_ZO_FZF_OPTS` - Custom options to pass to [fzf]...
rust_dataset_chunk_520137
rust_dataset.txt
520,137
512
tmux` session manager | Natively supported | | [vim] / [neovim] | Text editor | [zoxide.vim] | | [xplr] | File manager | [zoxide.xplr] | | ...
rust_dataset_chunk_520138
rust_dataset.txt
520,138
512
ates.io]: https://crates.io/crates/zoxide [debian packages]: https://packages.debian.org/stable/admin/zoxide [exherbo packages]: https://gitlab.exherbo.org/exherbo/rust/-/tree/master/packages/sys-apps/zoxide [devuan packages]: https://pkginfo.devuan.org/cgi-bin/package-query.html?c=package&q=zoxide [downloads-badge]: h...
rust_dataset_chunk_520139
rust_dataset.txt
520,139
512
use factory]: https://build.opensuse.org/package/show/openSUSE:Factory/zoxide [pacstall packages]: https://pacstall.dev/packages/zoxide-deb [pkgsrc]: https://pkgsrc.se/sysutils/zoxide [ranger-zoxide]: https://github.com/jchook/ranger-zoxide [ranger]: https://github.com/ranger/ranger [raspbian packages]: https://archive...
rust_dataset_chunk_520140_tail
rust_dataset.txt
520,140
154
h-plugin-prerun-zoxide]: https://github.com/xxh/xxh-plugin-prerun-zoxide [xxh]: https://github.com/xxh/xxh [yazi]: https://github.com/sxyazi/yazi [zabb]: https://github.com/Mellbourn/zabb [zesh]: https://github.com/roberte777/zesh [zoxide.el]: https://gitlab.com/Vonfry/zoxide.el [zoxide.vim]: https://github.com/nanotee...