Skip to content

Commit 342f9b4

Browse files
EmilySeville7cfgEmilySeville7cfg
authored andcommitted
feat(snippets): snip/take snippets
1 parent 65b710f commit 342f9b4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

server/src/snippets.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,36 @@ export const SNIPPETS: BashCompletionItem[] = [
605605
insertText:
606606
"sed ${1|-E,--regexp-extended|} ':${2:x} N $! b$2 ${3:command}' ${4:file}",
607607
},
608+
{
609+
documentation: 'skip-first',
610+
label: 'skip-first',
611+
insertText: 'tail ${1|-n,-c,--lines,--bytes|} +${2:count}',
612+
},
613+
{
614+
documentation: 'skip-last',
615+
label: 'skip-last',
616+
insertText: 'head ${1|-n,-c,--lines,--bytes|} -${2:count}',
617+
},
618+
{
619+
documentation: 'take-first',
620+
label: 'take-first',
621+
insertText: 'head ${1|-n,-c,--lines,--bytes|} ${2:count}',
622+
},
623+
{
624+
documentation: 'take-last',
625+
label: 'take-last',
626+
insertText: 'tail ${1|-n,-c,--lines,--bytes|} ${2:count}',
627+
},
628+
{
629+
documentation: 'take-range',
630+
label: 'take-range',
631+
insertText: "sed ${1|-n,--quiet|} '${2:from},${3:to}p'",
632+
},
633+
{
634+
documentation: 'take-stepped-range',
635+
label: 'take-stepped-range',
636+
insertText: "sed ${1|-n,--quiet|} '${2:from},${3:to}p' | sed $1 '1~${4:step}p'",
637+
},
608638
{
609639
documentation: 'json print',
610640
label: 'json',

0 commit comments

Comments
 (0)