Skip to content

Commit

Permalink
fix #119
Browse files Browse the repository at this point in the history
  • Loading branch information
laktak committed May 9, 2024
1 parent c1e5cc5 commit 9c7c61f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extrakto_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def has_single_pane(self):

def get_next_mode(self, next):
if next == "initial":
return os.environ.get("extrakto_inital_mode", self.modes_list[0])
return os.environ.get("extrakto_inital_mode").strip() or self.modes_list[0]
else:
return self.next_mode[next]

Expand Down Expand Up @@ -313,7 +313,8 @@ def capture(self):
],
get_cap(mode, self.capture_panes()),
)
except Exception as _:
except Exception as e:
print(e)
print("error: unable to extract - check/report errors above")
print("You can also set the fzf path in options (see readme).")
input()
Expand Down

0 comments on commit 9c7c61f

Please sign in to comment.