Marcel Schramm
b704c9183b
Fix #335
2020-09-12 15:39:30 +02:00
Marcel Schramm
23954890d6
Move ensureDirectory into files-util
2020-08-30 14:48:52 +02:00
Marcel Schramm
163229671c
Merge branch 'file_open'
2020-08-23 18:08:54 +02:00
Marcel Schramm
14530d9903
Refactor emojiSequenceInexes
...
* Rename emojiSequenceIndexes to FindEmojiIndices
* move it into text util pacakge.
* improve unit test
2020-08-23 12:21:55 +02:00
Marcel Schramm
7ca54242cf
openFile now accesses cache.
2020-08-22 11:48:08 +02:00
Marcel Schramm
98fe7d4864
Initial version of improved file opening
2020-08-22 11:32:23 +02:00
Marcel Schramm
3a350a9e4f
Fix small bugs, replace deprecated usages and sort imports
2020-07-04 11:56:06 +02:00
Marcel Schramm
61404458a8
Autocompleting has been completly rewritten.
...
It now works for:
* Emojis
* Custom Emojis
* Roles
* Users
It can be disabled by setting `Autocomplete` to `false`.
2019-11-23 23:02:21 +01:00
Marcel Schramm
df741fa486
Generation of TOTP secret now uses crypto/rand instead of math/rand and is unit-tested
2019-11-16 22:49:06 +01:00
Marcel Schramm
ee67452d6d
gofmt -s the whole project [skip ci]
2019-11-08 00:11:21 +01:00
Marcel Schramm
ebde7f8565
Increase QR-Code quiet zone to 2
2019-11-04 20:23:13 +01:00
Marcel Schramm
7b11eda3b4
2FA secret now seeds random to dupes
2019-11-03 16:28:09 +01:00
Marcel Schramm
602b84f722
* Implement enabling / disabling of two factor authentication
...
* Implement retrieval / resetting of two factor authentication
2019-11-03 01:17:45 +01:00
Lucas Leonardo
df6fa53954
Small style fix with gofmt.
2019-10-24 22:01:54 +02:00
Marcel Schramm
afde2492a3
Move math utils into utils folder
2019-10-13 19:32:28 +02:00
Marcel Schramm
34a7383364
fix unit tests; windows spits out backward slashes
2019-10-12 22:14:06 +02:00
Marcel Schramm
017f5e1f39
Add file utility:
...
* ToAbsolutePath method added; not very well tested, since I don't know the environment the code will run on and the test code would be to prone to errors.
2019-10-12 19:52:17 +02:00
Avahe Kellenberger
87b3f2c3c8
Fixed an edge case fuzzy matching bug.
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
3afd623337
Fixed mention results order bug.
...
-Re-added fix for mentioning roles.
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
3d1afdf905
Changed mention results sorting.
...
-Smartcase has been disabled.
-Characters which match case sensitivity are rewarded more points.
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
01a02012e0
Fixed a bug with excess letters not invalidating search queries.
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
ad067dd8af
Searching is case-insensitive unless capital letters are used.
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
86abfda8f0
Alphabetic sorting now ignores cases.
...
Slightly changed the algorithm to prefer letters closer to the start of
the word.
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
d2c8529b91
Increased fuzzy accuracy.
...
Added test for fuzzy.go
2019-10-06 20:05:56 +02:00
Avahe Kellenberger
5f8662a11f
Username and nicknames are now both displayed.
...
This matches the current functionality of the client.
2019-10-06 20:05:56 +02:00
Marcel Schramm
11414914eb
Revert "Mention result ordering ( #128 )"
...
This reverts commit a43457931e
.
2019-08-18 12:46:13 +02:00
Avahe Kellenberger
a43457931e
Mention result ordering ( #128 )
...
The mentioning now uses a fuzzy matching algorithm. This also fixed #122
2019-08-14 21:23:05 +02:00