Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Conversation

@dobogo
Copy link

@dobogo dobogo commented Aug 3, 2012

Original validChars does not accept multi-byte characters while these are valid in file name.

John Orr and others added 15 commits October 17, 2010 18:49
Added options to
      a) support :w as substitute for :Ren, and
      b) ignore wildignore settings when reading in files.
Fixed a bug with highlighting after file deletion.
Various other minor changes, eg naming the buffer.
Fix filename handling for linux - thanks Antonio Monizio
Improve :w support to avoid delay showing command line - thanks Sergey Bochenkov
Other minor improvements
1.3 - check that proposed filenames are valid before applying them
    - add support for creating required directories - thanks to Glen Miner
      for the request that made it finally happen.
    - fix location of intermediate files to be the same as the source file.
      (Particularly important for large files on slow-access media, as
      they were being copied to and from local media.)
      Thanks to Adam Courtemanche for finding and fixing the bug!
- fix permitted filenames problem on Mac OS - thanks Adam Courtemanche.
- fix bug when launching from within an existing buffer.
Retab with 2-space tabs (most of it already was) and use indent for
folding so I can more easily separate functions for autoload.
Since the mappings are defined in a function and they call functions
defined in this script, we're storing the SID value so we can bypass the
name mangling. Remove all of that.

I think we can do this better using <Plug>. Users would be able to
define mappings, but that's not so bad.

For now I'm removing it all so I can move stuff to autoload before
bringing it back (if necessary).
Extract the interface. We only need this one function in our API.
Everything else can be autoloaded. Sort out the varargs before we pass
on to autoload.
Should strive to avoid redefining instead of clobbering. I don't think
autoloaded plugins should get reloaded.
Moved functions (except for interface) and script variables into
autoload.

Fixed names with:
    %sm/renamer#StartRenamer/renamer#Start

Removed the load guard since autoload shouldn't get loaded multiple
times.
Move documentation so you can read it with :help. Update installation
for bundle.
Bump version to 2.0 and update change date.
Change fdm back to marker.
Expose the plug map so users can use it.
For help, see doc/renamer.txt instead.
Since switching back to the buffer doesn't re-load renamer, just clea
the buffer.
@idbrii
Copy link
Owner

idbrii commented Aug 6, 2012

Hi dobogo,

FYI, I'm not the maintainer of renamer.vim (so your change won't get on vim.org). You can contact him directly though.

I'm curious about your commit. Can you provide a test case for this issue? (Just a comment on this pull request with some examples that fail. Assuming github lets you post comments with multi-byte characters in them.)

@dobogo
Copy link
Author

dobogo commented Aug 6, 2012

Hi pydave,

Here are some file names that fail.

Symbols:
●×.txt

Arabic characters:
اللغة العربية.txt

Japanese characters:
日本語.txt

Russian characters:
русский.txt

@idbrii idbrii force-pushed the master branch 2 times, most recently from e020c53 to fd23361 Compare May 15, 2015 15:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants