Age | Commit message (Collapse) | Author |
|
There's no point replicating the information inside the man page on the
README.
|
|
tessen will now prefer finding fuzzel over rofi and wofi
|
|
Besides some cosmetic changes, the man page now highlights that any
dmenu backend can be used. It also mentions the change in order how
tessen tries to find a backend. In addition, a missing sentence for the
default value of PASSWORD_STORE_CLIP_TIME is mentioned.
|
|
|
|
Instead of using multiple printf commands, we can just use one. No, I
don't like using heredocs for some reason.
|
|
Recently, I realized that bash local variables aren't actually local and
use dynamic scoping. Renaming `backend` to `dmbd` is just a precaution.
|
|
A few extraneous `{}` were removed from variable names, `=` was replaced
with `==` because we're using bash and the former is more confusing, and
other cosmetic changes.
|
|
Instead of creating multiple functions for passing one line outputs, it
seems better to just use a case statment. Support for fuzzel has also
been added.
|
|
In the absence of a colon, the default value (which is empty) will be
used only if TESSEN_BACKEND is unset. Adding a colon ensures that the
default value is also used if TESSEN_BACKEND is empty. Since the default
value is empty, the colon is redundant.
|
|
This commit makes `tessen` agnostic to the dmenu backend used and closes issue #4. Thank you @t0fik for this PR.
|
|
|
|
|
|
|
|
It's unnecessary to check for the presence of oathtool considering it's
listed as a dependency of pass-otp. The explicit check was also causing
problems for people on NixOS as mentioned in #6.
|
|
|
|
|
|
|
|
BREAKING CHANGE: The location of the bash completion script has been
changed from the legacy folder '/etc/bash_completion.d/' to
'/usr/share/bash-completion/completions/'. Exisiting users will need to
delete the bash completion script for tessen from the legacy folder.
|
|
I've used scdoc for now because of lower threshold of using it but I
really want to switch to mdoc and mandoc.
|
|
|
|
The auto type operation has been split into two functions - one of them
deals with the default auto type operation involving username and
password and the other deals with custom autotype operation specified by
the user.
The copy menu now checks for the presence of notify-send rather than
just using it.
|
|
continue to implement features explained in 9511148
|
|
The validation functions have been changed to be more modular and more
resistant to invalid input. Instead of using printf to redirect error
messages to stderr and using `exit 1`, use the function `_die` which has
been changed as well. A function called `is_installed` was added as well
to check if the needed binaries are present on the system.
|
|
The `key_menu()` function will now handle different types of keys using
case and specific functions instead of complex if-else monstrosity.
feat: continue to implement features explained in 9511148
|
|
Use the environment variables to show options for autotype and username.
The URL should also be accounted for and the 3rd menu should show 'open'
instead of 'autotype'.
feat: continue to implement features explained in 9511148
|
|
tessen can now parse 'otpauth://' URI format thanks to the regex
borrowed from pass-otp
The username will now be taken from TESSEN_USERKEY if it exists,
otherwise, fallback to using the basename of the selected file.
The keys can now have '#', '+', and '@' characters as well.
|
|
|
|
The TESSEN_USERKEY environment variable can be set to point tessen to a
custom key which should be considered as the username.
The TESSEN_URLKEY environment variable can be set to point tessen to a
custom key which should be considered as the URL of website.
The TESSEN_AUTOKEY environment variable can be set to point tessen to a
custom key which should be considered for custom auto type operations
instead of the default operation of auto typing the username and the
password.
The TESSEN_DELAY environment variable can be set to make tessen
introduce delay when auto typing to avoid errors. The default is 200
milliseconds.
'bemenu' is no longer the default backend.
|
|
Global variables shouldn't be written in upper case unless the variable
is meant to be exported or is an environment variable. The style of
defining local variables was also changed.
|
|
It looks like there's no reliable way to enable a shell "strict" mode
globally in a script without dealing with certain caveats and edge cases
or making code cluttered with `${1-}` instead of simply `$1`. I'm not
gonna use shell "strict" any longer and instead try to write saner code
and rely on shellcheck.
|
|
|
|
|
|
tessen wasn't excluding 'username' and 'password' as a key from the menu
which isn't expected behaviour because the value of username is
determined from the basename of the selected file and password is
selected from the first line of the file
|
|
|
|
|
|
|
|
updated the fish completion and the README as well
|
|
|
|
I was being stupid with the sem versions while making this script. I
thought about editing the individual commits and rebasing and force
pushing the repo but decided against it. Hopefully, this isn't too
embarassing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|