-
Notifications
You must be signed in to change notification settings - Fork 33
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
Indentation and completion improvements #15
Open
alexsmith1612
wants to merge
20
commits into
beancount:main
Choose a base branch
from
alexsmith1612:indentation-and-completion-updates
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ed0099e
Fix indentation of directives not preceeded by empty line
alexsmith1612 7017a94
Indent posting metadata lines an additional level
alexsmith1612 fdfa9c2
Align numbers in balance and price directives in addition to postings
alexsmith1612 b4f14e4
Align open directive currencies to number alignment + 1
alexsmith1612 80a3e8b
Add customizable variable for minimum number alignment separation
alexsmith1612 01c5a74
Add customizable variable to enable number alignment with tab-dwim
alexsmith1612 013e57a
Add more generic beancount-indent-directive function
alexsmith1612 90c54d4
Always call indent-region on TAB if the region is active
alexsmith1612 aff0255
Update indentation tests
alexsmith1612 c232302
Fix link-at-point-003 unit test
alexsmith1612 ee36fcc
Explicitly require imenu in beancount.el
alexsmith1612 2489f46
Require org for org-level-x faces
alexsmith1612 6df3934
Don't insert space after completions
alexsmith1612 7d07c48
Limit non-timestamped directives completions
alexsmith1612 2518f70
Allow completion of tags and links not on their own line
alexsmith1612 c9725e3
Move posting completions after tag and link completions
alexsmith1612 c880cf6
Don't attempt completion inside strings except for options
alexsmith1612 4102a12
Don't collect matches inside strings
alexsmith1612 a721f15
Add more completion tests
alexsmith1612 cc8ea35
Update copyright and author information
alexsmith1612 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beancount.el
does not use any functionality fromimenu
. Therequire
should be in the tests only.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imenu-generic-expression
is defined inimenu.el
and used inbeancount.el
, so my assumption that the require was needed inbeancount.el
in addition to (implicitly)beancount-tests.el
.If this is not the case, then I'll move it to
beancount-tests.el
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imenu-generic-expression
is declared as a local variable inimenu.el
, but you are updating the variable usingsetq
here. Ifimenu.el
has not been loaded yet, it will set the global value.If you don't require
imenu
, I think you should set it locally, e.g. usingsetq-local
...FYI: In most cases, you would declare a variable from an external package using
defvar
without an initial value:See purcell/package-lint#205 for details.