mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 21:05:22 +00:00
337 lines
3.3 KiB
Text
337 lines
3.3 KiB
Text
|
|
# File prefix
|
||
|
|
|
||
|
|
file:README.md
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(FileExpr))
|
||
|
|
|
||
|
|
# File prefix short form
|
||
|
|
|
||
|
|
f:index.ts
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(FileExpr))
|
||
|
|
|
||
|
|
# Repo prefix
|
||
|
|
|
||
|
|
repo:myproject
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RepoExpr))
|
||
|
|
|
||
|
|
# Repo prefix short form
|
||
|
|
|
||
|
|
r:github.com/user/repo
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RepoExpr))
|
||
|
|
|
||
|
|
# Content prefix
|
||
|
|
|
||
|
|
content:function
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ContentExpr))
|
||
|
|
|
||
|
|
# Content prefix short form
|
||
|
|
|
||
|
|
c:console.log
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ContentExpr))
|
||
|
|
|
||
|
|
# Branch prefix
|
||
|
|
|
||
|
|
branch:main
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(BranchExpr))
|
||
|
|
|
||
|
|
# Branch prefix short form
|
||
|
|
|
||
|
|
b:develop
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(BranchExpr))
|
||
|
|
|
||
|
|
# Lang prefix
|
||
|
|
|
||
|
|
lang:typescript
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(LangExpr))
|
||
|
|
|
||
|
|
# Case prefix
|
||
|
|
|
||
|
|
case:yes
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(CaseExpr))
|
||
|
|
|
||
|
|
# Archived prefix
|
||
|
|
|
||
|
|
archived:no
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ArchivedExpr))
|
||
|
|
|
||
|
|
# Fork prefix
|
||
|
|
|
||
|
|
fork:yes
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ForkExpr))
|
||
|
|
|
||
|
|
# Public prefix
|
||
|
|
|
||
|
|
public:yes
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(PublicExpr))
|
||
|
|
|
||
|
|
# Symbol prefix
|
||
|
|
|
||
|
|
sym:MyClass
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(SymExpr))
|
||
|
|
|
||
|
|
# Type prefix
|
||
|
|
|
||
|
|
type:file
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(TypeExpr))
|
||
|
|
|
||
|
|
# Type prefix short form
|
||
|
|
|
||
|
|
t:repo
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(TypeExpr))
|
||
|
|
|
||
|
|
# Regex prefix
|
||
|
|
|
||
|
|
regex:test.*
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RegexExpr))
|
||
|
|
|
||
|
|
# RepoSet prefix
|
||
|
|
|
||
|
|
reposet:repo1,repo2
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RepoSetExpr))
|
||
|
|
|
||
|
|
# File with wildcard
|
||
|
|
|
||
|
|
file:*.ts
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(FileExpr))
|
||
|
|
|
||
|
|
# File with path
|
||
|
|
|
||
|
|
file:src/components/Button.tsx
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(FileExpr))
|
||
|
|
|
||
|
|
# Repo with full URL
|
||
|
|
|
||
|
|
repo:github.com/org/project
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RepoExpr))
|
||
|
|
|
||
|
|
# Multiple prefixes
|
||
|
|
|
||
|
|
file:test.js repo:myproject
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(AndExpr(PrefixExpr(FileExpr),PrefixExpr(RepoExpr)))
|
||
|
|
|
||
|
|
# Prefix with term
|
||
|
|
|
||
|
|
file:test.js console.log
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(AndExpr(PrefixExpr(FileExpr),Term))
|
||
|
|
|
||
|
|
# Term then prefix
|
||
|
|
|
||
|
|
console.log file:handler.ts
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(AndExpr(Term,PrefixExpr(FileExpr)))
|
||
|
|
|
||
|
|
# Multiple prefixes and terms
|
||
|
|
|
||
|
|
lang:typescript function file:handler.ts
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(AndExpr(PrefixExpr(LangExpr),Term,PrefixExpr(FileExpr)))
|
||
|
|
|
||
|
|
# Prefix with regex pattern
|
||
|
|
|
||
|
|
file:[a-z]+\.test\.js
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(FileExpr))
|
||
|
|
|
||
|
|
# Content with spaces in value (no quotes)
|
||
|
|
|
||
|
|
content:hello
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ContentExpr))
|
||
|
|
|
||
|
|
# Branch with slashes
|
||
|
|
|
||
|
|
branch:feature/new-feature
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(BranchExpr))
|
||
|
|
|
||
|
|
# Case values
|
||
|
|
|
||
|
|
case:auto
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(CaseExpr))
|
||
|
|
|
||
|
|
# RepoSet with multiple repos
|
||
|
|
|
||
|
|
reposet:repo1,repo2,repo3
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RepoSetExpr))
|
||
|
|
|
||
|
|
# Symbol with dots
|
||
|
|
|
||
|
|
sym:package.Class.method
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(SymExpr))
|
||
|
|
|
||
|
|
# Type variations
|
||
|
|
|
||
|
|
type:filename
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(TypeExpr))
|
||
|
|
|
||
|
|
# Lang with various languages
|
||
|
|
|
||
|
|
lang:python
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(LangExpr))
|
||
|
|
|
||
|
|
# Archived values
|
||
|
|
|
||
|
|
archived:yes
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ArchivedExpr))
|
||
|
|
|
||
|
|
# Fork values
|
||
|
|
|
||
|
|
fork:no
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ForkExpr))
|
||
|
|
|
||
|
|
# Public values
|
||
|
|
|
||
|
|
public:no
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(PublicExpr))
|
||
|
|
|
||
|
|
# Regex with complex pattern
|
||
|
|
|
||
|
|
regex:\w+\s*=\s*\d+
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RegexExpr))
|
||
|
|
|
||
|
|
# File with dashes
|
||
|
|
|
||
|
|
file:my-component.tsx
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(FileExpr))
|
||
|
|
|
||
|
|
# Repo with numbers
|
||
|
|
|
||
|
|
repo:project123
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(RepoExpr))
|
||
|
|
|
||
|
|
# Content with special chars
|
||
|
|
|
||
|
|
content:@Component
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(PrefixExpr(ContentExpr))
|
||
|
|
|
||
|
|
# Prefix in parentheses
|
||
|
|
|
||
|
|
(file:test.js)
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(ParenExpr(PrefixExpr(FileExpr)))
|
||
|
|
|
||
|
|
# Multiple prefixes in group
|
||
|
|
|
||
|
|
(file:*.ts lang:typescript)
|
||
|
|
|
||
|
|
==>
|
||
|
|
|
||
|
|
Program(ParenExpr(AndExpr(PrefixExpr(FileExpr),PrefixExpr(LangExpr))))
|
||
|
|
|