You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
New stuff:
Added shortcuts for the commands (in addition to /open, can write /o)
Protection for createEncr.go or changeKey.go to not change your password to /q or /quit (because you can use /quit or /q in the password screen)
/comp and /reused also compare security questions
Redone code (to be better):
Got rid of lots of unnecessary if/else by returning functions and using a new switchToError()
Made a struct alphabetIterator instead of the old rune slice system to be used to make the alphabet in the lists. This is better because it's just storing an int that can be converted into a rune.
only initialized variables immediately before they are used
When possible, only initialize (anonymous) functions when used the first time
Better wrap around for long notes in /open (splits up the string so that there is always the space at the beginning of each line)
Used strings.Builder and fmt.Sprint to use buffers in combining strings
Fixed redundant findEntries() and findIndexes
Made the struct Field lower case
Renamed module to github.com/ksharnoff/pass
Stopped defining grids ahead of time for most things, only make the grids when the primitives are added to pages. Therefore, also got rid of many of the structs that define text-grid, list-grid, etc.