Hi James,

On 07/18/2011 09:54 AM, 许凌志(Jamesxu) wrote:
> Hi, Last week I have done following things:
> 1. Fix most of the bugs Marius had found last week, there are still
> three left for further discussion with mentors
> 2. Refine the codes according to the last review by Marius
> 3. Read the documentation of writing REST service, and design the rest
> service for link auto-suggestions, I should talk with mentors about the
> implementation details.
>
> In this week, I am going to do the following things:
> 1. Implement Rest service for link suggestion

> 2. Implement the whole context for link suggestion, include "attach:",
> "@", "." and "||".

You have to answer the following questions based on the position of the 
caret:

2.1 Are you inside a link? The link syntax is 
[[label>>reference||parameters]]
2.2 Are you inside the label? -> ignore
2.3 Are you inside the reference? What type of reference? You're 
interested only of document and attachment references.
2.3.1 In which reference component are you? (wiki:Space.Page@attachment) 
-> it would be nice to offer suggestions based on the component you're 
in (e.g. offer a list of spaces to choose from when the caret is inside 
"Space")
2.4. Are you inside the parameters? (parameter=value) -> it would be 
nice to offer suggestions for standard parameters, but this isn't a 
priority.

> 3. Consider to implement the ctrl+space to re-open the suggestion box
> according to the different contexts of link suggestion.

Sounds good.

Thanks,
Marius

>
> --
> Best wishes,
>
> 许凌志(Jame Xu)
>
> MOE KLINNS Lab and SKLMS Lab, Xi'an Jiaotong University
>
> Department of Computer Science and Technology, Xi’an Jiaotong University
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to