Skip to content

Improve documentation across the project #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

lambdalisue
Copy link
Collaborator

Summary

This PR significantly improves the documentation throughout the vim-fall project, making it more accessible and comprehensive for both users and developers.

Changes Made:

  • Enhanced README.md

    • Added comprehensive project description with key features
    • Expanded usage examples covering all common sources
    • Included architecture overview explaining the modular design
    • Improved related projects descriptions
  • Expanded Vim Help Documentation (doc/fall.txt)

    • Reorganized and enhanced existing content for better clarity
    • Added architecture section explaining the processing pipeline
    • Included troubleshooting section with common issues and solutions
    • Added practical examples and configuration snippets
    • Improved module documentation with interfaces and use cases
  • Added JSDoc Documentation to TypeScript Files

    • Main entry points: main.ts, picker.ts, custom.ts
    • Core components: input.ts, list.ts, preview.ts, help.ts
    • All processors: collect.ts, match.ts, sort.ts, render.ts, preview.ts
    • Included module-level documentation, parameter descriptions, return types, and examples

Benefits:

  • For Users: Clearer understanding of available features, better troubleshooting guidance, and more examples
  • For Developers: Comprehensive API documentation for creating extensions and understanding the codebase
  • For Contributors: Better code documentation makes it easier to understand and contribute to the project

Test plan

  • Review README.md for clarity and completeness
  • Check Vim help documentation with :help fall
  • Verify TypeScript documentation renders correctly in IDEs
  • Ensure all examples are accurate and working

🤖 Generated with Claude Code

doc/fall.txt Outdated
that these may vary based on configuration, and can be confirmed via the <F1>
help prompt.
Within the picker window, the following default mappings are applied. These
can be confirmed or customized via the <F1> help prompt.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not customizable via the <F1> help prompt.

doc/fall.txt Outdated
Comment on lines 158 to 159
:FallSession Open the session manager to view, resume, or delete saved
sessions. Sessions preserve the picker state including
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have delete feature.

doc/fall.txt Outdated

Built-in coordinators:
- modern: Floating windows with customizable dimensions
- stack: Stacked layout for smaller screens
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have 'stack' coordinator. See https://github.com/vim-fall/deno-fall-std/tree/main/builtin/coordinator to find what we have.

doc/fall.txt Outdated

Built-in themes:
- MODERN_THEME: Clean, modern appearance with rounded borders
- MINIMAL_THEME: Simplified appearance without decorations
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have MINIMAL_THEME. See https://github.com/vim-fall/deno-fall-std/tree/main/builtin/theme to find what we have.

doc/fall.txt Outdated

4. Custom source not working
- Validate TypeScript syntax: `:FallCustomCheck`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have such command.

Comment on lines +934 to +940
View Denops server output:
>vim
:DenopsServer
<
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denops doesn't have such feature.

doc/fall.txt Outdated
Comment on lines 938 to 941
Check custom file syntax:
>vim
:FallCustomCheck
<
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have such command.

Comment on lines +970 to +980
Integration with vim-qfreplace~
>vim
function! s:fall_qfreplace() abort
" Send grep results to quickfix
cnoremap <nowait> <C-q> <Cmd>call fall#action('quickfix')<CR>
endfunction

augroup fall_qfreplace
autocmd!
autocmd User FallPickerEnter:grep,git-grep,rg call s:fall_qfreplace()
augroup END
<
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section doesn't make sense

@lambdalisue lambdalisue marked this pull request as draft July 6, 2025 11:07
lambdalisue and others added 5 commits July 6, 2025 22:03
- Expand README with comprehensive project description and key features
- Add detailed usage examples covering all common sources
- Include architecture overview explaining the modular design
- Enhance Vim help with better organized content
- Add troubleshooting section with common issues and solutions
- Include practical examples and configuration snippets
- Improve module documentation with interfaces and use cases

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Document main.ts with module overview and entry point details
- Add extensive documentation to picker.ts including:
  - Pipeline architecture explanation
  - Type documentation for all exported interfaces
  - Class and method documentation with examples
- Document custom.ts configuration system with:
  - Module-level documentation
  - Function documentation for all exported APIs
  - Internal helper documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Document input.ts for user input management
- Document list.ts for item display and selection
- Document preview.ts for content preview functionality
- Document help.ts for interactive help system
- Include module-level documentation explaining each component's role

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Document collect.ts for asynchronous item collection
- Document match.ts for filtering with multiple matchers
- Document sort.ts for item ordering strategies
- Document render.ts for display transformation
- Document preview.ts for preview generation
- Include configuration options and method documentation
- Add examples demonstrating processor usage

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove reference to non-existent :FallCustomCheck command
- Fix coordinator list (compact, separate instead of stack)
- Fix theme list (ASCII, DOUBLE, SINGLE instead of MINIMAL)
- Remove "delete" from FallSession description
- Clarify that mappings can be confirmed (not customized) via F1
- Update examples to match actual available components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant