Skip to content

Conversation

@asmsuechan
Copy link
Contributor

@asmsuechan asmsuechan commented Oct 10, 2017

context

This PR fixes a problem which IME doesn't work on searching.

before

acbf4710df3def9ca0b72c7cc48bdb7e

after

03d6e235a21cf0df2b7bf606e2caa934

93a92bff4cd6ff62e8d80186de2339c8

Boostnote will support IME input (I checked working in Japanese keyboard and Chinese pin yin keyboard)

@asmsuechan asmsuechan changed the title Improve searching Fix to work inputting by IME on search Oct 10, 2017
@asmsuechan asmsuechan changed the title Fix to work inputting by IME on search Improve searching Oct 11, 2017
})

// When the key is an alphabet, del, enter or ctr
if (e.keyCode <= 90) {
Copy link
Contributor Author

@asmsuechan asmsuechan Oct 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work on various keyCodes... Need to change.

German: üöä
French: ù
Spanish: ñ
Russian: (work fine)
Chinese: (work fine by using pinyin keyboard)

Copy link
Contributor Author

@asmsuechan asmsuechan Oct 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to extend the keyCode scope to e.keyCode<=90 || 186<=e.keyCode<=222 according to http://www.javascripter.net/faq/keycodes.htm.

@asmsuechan asmsuechan merged commit f39caeb into BoostIO:master Oct 13, 2017
@asmsuechan asmsuechan deleted the improve-searching branch October 13, 2017 03:08
@asmsuechan
Copy link
Contributor Author

current specifications

There are some unclear points.

  • search by #tag1 #tag2 returns the results of only #tag2
  • search by #tag1 content is as same as AND search by #tag1 content (and #tag1 is regarded a word, not a tag)
  • search by content #tag1 returns the results of only #tag1

@lyrl
Copy link

lyrl commented Oct 19, 2017

chinese input has same problem

@asmsuechan
Copy link
Contributor Author

@lyrl I know it. I have a question regarding Chinese keyboard. Is pinyin keyboard used by much Chinese?

Boostnote will support IME input (I checked working in Japanese keyboard and Chinese pin yin keyboard)

@lyrl
Copy link

lyrl commented Oct 19, 2017

@asmsuechan SouGou pinyin is most popular in china! http://pinyin.sogou.com/

@asmsuechan
Copy link
Contributor Author

@lyrl 谢谢你告诉我!I switched from Google pinyin keyboard to SouGou.

@KLszTsu
Copy link
Contributor

KLszTsu commented Oct 20, 2017

Btw, under Linux, most Chinese people will choose fcitx.

@kohei-takata kohei-takata mentioned this pull request Oct 28, 2017
bimlas added a commit to bimlas/Boostnote that referenced this pull request Mar 20, 2018
Some issues introduced in BoostIO#954
(BoostIO#954 (comment)):

- search by `#tag1 #tag2` returns the results of only `#tag2`
- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)
- search by `content #tag1` returns the results of only `#tag1`

This commit fixing these:

- search by `#tag1 #tag2` returns the results of only `#tag2`

  ![screencast]()

- search by `#tag1 content` is as same as AND search by `#tag1 content` (and

  `#tag1` is regarded a word, not a tag)
  ![screencast]()

- search by `content #tag1` returns the results of only `#tag1`

  ![screencast]()
bimlas added a commit to bimlas/Boostnote that referenced this pull request Mar 20, 2018
Some issues introduced in BoostIO#954
(BoostIO#954 (comment)):

- search by `#tag1 #tag2` returns the results of only `#tag2`
- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)
- search by `content #tag1` returns the results of only `#tag1`

This commit fixing these:

- search by `#tag1 #tag2` returns the results of only `#tag2`

  ![screencast](https://i.imgur.com/SjhQIhl.gif)

- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)

  ![screencast](https://i.imgur.com/G0Tmd8c.gif)

- search by `content #tag1` returns the results of only `#tag1`

  ![screencast](https://i.imgur.com/5MrMbE6.gif)

NOTE: the examples works without `#` character too, because
`findByWord()` checks the tags too.
bimlas added a commit to bimlas/Boostnote that referenced this pull request Mar 20, 2018
Some issues introduced in BoostIO#954
(BoostIO#954 (comment)):

- search by `#tag1 #tag2` returns the results of only `#tag2`
- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)
- search by `content #tag1` returns the results of only `#tag1`

This commit fixing these:

- search by `#tag1 #tag2` returns the results of only `#tag2`

  ![screencast](https://i.imgur.com/SjhQIhl.gif)

- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)

  ![screencast](https://i.imgur.com/G0Tmd8c.gif)

- search by `content #tag1` returns the results of only `#tag1`

  ![screencast](https://i.imgur.com/5MrMbE6.gif)

NOTE: the examples works without `#` character too, because
`findByWord()` checks the tags too.
bimlas added a commit to bimlas/Boostnote that referenced this pull request Mar 20, 2018
Some issues introduced in BoostIO#954
(BoostIO#954 (comment)):

- search by `#tag1 #tag2` returns the results of only `#tag2`
- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)
- search by `content #tag1` returns the results of only `#tag1`

This commit fixing these:

- search by `#tag1 #tag2` returns the results of only `#tag2`

  ![screencast](https://i.imgur.com/SjhQIhl.gif)

- search by `#tag1 content` is as same as AND search by `#tag1 content` (and
  `#tag1` is regarded a word, not a tag)

  ![screencast](https://i.imgur.com/G0Tmd8c.gif)

- search by `content #tag1` returns the results of only `#tag1`

  ![screencast](https://i.imgur.com/5MrMbE6.gif)

NOTE: the examples works without `#` character too, because
`findByWord()` checks the tags too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants