Skip to content
Scott Kuroda edited this page Jan 6, 2015 · 6 revisions

New File

  • Command - advanced_new_file_new
    • Description - This command is used to create new files.
    • Optional Arguments:
      • is_python - When set to true, any newly created directories will be generated with __init__.py files. Default values is false.
      • initial_path - String containing the initial content for the ANF input panel. Default value is None.
  • Command - advanced_new_file_new_at
    • Description - This command is used to when creating files from a specified directory. For example, this would be used when using ANF to create a file from a side bar context menu.
    • Required Arguments:
      • dirs - List of strings representing the directories to create a new file. The first entry in the list is used as the initial_path when running advanced_new_file_new.

Move File

  • Command - advanced_new_file_move
    • Description - This command is used to move files.
    • Optional Arguments:
      • is_python - When set to true, any newly created directories will be generated with __init__.py files. Default values is false.
      • initial_path - String containing the initial content for the ANF input panel. Default value is None.
      • rename_file - String representing the path of the file to move. Default value is None
  • Command - advanced_new_file_move_at
    • Description - This command is used when moving a file where the file location is already known. For example, this command can be used to move a file through a side bar context menu entry.
    • Required Arguments:
      • files - List of strings representing the paths of files. The first entry is used to run advanced_new_file_move.

Delete File

  • Command - advanced_new_file_delete
    • Description - This command will delete a specified file.
    • Optional Arguments:
      • current - When set to true, the current file open file will be deleted. If set to false, the ANF input panel will be presented, allowing a file to be specified. Default value is false.

Copy File

  • Command - advanced_new_file_copy
    • Description - This command is used to move files.
    • Optional Arguments:
      • is_python - When set to true, any newly created directories will be generated with __init__.py files. Default values is false.
      • initial_path - String containing the initial content for the ANF input panel. Default value is None.
      • rename_file - String representing the path of the file to move. Default value is None
  • Command - advanced_new_file_copy_at
    • Description - This command is used when copying a file where the file location is already known. For example, this command can be used to move a file through a side bar context menu entry.
    • Required Arguments:
      • files - List of strings representing the paths of files. The first entry is used to run advanced_new_file_copy.

Cut to File

  • Command - advanced_new_file_cut_to_file
    • Description - This command will cut the highlighted region to the specified file. If the specified file already exists, a new line will be appended and the highlighted content.
    • Optional Arguments:
      • is_python - When set to true, any newly created directories will be generated with __init__.py files. Default values is false.
Clone this wiki locally