diff --git a/README.md b/README.md
index 872794a..c508c9e 100644
--- a/README.md
+++ b/README.md
@@ -1,28 +1,6 @@
-# [IWE](https://iwe.md) - Markdown notes assistant
+# About
-## Quick demos
-
-#### Exract notes
-
-
-
-
-Search
-
-
-
-
-
-
-Normalization
-
-
-
-
-
-## About
-
-IWE is a tool that helps you organize your markdown notes. It treats notes as an interconnected graph, where each document acts as a sub-tree and the links are the edges connecting them. It supports various operations designed to assist with navigating and restructuring the graph.
+[IWE](https://iwe.md) is a Markdown notes assistant for your favorite text editor. It's a tool that helps you organize your Markdown notes. It treats notes as an interconnected graph, where each document acts as a sub-tree and the links are the edges connecting them. It supports various operations designed to assist with navigating and restructuring the graph.
The main focus of IWE is to help you keep your notes tidy and structured. It works with the graph at the semantic level, understanding the **headers**, **lists** and **links** defined structure of the documents.
@@ -48,7 +26,30 @@ IWE integrates seamlessly with your editor, helping you to:
- **Convert** lists into headers and vice versa
- Display **inlay hints** with parent note references and link counts
-Please visit [IWE.md](https://iwe.md) for more information.
+Please visit [IWE.md](https://iwe.md) for more information and [quick start guide](https://iwe.md/quick-start/).
+
+### Demos
+
+
+Notes search
+
+
+
+
+
+
+Auto-formatting
+
+
+
+
+
+
+Extract note
+
+
+
+
## Command Line Utility Mode
diff --git a/crates/iwes/src/router/server.rs b/crates/iwes/src/router/server.rs
index c43398e..2d2b7de 100644
--- a/crates/iwes/src/router/server.rs
+++ b/crates/iwes/src/router/server.rs
@@ -413,7 +413,6 @@ impl Server {
¶ms.text_document.uri.to_key(base_path),
params.range.start.line as usize,
)
- .filter(|_| params.range.empty())
.map(|node_id| {
vec![
ActionType::SectionExtract,
diff --git a/crates/iwes/tests/inline_section_test.rs b/crates/iwes/tests/inline_section_test.rs
index 9859e4e..5ca89d0 100644
--- a/crates/iwes/tests/inline_section_test.rs
+++ b/crates/iwes/tests/inline_section_test.rs
@@ -2,9 +2,10 @@ use std::u32;
use indoc::indoc;
use lsp_types::{
- CodeAction, CodeActionContext, CodeActionOrCommand, CodeActionParams, DeleteFile,
- DocumentChangeOperation, DocumentChanges, OneOf, OptionalVersionedTextDocumentIdentifier,
- Position, Range, ResourceOp, TextDocumentEdit, TextDocumentIdentifier, TextEdit,
+ CodeAction, CodeActionContext, CodeActionOrCommand, CodeActionParams, CodeActionTriggerKind,
+ DeleteFile, DocumentChangeOperation, DocumentChanges, OneOf,
+ OptionalVersionedTextDocumentIdentifier, Position, Range, ResourceOp, TextDocumentEdit,
+ TextDocumentIdentifier, TextEdit,
};
use fixture::{action_kind, action_kinds, uri};
@@ -211,13 +212,17 @@ fn assert_inlined(source: &str, line: u32, inlined: &str) {
fixture.code_action(
CodeActionParams {
text_document: TextDocumentIdentifier { uri: uri(1) },
- range: Range::new(Position::new(line, 0), Position::new(line, 0)),
+ range: Range::new(
+ Position::new(line, 0),
+ // helix editor provides range even if nothing selected.
+ Position::new(line + 1, 1),
+ ),
work_done_progress_params: Default::default(),
partial_result_params: Default::default(),
context: CodeActionContext {
diagnostics: Default::default(),
only: action_kinds("refactor.inline.reference.section"),
- trigger_kind: None,
+ trigger_kind: Some(CodeActionTriggerKind::INVOKED),
},
},
vec![CodeActionOrCommand::CodeAction(CodeAction {