Commit Graph
100 Commits
Author SHA1 Message Date
RandyTheSilly 0392cf6fea (Markdown) Use full terminal width for horizontal rulers 2024-04-10 20:16:39 -04:00
RandyTheSilly 804fc29087 Lay groundwork for multiple color-scheme support 2024-04-10 17:03:37 -04:00
RandyTheSilly d29da29018 Wrap markdown text at full terminal width 2024-04-05 18:48:48 -04:00
RandyTheSilly 7c5c2105f9 Do not surround in-line code with spaces 2024-04-05 15:37:02 -04:00
RandyTheSilly b4919f0e82 Support hard line breaks in markdown notes 2024-04-05 14:18:35 -04:00
RandyTheSilly 0ee803dc78 Break out of switch after printing notes (no need to check additional lines) 2024-04-05 12:57:57 -04:00
RandyTheSilly ed9e9a3af8 Build default Glamour style into binary 2024-04-04 19:57:22 -04:00
RandyTheSilly 2668b2951c Commit WIP glamour style 2024-04-04 18:28:40 -04:00
RandyTheSilly 4e131d2870 Implement initial markdown notes support with Glamour (buggy, not ready for daily use) 2024-04-04 18:26:32 -04:00
RandyTheSilly 498ecd9a50 Implement Steam TOTP support using github.com/fortis/go-steam-totp 2024-03-22 20:53:08 -04:00
RandyTheSilly 8f98f1b61c Only fetch current time once per refresh for TOTP code generation 2024-03-21 14:44:58 -04:00
RandyTheSilly ad7524f544 Split TOTP key generation into its own function 2024-03-20 18:10:35 -04:00
RandyTheSilly 0687ce0954 Do not check time/refresh TOTP every second - calculate time till next 30-second interval, instead 2024-03-18 19:17:47 -04:00
RandyTheSilly ca14abbae9 Advertise TOTP support in printInfo.go, add to shell completions 2024-03-18 18:38:42 -04:00
RandyTheSilly 3171d1c1cd Update README.md with current progress 2024-03-18 17:03:19 -04:00
RandyTheSilly c1a415e5b0 Implement initial TOTP support (secret in third notes line, will eventually have its own dedicated field) 2024-03-18 16:44:22 -04:00
RandyTheSilly 56eaec02c6 Add "help" fallback to PowerShell completions 2024-03-18 15:21:29 -04:00
RandyTheSilly e4de8f930b Do not auto-complete directories in shell completions (only entries) 2024-03-18 14:39:55 -04:00
RandyTheSilly 26a5898e15 Better document new blank option="password" shortcut, order arguments in order of expected use, list passwords first in entry reader 2024-03-18 12:59:18 -04:00
RandyTheSilly dd0d1ffe55 Revert use of ":" for options on Windows, use "-" but replace "-p" with "-pw" to avoid ambiguity, interpret no options as "password" 2024-03-17 17:32:13 -04:00
RandyTheSilly ff9092bc9f Fix slice bounds errors when editing notes on short entries 2024-03-17 15:59:47 -04:00
RandyTheSilly 279384ee4a Allow passing show flag arguments with PowerShell completions 2024-03-15 14:57:46 -04:00
RandyTheSilly 7e5823c35e Do not require a pre-existing entry name for PowerShell completions 2024-03-14 18:33:22 -04:00
RandyTheSilly 80e4148b9b Switch Windows to use ":" instead of "-" for options flags because PowerShell is horrible and interprets "-" as a named parameter 2024-03-14 17:01:12 -04:00
RandyTheSilly 02fb625230 Correctly handle entry names with spaces in PowerShell completion 2024-03-14 15:59:03 -04:00
RandyTheSilly fb984f4514 Call mutn.exe from PowerShell completion function 2024-03-14 14:47:49 -04:00
RandyTheSilly 148212b276 Implement initial PowerShell 6.0+ tab-completions (missing help fallback, show) 2024-03-13 15:40:35 -04:00
RandyTheSilly 5cee48d412 Fix complex strings failing to copy on Windows 2024-03-11 15:09:30 -04:00
RandyTheSilly c7735d32be Specify that "mutn init" generates libmutton.ini 2024-03-08 13:15:16 -05:00
RandyTheSilly 2252be1463 Use panic in editNote to prevent temp files from being left behind 2024-03-08 12:57:10 -05:00
RandyTheSilly edf1a4cd9a Strip carriage returns from user input 2024-03-08 12:48:19 -05:00
RandyTheSilly 82b4fbee64 Properly close files to fix various issues on Windows (fixes GPG keygen, note temp files not being deleted) 2024-03-08 12:19:05 -05:00
RandyTheSilly 404f24d361 Better sanitize user input in inputInt 2024-03-08 11:23:08 -05:00
RandyTheSilly f83bdb9bdb Disable sshyp-sync-shim on Windows 2024-03-08 10:43:00 -05:00
RandyTheSilly f35d1b3741 Add current UNIX timestamp to generated GPG ID, identify key based on it 2024-03-08 10:36:01 -05:00
RandyTheSilly a0ca7803f1 Manually select auto-generated GPG key due to inconsistent GPG output, use tempfile for gpg-gen 2024-03-08 00:46:22 -05:00
RandyTheSilly 431082f711 Better detect if fallback editor needs to be used 2024-03-07 23:51:34 -05:00
RandyTheSilly 652ef48dd5 Prevent EntryListGen errors from appearing in-line with header 2024-03-07 23:46:19 -05:00
RandyTheSilly b01e5bded4 Exit after errors in EntryListGen 2024-03-07 23:43:35 -05:00
RandyTheSilly 31bc17cb0d Remove the gpg-gen file after use 2024-03-07 23:40:35 -05:00
RandyTheSilly 5a12eaf4cf Allow automatic generation of GPG keys 2024-03-07 23:35:38 -05:00
RandyTheSilly 7d17af9b61 Allow picking GPG key ID from a generated list 2024-03-07 22:48:57 -05:00
RandyTheSilly c6ee5fff06 Implement temporary "init" functionality 2024-03-07 22:12:38 -05:00
RandyTheSilly aa1098d472 Fixed indentation in main help menu for "edit -r" 2024-03-07 20:38:25 -05:00
RandyTheSilly 148ee53073 Add TEMPORARY sshyp-sync shim so that MUTN can be tested while native sync is under development 2024-03-07 20:35:24 -05:00
RandyTheSilly 408cff1a79 Replace TODO comment to correspond with learned information 2024-03-07 20:20:30 -05:00
RandyTheSilly 22758460ab Implement note editing 2024-03-07 20:15:01 -05:00
RandyTheSilly 3a90bef48a Allow generating new passwords for existing entries 2024-03-07 19:09:23 -05:00
RandyTheSilly 300516c3cd Implement initial entry editing support (no notes editing or gen update) 2024-03-07 18:34:12 -05:00
RandyTheSilly 9f1955eb82 Implement entry/directory renaming/moving 2024-03-07 17:40:57 -05:00
RandyTheSilly 609ef9bd8c Do not print redundant newline after creating a notes-only entry 2024-03-07 16:09:54 -05:00
RandyTheSilly 1e1a26b098 Implement password generation on new entries 2024-03-07 16:04:46 -05:00
RandyTheSilly 22fcad2fed Implement error messages for missing key values in libmutton.ini 2024-03-07 13:07:24 -05:00
RandyTheSilly b1f3a9eeec Properly set config file path on Windows 2024-03-07 12:34:50 -05:00
RandyTheSilly d6443c1966 Do not allow creating empty entries 2024-03-07 12:13:31 -05:00
RandyTheSilly 56ffe7e36f Allow optionally adding notes to new password entries 2024-03-07 12:01:49 -05:00
RandyTheSilly 14b3d7bd45 More correctly use build constraints in entryList.go 2024-03-06 20:45:02 -05:00
RandyTheSilly 11644b37ff Implement notes editor (required rewrite of offline.ReadConfig) 2024-03-05 17:11:53 -05:00
RandyTheSilly 1580227007 Implement initial entry adding (partial, missing notes support) 2024-03-05 14:09:50 -05:00
RandyTheSilly 85067fef40 Implement offline shearing/removal 2024-03-05 12:29:10 -05:00
RandyTheSilly 8704ba6972 Implement ability to add folders/directories (offline) 2024-03-05 11:52:33 -05:00
RandyTheSilly dfe917a4ff Implement Termux clipboard support 2024-03-05 10:47:41 -05:00
RandyTheSilly 24b899a83a Greatly reduce code duplication in clipboard implementations 2024-03-03 23:26:39 -05:00
RandyTheSilly 6fecf5a686 Move "clipclear" argument functionality to offline function to better facilitate third-party implementations 2024-03-03 22:47:58 -05:00
RandyTheSilly 0e6210f1af Implement untested MacOS clipboard support via pbcopy 2024-03-03 22:36:20 -05:00
RandyTheSilly 207a4762b6 Handle errors resulting from failed decryption 2024-03-03 22:15:35 -05:00
RandyTheSilly 0f65cd31cb Implement errors for copying entry fields that do not exist or are blank 2024-03-03 22:02:51 -05:00
RandyTheSilly 988724bac6 Handle errors when running clipboard-related commands with exec 2024-03-03 21:24:29 -05:00
RandyTheSilly 9802b7498b Implement X11 clipboard support via xclip 2024-03-03 20:58:51 -05:00
RandyTheSilly 00e0a70ee6 Fix clipboard clearing on Windows 2024-03-03 19:57:45 -05:00
RandyTheSilly 7a17df4aa3 Implement clipboard support for Windows 2024-03-03 19:09:25 -05:00
RandyTheSilly 3d621f5e38 Implement clipboard clearing functionality on Wayland 2024-03-02 00:12:55 -05:00
RandyTheSilly 4bd44e7b44 Implement initial clipboard functionality for Wayland 2024-03-01 22:36:10 -05:00
RandyTheSilly b17a3ae372 Implement password hiding in entry readouts 2024-03-01 22:11:59 -05:00
RandyTheSilly 51313eb307 Re-write argument parsing, implement skeleton of copy functionality 2024-03-01 21:09:56 -05:00
RandyTheSilly 0afcdbb29b Implement initial entry readout formatting 2024-03-01 18:26:05 -05:00
RandyTheSilly cefb91f1f6 Implement initial GPG decryption 2024-03-01 15:55:21 -05:00
RandyTheSilly fc2a6ab22f Do not trim file extensions from entries (file extensions are no longer expected) 2024-03-01 14:07:53 -05:00
RandyTheSilly 7d5bd76489 Fix initial entry reader shortcut on Windows 2024-03-01 13:47:28 -05:00
RandyTheSilly adcc05f3f4 Initial read shortcut support (target status checking) 2024-02-29 12:12:11 -05:00
RandyTheSilly ba89fbeab6 Replace remaining ANSI escape codes with constants 2024-02-27 12:01:35 -05:00
RandyTheSilly fa6d5bc78a Implement ReadConfig for reading ~/.config/libmutton/libmutton.ini 2024-02-27 11:48:02 -05:00
RandyTheSilly 86b152875e Fix awkward wording, clarify extension support 2024-02-26 17:16:09 -05:00
RandyTheSilly e61beb3f94 Split into separate packages 2024-02-26 16:58:39 -05:00
RandyTheSilly b26a29dd3d Implement argument-specific help menus 2024-02-12 16:54:49 -05:00
RandyTheSilly 9f5cf7fd1e Isolate trimmed/"vanity" directory from "directory" to avoid incorrect processing 2024-01-30 22:18:56 -05:00
RandyTheSilly 2012e332f3 Fix incorrect method of simplifying directory headers 2024-01-30 22:06:46 -05:00
RandyTheSilly 00ec6417af Use PathSeparator when simplifying indented directory headers 2024-01-23 16:48:16 -05:00
RandyTheSilly e54fef3d74 For indented directory headers, only print the new portion of the header 2024-01-23 16:35:05 -05:00
RandyTheSilly fc48c1dd21 Optimize some if-statements 2024-01-23 15:21:14 -05:00
RandyTheSilly 2d55d10d17 Remove all global variables (slices) only used in entryList.go 2024-01-23 14:58:32 -05:00
RandyTheSilly c2618088c6 Reduce unneeded iterations in indentSubtractor 2024-01-23 14:08:20 -05:00
RandyTheSilly 08689a4013 Replace version info heart with a slab of mutton 2024-01-22 17:04:30 -05:00
RandyTheSilly cb5dc659f2 Center all text on version info screen 2024-01-22 10:29:22 -05:00
RandyTheSilly b4848b6db6 Take row indentation into account when deciding to do line wrapping 2024-01-21 21:49:14 -05:00
RandyTheSilly c279711120 Adjust visual indentation for skipped directories 2024-01-21 21:41:04 -05:00
RandyTheSilly 4092b4f737 Fix indentation with multiple rows of entries, fix errors with negative indentation multiplier 2024-01-21 16:24:17 -05:00
RandyTheSilly e31878bd7d Use better method of error type detection 2024-01-19 21:40:39 -05:00
RandyTheSilly 6b4891a59f Assign ANSI escape colors to named constants 2024-01-19 21:36:48 -05:00
RandyTheSilly 29c9fb812c Clean up comments and re-organize variable declarations 2024-01-19 20:59:50 -05:00