Skip to content
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

Increase flexibility for inputs to crux-rename-file-and-buffer #29

Merged
merged 2 commits into from
Apr 30, 2016

Conversation

Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Apr 30, 2016

This changes crux-rename-file-and-buffer to:

  • Let users specify new file names, even if ido/helm are enabled
  • Let users create new directories by modifying other parts of the path

Let me know what you think. These are the only features my implementation has when I realised that crux can do this for me. I've separated these two changes into two commits in case you'd prefer only having one of these changes.

@bbatsov
Copy link
Owner

bbatsov commented Apr 30, 2016

Looks good. Just drop the . from the first commit.

Wilfred added 2 commits April 30, 2016 22:09
`read-file-name` works great for existing file names, but this command
is often used to renaming files to names that aren't currently used.

If a user is using a completion backend like ido or helm,
`read-file-name` will prompt them for an *existing* file name. Instead,
allow them to input arbitrary strings.
@Wilfred Wilfred force-pushed the rename_file_and_buffer_tweaks branch from 7bdd87d to 1967a75 Compare April 30, 2016 21:09
@Wilfred
Copy link
Contributor Author

Wilfred commented Apr 30, 2016

Commits amended :)

@bbatsov bbatsov merged commit 225b5e3 into bbatsov:master Apr 30, 2016
@Wilfred Wilfred deleted the rename_file_and_buffer_tweaks branch April 30, 2016 22:12
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