File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function selectAll(e: FocusEvent) {
1212
1313<template >
1414 <div class =" pattern-config" >
15- <label >
15+ <label title = " Strictness determines how the pattern is matched against the code. " >
1616 <a target =" _blank" href =" https://ast-grep.github.io/advanced/match-algorithm.html" >ⓘ</a >
1717 Strictness:
1818 <select class =" strictness-select" v-model =" strictness" >
@@ -24,7 +24,7 @@ function selectAll(e: FocusEvent) {
2424 </select >
2525 <IconDown />
2626 </label >
27- <label >
27+ <label title = " Selector is used to extract effective matcher from pattern. " >
2828 <a target =" _blank" href =" https://ast-grep.github.io/advanced/faq.html#my-pattern-does-not-work-why" >ⓘ</a >
2929 Selector:
3030 <input @focus =" selectAll" class =" selector-input" type =" text" v-model =" selector" />
@@ -33,6 +33,16 @@ function selectAll(e: FocusEvent) {
3333</template >
3434
3535<style scoped>
36+ label {
37+ cursor : help ;
38+ }
39+ label > input {
40+ cursor : auto ;
41+ }
42+ label :hover > a {
43+ text-decoration : underline dashed ;
44+ text-underline-offset : 3px ;
45+ }
3646.pattern-config {
3747 z-index : 2 ;
3848 display : flex ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import EnvDisplay from './EnvDisplay.vue'
1111import { initializeParser , useAstGrep , Mode as ModeImport } from ' ./astGrep'
1212
1313// important initialization
14- await initializeParser ()
14+ // await initializeParser()
1515
1616const {
1717 state,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ let showFullTree = shallowRef(false)
6464 </div >
6565 </template >
6666 <template #panelAccessory >
67- <label class =" tree-toggle-label" >
67+ <label class =" tree-toggle-label" title = " Show unnamed nodes in CST " >
6868 <input class =" tree-toggle" type =" checkbox" v-model =" showFullTree" >
6969 Show Full Tree
7070 <a target =" _blank" href =" https://ast-grep.github.io/advanced/core-concepts.html" >ⓘ</a >
@@ -92,6 +92,10 @@ let showFullTree = shallowRef(false)
9292 user-select : none ;
9393 vertical-align : middle ;
9494}
95+ .tree-toggle-label :hover > a {
96+ text-decoration : underline dashed ;
97+ text-underline-offset : 3px ;
98+ }
9599.tree-toggle {
96100 height : 0.85em ;
97101 width : 0.85em ;
You can’t perform that action at this time.
0 commit comments