Skip to content

v1.2.0: Rewrote code, command shortcuts, updated repo

Choose a tag to compare

@ksharnoff ksharnoff released this 27 Aug 22:43
· 26 commits to main since this release
949ed40

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.
  • Comments end at column 80

Updated repo info

  • Updated all the screenshots on github
  • Updated README, added in depth alt text
  • Updated the /help text and the side bar info