Sponsored Content
Special Forums UNIX and Linux Applications Notepad++ hang when open file edited in other text editor Post 302627921 by jim mcnamara on Sunday 22nd of April 2012 10:57:27 AM
Old 04-22-2012
Do you mean it is open by two editors at the same time?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Edited Path in Profile File

Definitely a unix dummy. I edited the paths in the /etc/profile file - following the instructions on an install package. Now can't use vi, cat pg ls or any other unix commands. Guess I'm in big trouble. Path reads MANPATH=/opt/hpnp/man PATH=/opt/hpnpl/bin LD_LIBRARY_PATH=/opt/hpnp/lib ... (4 Replies)
Discussion started by: thewetch
4 Replies

2. UNIX for Dummies Questions & Answers

Copy text from a file from VI editor to Windows clipboard

Copy text from a file from VI editor to Windows clipboard, I mean copy entire file in vi editor to notepad. (13 Replies)
Discussion started by: zhshqzyc
13 Replies

3. Shell Programming and Scripting

How to give permissions to an open file in vi editor?

Hi all, I have a shell script that i started editing, only in the midst of which i tried to save the changes i found that the file wasnt been provided with write/execute permissions. I later have redone the changes and saved the file- Just curious to know if there was any command wherein... (5 Replies)
Discussion started by: Pankajakshan
5 Replies

4. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

5. UNIX for Advanced & Expert Users

getting error when open vi editor

helo I install my product for koren language I m uisng RHEL -4 operating system now problem is whenever I open any file vi filename I got following error on the screen E557: Cannot open termcap file 'vt100' not known. Available builtin terminals are: builtin_ansi ... (1 Reply)
Discussion started by: amitpansuria
1 Replies

6. UNIX for Dummies Questions & Answers

How to open file in VI Editor at a specific line?

i have following query e.g i want the VI Editor cursor at line number N instead of 0 while opening the file from unix prompt. vi filename ?????? Can anyone help? (4 Replies)
Discussion started by: skyineyes
4 Replies

7. UNIX for Advanced & Expert Users

Who edited my text file?

I was editing my text file in gvim & I was getting message that its changed & to load again. I work in a workplace environment with everyone having there username.. How can I know that who edited my file? (4 Replies)
Discussion started by: krishanu
4 Replies

8. UNIX for Dummies Questions & Answers

File processed in Unix had issue open using notepad

Dear all, I had a columned based file after processed from my script. In unix platform, my file is ok, with all columns sorted out nicely. But when i open in windows notepad, the columns are running out of order. Can some one help?? Thanks alot in advance (4 Replies)
Discussion started by: ymeyaw
4 Replies

9. Shell Programming and Scripting

Not able to read .csv file until open in vi editor

Hi, I am facing a problem regarding .csv file, my script does not read .csv file and if i open this file in vi editor and perform :wq option then only my script reads the .csv file. Thanks (5 Replies)
Discussion started by: ranabhavish
5 Replies

10. UNIX for Beginners Questions & Answers

How to check if a file is open in editor?

Hi there! I'm developing a program that allows the user to open and edit files using both an editor and the terminal. Once the user has finished editing the file an update is sent to the logbook that compares the file before and after it was edited - this can only be done if the file is closed (I... (23 Replies)
Discussion started by: cherryTango
23 Replies
Proc::InvokeEditor(3pm) 				User Contributed Perl Documentation				   Proc::InvokeEditor(3pm)

NAME
Proc::InvokeEditor - Perl extension for starting a text editor SYNOPSIS
use Proc::InvokeEditor; my $edited_text = Proc::InvokeEditor->edit($unedited_text); DESCRIPTION
This module provides the ability to supply some text to an external text editor, have it edited by the user, and retrieve the results. The File::Temp module is used to provide secure, safe temporary files, and File::Temp is set to its highest available level of security. This may cause problems on some systems where no secure temporary directory is available. When the editor is started, no subshell is used. Your path will be scanned to find the binary to use for each editor if the string given does not exist as a file, and if a named editor contains whitespace, eg) if you try to use the editor "xemacs -nw", then the string will be split on whitespace and anything after the editor name will be passed as arguments to your editor. A shell is not used but this should cover most simple cases. METHODS
new(editors => [ editor list ], cleanup => 1) This method creates a new Proc::InvokeEditor object. It takes two optional arguments in key => value form: "editors" This should be a reference to an array of possible editor filenames to use. Each editor listed will be tried in turn until a working editor is found. If this argument is not supplied, an internal default list will be used. "cleanup" This specifies whether the temporary file created should be unlinked when the program exits. The default is to unlink the file. "keep_file" This specifies whether to reuse the same temporary file between invocations of "edit" on the same Proc::InvokeEditor object. The default is to use a new file each time. editors() This method gets or sets the list of editors to use. If no argument is supplied, it returns the current value from the object, if an argument is supplied, it changes the value and returns the new value. The argument should be a reference to a list of text editor filenames. editors_env($arrayref) Takes a reference to an array of %ENV keys to use as possible editors. Each $ENV{$key} value is only used if that key exits in %ENV and the value is defined. The new values are prepended to the currently stored list of editors to use. editors_prepend($arrayref) Takes a reference to an array of editors to use, and prepends them to the currently stored list. cleanup() This method gets or sets whether to cleanup temporary files after the program exits. If no argument is supplied, it returns the current value from the object. If an argument is supplied, it changes the value and returns the new object. The argument should be any true or false value. keep_file() This method gets or sets whether to reuse temporary files. If no argument is supplied, it returns the current value from the object. If an argument is supplied, it changes the value and returns the new object. The argument should be any true or false value. first_usable() This method can be called either as a class method, in which it returns the first usable editor of the default list of editors, or as an object method, in which case it returns the first usable editor of the currently configured list. The return is a reference to an array, the first element of which is a filename, and the other elements of which are appropriate arguments to the the command. If this method can not find any usable editor, it will die. edit($unedited_text) This can be called as either a class method or an object method. When called as a class method, it starts an external text editor in the text supplied, and returns the result to you. The text to edit can be supplied either as a scalar, in which case it will be treated as a simple string, or as a reference to an array, in which case it will be treated as an array of lines. Example use of this form is as follows: my $result = Proc::InvokeEditor->edit($string); my @lines = Proc::InvokeEditor->edit(@unedited_lines); my @lines = Proc::InvokeEditor->edit($string); When called as an object method, it behaves identically, but uses configuration parameters from the object: my $editor = new Proc::InvokeEditor(editors => [ '/usr/bin/emacs' ]); $editor->cleanup(0); my $result = $editor->edit($string); A optional second argument is available $suff - example usage: my $reuslt = Proc::InvokeEditor->edit($string, '.xml'); This specifies a filename suffix to be used when the editor is launched - this can be useful if the data in the file is of a particular type and you want to trigger an editor's syntax highlighting mode. TODO
o Write a test suite. AUTHOR
Michael Stevens <mstevens@etla.org>. Also incorporating suggestions and feedback from Leon Brocard and Phil Pennock. Patches supplied by Tim Booth. SEE ALSO
perl. perl v5.10.1 2011-04-25 Proc::InvokeEditor(3pm)
All times are GMT -4. The time now is 12:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy