Skip to content

Commit 2a9bd07

Browse files
authored
Merge pull request #2 from revathskumar/fix/make-case-insensitive
fix(rofi): make search case insensitive
2 parents b395632 + 0f54fb4 commit 2a9bd07

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99

1010
## 0.3.0
1111

12-
- removes `dirs` crate and use `$USER` to get `HOME` directory
12+
- removes `dirs` crate and use `$USER` to get `HOME` directory
13+
14+
## 0.3.1
15+
16+
- default will be case insensitive search. Use `grave` key to toggle.

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rofi-totp"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Revath S Kumar <[email protected]>"]
55
documentation = "https://github.com/revathskumar/rofi-totp"
66
homepage = "https://github.com/revathskumar/rofi-totp"

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ apps:
4545
4646
Download executable from [releases](https://github.com/revathskumar/rofi-totp/releases/latest) and keep it in you `$PATH`
4747

48+
By default search will be case insensitive from version `0.3.1`. To toggle, case sensitivity use `grave` key. Normally (`).
49+
4850
### Development
4951

5052
```sh

src/rofi.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub fn create() -> std::process::Child {
66
.arg("-dmenu")
77
.arg("-p")
88
.arg("2fa")
9+
.arg("-i")
910
.stdin(Stdio::piped())
1011
.stdout(Stdio::piped())
1112
.spawn()
@@ -16,4 +17,4 @@ pub fn set_content(mut rofi: std::process::Child, content: &str) -> std::process
1617
let stdin = rofi.stdin.as_mut().expect("Failed to open stdin");
1718
stdin.write_all(content.as_bytes()).unwrap();
1819
rofi
19-
}
20+
}

0 commit comments

Comments
 (0)