mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-27 06:37:19 +02:00
Fix context filter
This commit is contained in:
parent
5356b581d4
commit
4fec098365
2 changed files with 2 additions and 3 deletions
|
@ -518,7 +518,7 @@ impl TTApp {
|
||||||
let task_uuid = *self.tasks.lock().unwrap()[selected].uuid();
|
let task_uuid = *self.tasks.lock().unwrap()[selected].uuid();
|
||||||
let output = Command::new("task")
|
let output = Command::new("task")
|
||||||
.arg("rc.color=off")
|
.arg("rc.color=off")
|
||||||
.arg(format!("rc.defaultwidth={}", f.size().width-2))
|
.arg(format!("rc.defaultwidth={}", f.size().width - 2))
|
||||||
.arg(format!("{}", task_uuid))
|
.arg(format!("{}", task_uuid))
|
||||||
.output();
|
.output();
|
||||||
if let Ok(output) = output {
|
if let Ok(output) = output {
|
||||||
|
@ -927,7 +927,7 @@ impl TTApp {
|
||||||
task.arg("rc.confirmation=off");
|
task.arg("rc.confirmation=off");
|
||||||
task.arg("export");
|
task.arg("export");
|
||||||
|
|
||||||
let filter = if self.current_context_filter.is_empty() {
|
let filter = if !self.current_context_filter.is_empty() {
|
||||||
let t = format!("{} {}", self.filter.as_str(), self.current_context_filter);
|
let t = format!("{} {}", self.filter.as_str(), self.current_context_filter);
|
||||||
t
|
t
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -79,7 +79,6 @@ impl Events {
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
let mut last_tick = Instant::now();
|
let mut last_tick = Instant::now();
|
||||||
loop {
|
loop {
|
||||||
|
|
||||||
if pause_stdin.load(Ordering::SeqCst) {
|
if pause_stdin.load(Ordering::SeqCst) {
|
||||||
thread::sleep(Duration::from_millis(250));
|
thread::sleep(Duration::from_millis(250));
|
||||||
thread::park();
|
thread::park();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue