Skip to content
Merged
14 changes: 14 additions & 0 deletions .github/instructions/base.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ repomix/
- Description should be clear and concise in present tense
- Description must start with a capital letter

## Pull Request Guidelines
- All pull requests must follow the template:
```md
<!-- Please include a summary of the changes -->

## Checklist

- [ ] Run `npm run test`
- [ ] Run `npm run lint`
```
- Include a clear summary of the changes at the top of the pull request description
- Reference any related issues using the format `#issue-number`


## Dependencies and Testing
- Inject dependencies through a deps object parameter for testability
- Example:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ repomix-output.md

# aider
.aider*

# private files
.cursor/rules/
.github/todo.md
6 changes: 5 additions & 1 deletion src/cli/cliPrint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,15 @@ export const printTopFiles = (
.sort((a, b) => b[1] - a[1])
.slice(0, topFilesLength);

// Calculate total token count
const totalTokens = Object.values(fileTokenCounts).reduce((sum, count) => sum + count, 0);

topFiles.forEach(([filePath, charCount], index) => {
const tokenCount = fileTokenCounts[filePath];
const percentageOfTotal = totalTokens > 0 ? Number(((tokenCount / totalTokens) * 100).toFixed(1)) : 0;
const indexString = `${index + 1}.`.padEnd(3, ' ');
logger.log(
`${pc.white(`${indexString}`)} ${pc.white(filePath)} ${pc.dim(`(${charCount.toLocaleString()} chars, ${tokenCount.toLocaleString()} tokens)`)}`,
`${pc.white(`${indexString}`)} ${pc.white(filePath)} ${pc.dim(`(${charCount.toLocaleString()} chars, ${tokenCount.toLocaleString()} tokens, ${percentageOfTotal}%)`)}`,
);
});
};
Expand Down
2 changes: 1 addition & 1 deletion website/client/components/Home/TryItResultContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const supportMessage = computed(() => ({
.content-wrapper {
display: grid;
grid-template-columns: 300px 1fr;
grid-template-rows: 500px auto;
grid-template-rows: 445px auto;
}

.metadata-panel {
Expand Down
2 changes: 1 addition & 1 deletion website/client/components/Home/TryItUrlInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function saveUrlToHistory(url: string) {

// Remove existing entry and add to the beginning
const filteredHistory = urlHistory.value.filter((item) => item !== trimmedUrl);
urlHistory.value = [trimmedUrl, ...filteredHistory].slice(0, 10); // Keep only the latest 10 entries
urlHistory.value = [trimmedUrl, ...filteredHistory].slice(0, 5); // Keep only the latest 10 entries

try {
localStorage.setItem('repomix-url-history', JSON.stringify(urlHistory.value));
Expand Down
Loading