Skip to content

Conversation

@cdalizadeh
Copy link

The previous behaviour is that calls to insert_new_bullet() while the cursor is in the middle of the line (in insert mode) do not insert a bullet in the newly created line. This behaviour differs from most word processors, which insert a new bullet when enter is pressed mid-line. This PR modifies insert_new_bullet() to a insert a bullet in the newly created line when called from the middle of the line in insert mode.

Previous behaviour:

# Before
* First sentence. Second sentence.

# After (enter is pressed just before 'S' in insert mode)
* First sentence. 
Second sentence.

New behaviour:

# Before
* First sentence. Second sentence.

# After (enter is pressed just before 'S' in insert mode)
* First sentence. 
* Second sentence.

end

it 'supports nested dot bullets' do
pending('FIXME: this test fails, but the functionality works')
Copy link
Author

Choose a reason for hiding this comment

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

This line was causing tests to fail. Happy to add it back if needed.

@cdalizadeh cdalizadeh force-pushed the cdalizadeh/mid-line-new-bullets branch from e296418 to 167140b Compare February 23, 2025 12:06
@harshad1
Copy link
Collaborator

harshad1 commented Dec 9, 2025

This appears to be failing after the most recent changes. Could you take a look? I can merge once tests pass

@cdalizadeh cdalizadeh closed this Dec 10, 2025
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.

2 participants