Questions tagged [inplace-editing]

52 questions
137
votes
4 answers

sed command with -i option (in-place editing) works fine on Ubuntu but not Mac

I know nothing about Sed but need this command (which works fine on Ubuntu) to work on a Mac OSX: sed -i "/ $domain .*#drupalpro/d" /etc/hosts I'm getting: sed: 1: "/etc/hosts": extra characters at the end of h command
Michelle Williamson
  • 1,916
  • 3
  • 13
  • 19
64
votes
7 answers

sed -i command for in-place editing to work with both GNU sed and BSD/OSX

I've got a makefile (developed for gmake on Linux) that I'm attempting to port to MacOS, but it seems like sed doesn't want to cooperate. What I do is use GCC to autogenerate dependency files, and then tweak them a bit using sed. The relevant…
Chris Tonkinson
  • 12,213
  • 12
  • 52
  • 87
10
votes
3 answers

Save modifications in place with NON GNU awk

I have come across a question(on SO itself) where OP has to do edit and save operation into Input_file(s) itself. I know for a single Input_file we could do following: awk '{print "test here..new line for saving.."}' Input_file > temp && mv temp…
RavinderSingh13
  • 101,958
  • 9
  • 41
  • 77
10
votes
1 answer

How do I activate an in-place editor for a grid cell that displays as a progress bar?

One of the cells in my DBTreeListView is bound to a repository item that is a progress bar. I want to be able to edit the progress displayed by clicking on this cell. At this stage my application should change its cell to another repository item: a…
svsiko
  • 111
  • 5
6
votes
3 answers

Inplace Editing vs. Edit Page

When you develop web applications, especially ones that deal with a good amount of data management (e.g. contacts, addresses, orders and so forth), do you usually create the interface as in-place edit or make a separate "edit" page (and a view-only…
Alex
  • 71,233
  • 79
  • 245
  • 337
5
votes
2 answers

How to enable in-place editing in an asp:GridView?

How can i add edit boxes, and read their values during submit, with an asp:Repeater? i have an asp:GridView which is displaying a read-only (i.e. non-editable) set of data, e.g.: How can i enabled the cells of the GridView to be editable, e.g…
Ian Boyd
  • 220,884
  • 228
  • 805
  • 1,125
4
votes
1 answer

Parentheses over selected words in Eclipse

A few days back I felt this question to be dumb and dint post it here, but after even after searching a lot I dint find a proper solution. For those of you who used TextEdit (on Mac), they will perfectly know what I am talking about. While coding I…
svabhishek
  • 83
  • 1
  • 7
4
votes
4 answers

Read entire file then print when editing inplace?

Most examples of inplace editing are one-liners that iterate through a file or files, reading and printing one line at a time. I can't find any examples of reading an entire file into an array, modifying the array as needed, and then printing the…
d5e5
  • 422
  • 3
  • 10
4
votes
2 answers

How to change persistence property of cq:inplaceEditing

I wish to use cq:inplaceEditing to modify a property on my JCR whenever it is used by the AEM authors. Unfortunately, I do not know how to modify the name of the property that it actually modifies in the JCR. It appears that it only modifies the…
idungotnosn
  • 1,831
  • 4
  • 27
  • 35
4
votes
2 answers

Why doesn't perl inplace editing work if I read user input before that?

I am trying to edit a cfg file inplace inside a perl script, but it doesn't work if I read user input before that. Here is a test script to recreate the problem I am seeing. #!/usr/bin/perl -w use strict; my $TRACE_CFG = "trace.cfg"; print…
pkamala
  • 43
  • 3
3
votes
2 answers

How Can I Exit My Inplace-Editor AND Process the Button in Delphi?

In my Delphi 2009 application, I have this window: It has a TPageControl that has a TTabSheet on it as well as buttons at the bottom that operate on all sheets. On the left of the TTabSheet is a TElXTree (a tree/grid component by LMD) and on the…
lkessler
  • 19,414
  • 31
  • 125
  • 196
3
votes
1 answer

Perl's autosplit function with in place editing

I just had a task in where I needed to replace each 3rd value in a tabulator separated file with a fixed value. I guess it can be done in Perl on a Unix shell like so $perl -a -n -i -F'/\t/' -e '$F[2]="THE FIXED VALUE";print join "\t", @F'…
René Nyffenegger
  • 35,550
  • 26
  • 140
  • 232
3
votes
0 answers

Acessing Angular NgForOfContext in a directive

I'm developing an Angular directive to detect (and delete) an empty item in an *ngFor list. Instead of adding an X button (per item) that will trigger deletion, I'm more for a content based approach: if the user erases -- either completely or just…
rslemos
  • 2,108
  • 17
  • 28
3
votes
0 answers

Innovastudio Content Builder alternatives?

Are there any alternatives to Innovastudio Content Builder? http://www.innovastudio.com/content-builder.aspx Features: In-place editing contents Creating custom templates Save output server-side I've found Spark theme for Drupal…
3
votes
1 answer

Rails: In-place editor but no postback?

I'm using Prototype in my Rails project to do in-place editing (via Ajax.InPlaceEditor) of a form. However, I don't want it to immediately post back and do the update - the form itself is pretty complicated and the user may decide to abandon their…
Matt Rogish
  • 22,940
  • 11
  • 72
  • 92
1
2 3 4